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

Adding some kubernetes decsroptors

parent e2e2833c
Loading
Loading
Loading
Loading

kubernetes/\

0 → 100644
+15 −0
Original line number Diff line number Diff line
apiVersion: v1
kind: Service
metadata:
  name: esgf-solr-service
spec:
  ports:
  - port: 8983 # host port
    targetPort: 8983 # container port`
    protocol: TCP
  - port: 8984
    targetPort: 8984
    protocol: TCP
  # the selector identifies the set of pods to load-balance against
  selector:
    stack: esgf
+23 −0
Original line number Diff line number Diff line
apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: esgf-solr-deployment
spec:
  replicas: 1
  template:
    metadata:
      labels:
        stack: esgf
    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: {}
+20 −0
Original line number Diff line number Diff line
apiVersion: v1
kind: Pod
metadata:
  name: esgf-solr
  labels:
    stack: esgf
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: {}
+20 −0
Original line number Diff line number Diff line
apiVersion: v1
kind: Service
metadata:
  name: esgf-solr-service
  labels:
    stack: esgf
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