Commit 1a123cfc authored by Luca Cinquini's avatar Luca Cinquini
Browse files

Inserting cog pod.

parent 3ff3d4e3
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
apiVersion: v1
kind: Pod
metadata:
  name: esgf-cog
  labels:
    stack: esgf
    app: cog
spec:
  containers:
  - name: esgf-cog
    image: esgfhub/esgf-cog:devel
    ports:
    - containerPort: 8000
    # flags: ESGF_HOSTNAME = localhost,  ESGF = true to use postgres, run django server = true
    args: ["localhost", "true", "true"]
    env:
    - name: COG_DIR
      value: "/usr/local/cog"
    - name: COG_INSTALL_DIR
      value: "/usr/local/cog/cog_install"
    - name: COG_CONFIG_DIR
      value: "/usr/local/cog/cog_config"
    - name: INIT
      value: "true"
    envFrom:
    - configMapRef:
        name: esgf-env
    volumeMounts:
    - name: cog-data
      mountPath: /usr/local/cog/cog_config
    - name: esgf-config-archive
      mountPath: /root/archives/esgf_config.tar.xz
    - name: grid-certificates
      mountPath: /root/archives/grid_security_certs.tar.xz
  volumes:
  - name: cog-data
    emptyDir: {}
  - name: esgf-config-archive
    hostPath:
      path: /Users/cinquini/ESGF_CONFIG/archives/esgf_config.tar.xz
  - name: grid-certificates
    hostPath:
      path: /Users/cinquini/ESGF_CONFIG/archives/grid_security_certs.tar.xz
+2 −1
Original line number Diff line number Diff line
@@ -4,7 +4,8 @@ metadata:
  name: esgf-ingress
  annotations:
    ingress.kubernetes.io/rewrite-target: /
    ingress.kubernetes.io/ssl-redirect: "false"
    ingress.kubernetes.io/ssl-redirect: "true"
    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
spec:
  tls:
  - hosts:
+0 −1
Original line number Diff line number Diff line
@@ -88,4 +88,3 @@ spec:
      - name: esgf-config-files
        hostPath:
          path: /Users/cinquini/ESGF_CONFIG/archives/esgf_config.tar.xz
+8 −8
Original line number Diff line number Diff line
@@ -47,14 +47,14 @@ spec:
          mountPath: /root/archives/esgf_config.tar.xz
        - name: tomcat-esg-truststore
          mountPath: /usr/java/latest/jre/lib/security/jssecacerts
        readinessProbe:
          httpGet:
            path: /esg-orp/home.htm
            scheme: HTTPS
            port: 8443
          initialDelaySeconds: 10
          periodSeconds: 10
          timeoutSeconds: 2
        #readinessProbe:
        #  httpGet:
        #    path: /esg-orp/home.htm
        #    scheme: HTTPS
        #    port: 8443
        #  initialDelaySeconds: 10
        #  periodSeconds: 10
        #  timeoutSeconds: 2
      volumes:
      - name: esgf-config-archive
        hostPath: