added readiness probe
@@ -200,7 +200,9 @@ func makeDeploymentSpec(request requests.CreateFunctionRequest, existingSecrets
Env: envVars,
Resources: *resources,
ImagePullPolicy: v1.PullAlways,
- LivenessProbe: probe},
+ LivenessProbe: probe,
+ ReadinessProbe: probe,
+ },
},
RestartPolicy: v1.RestartPolicyAlways,
DNSPolicy: v1.DNSClusterFirst,
