Add initContainers to wait longhorn webhook server ready
Longhorn 3523
@@ -14,6 +14,10 @@ spec:
labels:
app: longhorn-manager
spec:
+ initContainers:
+ - name: wait-longhorn-webhook
+ image: longhornio/longhorn-manager:master-head
+ command: ['sh', '-c', 'while [ $(curl -m 1 -s -o /dev/null -w "%{http_code}" -k https://longhorn-webhook:9443/v1/healthz) != "200" ]; do echo waiting; sleep 2; done']
containers:
- name: longhorn-manager
image: longhornio/longhorn-manager:master-head
