'How i can patched deployment manifest
I try to run this command
kubectl patch deployment w-app-kuku-com -n stage -p '{"spec":{"template":{"spec":{"containers":[{"livenessProbe":{"successThreshold": "5"}}]}}}}'
And get this error
Error from server: map: map[livenessProbe:map[successThreshold:5]] does not contain declared merge key: name
I try to change livenessProbe or ReadnesProbe parameters for example successThreshold but cant !
Solution 1:[1]
successThreshold: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup Probes. Minimum value is 1.
Asserted from here, you can't patch successThreshold to other value beside setting it to 1 for livenessProbe.
Solution 2:[2]
Did you mean that I can't use successThreshold Except with parameter 1 and nothing else in this parameter can be used.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | gohm'c |
| Solution 2 | Dimitri Goldshtein |
