util/kubernetes: add readiness check to deployments (#1923)

This commit is contained in:
ben-toogood
2020-08-11 08:38:30 +01:00
committed by GitHub
parent 959407bad9
commit 1263806a39
3 changed files with 42 additions and 7 deletions

View File

@@ -321,6 +321,13 @@ func NewDeployment(name, version, typ, namespace string) *Deployment {
Name: "service-port",
ContainerPort: 8080,
}},
ReadinessProbe: &Probe{
TCPSocket: TCPSocketAction{
Port: 8080,
},
PeriodSeconds: 10,
InitialDelaySeconds: 10,
},
}},
},
},