Created
January 13, 2021 15:05
-
-
Save alterEgo123/85cba87cc226cc3691e67ef4f522ca93 to your computer and use it in GitHub Desktop.
Add/remove LivenessProbe from deployment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl patch deployment X --patch '{"spec": {"template": {"spec": {"containers": [{"name": "Y","livenessProbe": {"httpGet":{"path": "health", "port":8080, "scheme": "HTTP"}, "periodSeconds": 3, "initialDelaySeconds": 3, "timeoutSeconds": 50}}]}}}}' | |
| kubectl patch deployment X --patch '{"spec": {"template": {"spec": {"containers": [{"name": "Y","livenessProbe": null}]}}}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment