--- k8s/influxdb-v2.yaml
+++ k8s/influxdb-v2.yaml
... | ... | @@ -58,6 +58,10 @@ |
| 58 | 58 |
template: |
| 59 | 59 |
spec: |
| 60 | 60 |
restartPolicy: Never |
| 61 |
+ initContainers: |
|
| 62 |
+ - name: wait-for-influxdb |
|
| 63 |
+ image: busybox |
|
| 64 |
+ command: ['sh', '-c', 'until nc -z -v -w30 influxdb 8086; do echo "Waiting for influxdb..."; sleep 5; done;'] |
|
| 61 | 65 |
containers: |
| 62 | 66 |
- name: create-credentials |
| 63 | 67 |
image: registry.xslab.co.kr/lecture/influxdb:2.7.6 |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?