Commit 6a30cfb9 authored by Luca Cinquini's avatar Luca Cinquini
Browse files

Making idp-node wait for postgres

parent b8e730db
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -44,6 +44,10 @@ spec:
          mountPath: /root/archives/esgf_config.tar.xz
        - name: esgf-truststore
          mountPath: /usr/java/latest/jre/lib/security/jssecacerts
      initContainers:
      - name: wait-for-postgres
        image: busybox
        command: ['sh', '-c', 'until nslookup esgf-postgres; do echo waiting for esgf-postgres; sleep 1; done;']
      volumes:
      - name: esgf-config-archive
        hostPath:
+4 −0
Original line number Diff line number Diff line
@@ -19,6 +19,10 @@ spec:
      mountPath: /root/archives/esgf_config.tar.xz
    - name: esgf-truststore
      mountPath: /usr/java/latest/jre/lib/security/jssecacerts
  initContainers: 
    - name: wait-for-postgres
      image: busybox
      command: ['sh', '-c', 'until nslookup esgf-postgres; do echo waiting for esgf-postgres; sleep 1; done;']
  volumes:
  - name: esgf-config-archive
    hostPath: