Does the # in front of success and failure in a Kubectl describe (refer picture) meant to represent something?
All of the elements in each of those probes represent a config element for the probe but success and failure are prefixed with a #. I initially thought maybe it is a default value (which was not specified by the user but noticed that this is not the case as the picture shows different values for all the failure config for the various probes.
Am I reading too much into the # or is it intentionally placed there for a reason?
It does not make a difference to the functionality or affect us in any form or shape. Just Curious as it catches the eye!
CodePudding user response:
Those are default values only. "#" its just indication of default value for "successThreshold" and "failureThreshold". Though the attribute names which we define in definition and what we see when we describe the resource are bit different. For Ex: we have to mention failureThreshold attribute in the definition but when you describe it will come as failure. The default value for faliureThreshold is 3 for readiness probe. same for initialDelaySeconds it will just display as "delay". The attributes and default values are in Kubernetes documentation
CodePudding user response:
It appears to be just be embedded into the print statement:
Here is the original PR:
https://github.com/kubernetes/kubernetes/pull/21341
Looked into messaging the original author, but he disables DMs on his social media.