Skip to content

Instantly share code, notes, and snippets.

@voraviz
Created January 26, 2021 02:25
Show Gist options
  • Save voraviz/e26395c1d0eedba51e6c48f5630b472e to your computer and use it in GitHub Desktop.
Save voraviz/e26395c1d0eedba51e6c48f5630b472e to your computer and use it in GitHub Desktop.
#Pause Rollout
oc rollout pause deployment backend-v1 -n data-plane
#Set Readiness Probe
oc set probe deployment backend-v1 --readiness --get-url=http://:8080/health/ready --failure-threshold=1 --initial-delay-seconds=5 --period-seconds=5 -n data-plane
#Set Liveness Probe
oc set probe deployment backend-v1 --liveness --get-url=http://:8080/health/live --failure-threshold=1 --initial-delay-seconds=5 --period-seconds=5 -n data-plane
#Resume Rollout
oc rollout resume deployment backend-v1 -n data-plane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment