message: update logs-db yaml to be a statefulset
diff: @@ -2,7 +2,7 @@ apiVersion: v1
  kind: Template
  metadata:
  creationTimestamp: null
  - name: lagoon-openshift-template-elasticsearch
  + name: lagoon-openshift-template-elasticsearch-cluster
  parameters:
  - name: SERVICE_NAME
  description: Name of this service
  @@ -31,9 +31,6 @@ parameters:
  - name: REGISTRY
  description: Registry where Images are pushed to
  required: true
  - - name: DEPLOYMENT_STRATEGY
  - description: Strategy of Deploymentconfig
  - value: "Recreate"
  - name: SERVICE_IMAGE
  description: Pullable image of service
  required: true
  @@ -41,49 +38,74 @@ parameters:
  description: Oneliner of Cronjobs
  value: ""
  objects:
  -- apiVersion: v1
  - kind: DeploymentConfig
  +- apiVersion: apps/v1beta1
  + kind: StatefulSet
  metadata:
  - creationTimestamp: null
  - labels:
  - service: ${SERVICE_NAME}
  - branch: ${SAFE_BRANCH}
  - project: ${SAFE_PROJECT}
  name: ${SERVICE_NAME}
  spec:
  - replicas: 1
  + serviceName: ${SERVICE_NAME}
  + replicas: 3
  selector:
  + matchLabels:
  service: ${SERVICE_NAME}
  - strategy:
  - type: ${DEPLOYMENT_STRATEGY}
  template:
  metadata:
  - creationTimestamp: null
  labels:
  - service: ${SERVICE_NAME}
  branch: ${SAFE_BRANCH}
  project: ${SAFE_PROJECT}
  + service: ${SERVICE_NAME}
  spec:
  + affinity:
  + nodeAffinity:
  + requiredDuringSchedulingIgnoredDuringExecution:
  + nodeSelectorTerms:
  + - matchExpressions:
  + - key: lagoon-elasticsearch
  + operator: NotIn
  + values:
  + - forbidden
  + podAntiAffinity:
  + requiredDuringSchedulingIgnoredDuringExecution:
  + - labelSelector:
  + matchExpressions:
  + - key: service
  + operator: In
  + values:
  + - ${SERVICE_NAME}
  + topologyKey: kubernetes.io/hostname
  containers:
  - - image: ${SERVICE_IMAGE}
  - name: ${SERVICE_NAME}
  + - name: ${SERVICE_NAME}
  + image: ${SERVICE_IMAGE}
  + imagePullPolicy: Always
  ports:
  - containerPort: 9200
  protocol: TCP
  + - containerPort: 9300
  + protocol: TCP
  readinessProbe:
  - httpGet:
  - path: /_cluster/health?local=true
  + tcpSocket:
  port: 9200
  initialDelaySeconds: 20
  livenessProbe:
  - httpGet:
  - path: /_cluster/health?local=true
  + tcpSocket:
  port: 9200
  initialDelaySeconds: 120
  envFrom:
  - configMapRef:
  name: lagoon-env
  + resources:
  + requests:
  + cpu: 10m
  + memory: 10Mi
  + volumeMounts:
  + - mountPath: /usr/share/elasticsearch/data
  + name: ${SERVICE_NAME}
  env:
  + - name: POD_NAMESPACE
  + valueFrom:
  + fieldRef:
  + apiVersion: v1
  + fieldPath: metadata.namespace
  - name: SERVICE_NAME
  value: ${SERVICE_NAME}
  - name: CRONJOBS
  @@ -98,18 +120,13 @@ objects:
  secretKeyRef:
  key: LOGSDB_KIBANASERVER_PASSWORD
  name: logs-db-kibanaserver-password
  + volumeClaimTemplates:
  + - metadata:
  + name: ${SERVICE_NAME}
  + spec:
  + accessModes:
  + - ReadWriteOnce
  resources:
  requests:
  - cpu: 10m
  - memory: 10Mi
  - volumeMounts:
  - - mountPath: /usr/share/elasticsearch/data
  - name: ${SERVICE_NAME}
  - volumes:
  - - name: ${SERVICE_NAME}
  - persistentVolumeClaim:
  - claimName: ${SERVICE_NAME}
  - test: false
  - triggers:
  - - type: ConfigChange
  - status: {}
  + storage: 100G
  + storageClassName: lagoon-elasticsearch
  \ No newline at end of file
  