Commit 3ff3d4e3 authored by Luca Cinquini's avatar Luca Cinquini
Browse files

Working on TDS

parent 17446f51
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
apiVersion: v1
kind: ConfigMap
metadata:
  name: esgf-env
  namespace: default
data:
  ESGF_HOSTNAME: my-node.esgf.org
  ESGF_VERSION: devel
+7 −1
Original line number Diff line number Diff line
@@ -43,9 +43,14 @@ spec:
        ports:
        - containerPort: 8080
        - containerPort: 8443
        envFrom:
        - configMapRef:
            name: esgf-env
        volumeMounts:
        - name: tds-data
          mountPath: /esg/content/thredds
        - name: esg-data
          mountPath: /esg/data
        - name: esgf-config-archive
          mountPath: /root/archives/esgf_config.tar.xz
        - name: tds-web-xml
@@ -61,6 +66,8 @@ spec:
      volumes:
      - name: tds-data
        emptyDir: {}
      - name: esg-data
        emptyDir: {}
      - name: esgf-config-archive
        hostPath:
          path: /Users/cinquini/ESGF_CONFIG/archives/esgf_config.tar.xz
@@ -70,4 +77,3 @@ spec:
      - name: tomcat-esg-truststore
        hostPath:
          path: /Users/cinquini/ESGF_CONFIG/esg/config/tomcat/esg-truststore.ts
+13 −7
Original line number Diff line number Diff line
@@ -12,25 +12,31 @@ spec:
    ports:
    - containerPort: 8080
    - containerPort: 8443
    envFrom:
    - configMapRef:
        name: esgf-env
    volumeMounts:
    - name: tds-data
      mountPath: /esg/content/thredds
    - name: esg-data
      mountPath: /esg/data
    - name: esgf-config-archive
      mountPath: /root/archives/esgf_config.tar.xz
    - name: tds-web-xml
      mountPath: /usr/local/tomcat/webapps/thredds/WEB-INF/web.xml
    - name: tomcat-esg-truststore
      mountPath: /usr/java/latest/jre/lib/security/jssecacerts
    readinessProbe:
      httpGet:
        path: /thredds
        port: 8080
      initialDelaySeconds: 5
      periodSeconds: 10

    #readinessProbe:
    #  httpGet:
    #    path: /thredds
    #    port: 8080
    #  initialDelaySeconds: 5
    #  periodSeconds: 10
  volumes:
  - name: tds-data
    emptyDir: {}
  - name: esg-data
    emptyDir: {}
  - name: esgf-config-archive
    hostPath:
      path: /Users/cinquini/ESGF_CONFIG/archives/esgf_config.tar.xz