황원재 황원재 07-01
test
@fb3b9e123276f39efa27169704b3737fcdb0b420
k8s/influxdb-v2.yaml
--- k8s/influxdb-v2.yaml
+++ k8s/influxdb-v2.yaml
@@ -58,6 +58,10 @@
   template:
     spec:
       restartPolicy: Never
+      initContainers:
+        - name: wait-for-influxdb
+          image: busybox
+          command: ['sh', '-c', 'until nc -z -v -w30 influxdb 8086; do echo "Waiting for influxdb..."; sleep 5; done;']
       containers:
         - name: create-credentials
           image: registry.xslab.co.kr/lecture/influxdb:2.7.6
Add a comment
List