You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
emit warning on no liveness probe defined for pods
This patch iterates through pod specs, listing specs with no liveness
probes set. Any replication controllers whose deployment is fulfilled by
a DeploymentConfig are ignored.
**Example**
```
$ oc create -f pkg/api/graph/test/simple-deployment
deploymentconfig "simple-deployment" created
$ oc get all
NAME REVISION DESIRED CURRENT TRIGGERED BY
dc/simple-deployment 1 1 0 config
NAME DESIRED CURRENT READY AGE
rc/simple-deployment-1 0 0 0 1m
NAME READY STATUS RESTARTS
AGE
po/simple-deployment-1-deploy 0/1 ContainerCreating 0
1m
$ oc status -v
In project test on server https://10.111.123.56:8443
dc/simple-deployment deploys docker.io/openshift/deployment-example:v1
deployment #1 pending 26 seconds ago
Warnings:
* pod/simple-deployment-1-deploy has no liveness probe to verify pods are still running.
try: oc set probe pod/simple-deployment-1-deploy --liveness ...
* dc/simple-deployment has no liveness probe to verify pods are still running.
try: oc set probe dc/simple-deployment --liveness ...
View details with 'oc describe <resource>/<name>' or list everything with 'oc get all'.
```
0 commit comments