Commit cc630b93 authored by Luca Cinquini's avatar Luca Cinquini
Browse files

Merge branch 'kubernetes' into dev_1.4_lc

parents 5d98577c 6f3c3dbc
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
apiVersion: v1
kind: Service
metadata:
  name: esgf-index-node
  labels:
    stack: esgf
    app: index-node
spec:
  type: NodePort
  ports:
  - port: 8080 # host port
    targetPort: 8080 # container port
    protocol: TCP
    name: tomcat-http
  - port: 8443
    targetPort: 8443
    protocol: TCP
    name: tomcat-https
  # the selector identifies the set of pods to load-balance against
  selector:
    stack: esgf
    app: index-node
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: esgf-index-node
spec:
  replicas: 1
  template:
    metadata:
      labels:
        stack: esgf
        app: index-node
    spec:
      containers:
      - name: esgf-index-node
        image: esgfhub/esgf-index-node:devel
        ports:
        - containerPort: 8080
        - containerPort: 8443
        volumeMounts:
        - name: esgf-config-archive
          mountPath: /root/archives/esgf_config.tar.xz
      volumes:
      - name: esgf-config-archive
        hostPath:
          path: /Users/cinquini/ESGF_CONFIG/archives/esgf_config.tar.xz
+21 −0
Original line number Diff line number Diff line
apiVersion: v1
kind: Pod
metadata:
  name: esgf-index-node
  labels:
    stack: esgf
    app: index-node
spec:
  containers:
  - name: esgf-index-node
    image: esgfhub/esgf-index-node:devel
    ports:
    - containerPort: 8080
    - containerPort: 8443
    volumeMounts:
    - name: esgf-config-archive
      mountPath: /root/archives/esgf_config.tar.xz
  volumes:
  - name: esgf-config-archive
    hostPath:
      path: /Users/cinquini/ESGF_CONFIG/archives/esgf_config.tar.xz
+47 −0
Original line number Diff line number Diff line
apiVersion: v1
kind: Service
metadata:
  name: esgf-solr
  labels:
    stack: esgf
    app: index-node
spec:
  type: NodePort
  ports:
  - port: 8983 # host port
    targetPort: 8983 # container port
    protocol: TCP
    name: solr-slave
  - port: 8984
    targetPort: 8984
    protocol: TCP
    name: solr-master
  # the selector identifies the set of pods to load-balance against
  selector:
    stack: esgf
    app: solr
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: esgf-solr
spec:
  replicas: 1
  template:
    metadata:
      labels:
        stack: esgf
        app: solr
    spec:
      containers:
      - name: esgf-solr
        image: esgfhub/esgf-solr:devel
        ports:
        - containerPort: 8983
        - containerPort: 8984
        volumeMounts:
        - name: solr-index
          mountPath: /esg/solr-index
      volumes:
      - name: solr-index
        emptyDir: {}
+21 −0
Original line number Diff line number Diff line
apiVersion: v1
kind: Pod
metadata:
  name: esgf-solr
  labels:
    stack: esgf
    app: solr
spec:
  containers:
  - name: esgf-solr
    image: esgfhub/esgf-solr:devel
    ports:
    - containerPort: 8983
    - containerPort: 8984
    volumeMounts:
    - name: solr-index
      mountPath: /esg/solr-index
  volumes:
  - name: solr-index
    emptyDir: {}