How can I wait in Kubernetes till a secret is created? There is kubectl wait ...
which I see examples for pods and deployments, but how can I use it for secrets?
How can I wait in Kubernetes till a secret is created? There is kubectl wait ...
Try:
while ! kubectl get secret <name> --namespace <if not default>; do echo "Waiting for my secret. CTRL-C to exit."; sleep 1; done
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With