1 apiVersion: extensions/v1beta1
4 name: {{ include "common.fullname" . }}
5 namespace: {{ include "common.namespace" . }}
7 app: {{ include "common.name" . }}
8 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
9 release: {{ .Release.Name }}
10 heritage: {{ .Release.Service }}
12 replicas: {{ .Values.replicaCount }}
16 app: {{ include "common.name" . }}
17 release: {{ .Release.Name }}
20 - name: {{ include "common.name" . }}
21 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
22 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
24 - containerPort: {{ .Values.service.internalPort }}
25 - containerPort: {{ .Values.service.internalPort2 }}
26 # disable liveness probe when breakpoints set in debugger
27 # so K8s doesn't restart unresponsive container
28 {{- if eq .Values.liveness.enabled true }}
31 port: {{ .Values.service.internalPort }}
32 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
33 periodSeconds: {{ .Values.liveness.periodSeconds }}
37 port: {{ .Values.service.internalPort }}
38 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
39 periodSeconds: {{ .Values.readiness.periodSeconds }}
42 value: {{ .Values.global.env.name }}
46 fieldPath: status.podIP
49 secretKeyRef: {name: {{ include "common.fullname" . }}, key: cs_password}
51 - name: {{ include "common.fullname" . }}-data
52 mountPath: /var/lib/cassandra/
53 - name: {{ include "common.fullname" . }}-environments
54 mountPath: /root/chef-solo/environments/
55 - name: {{ include "common.fullname" . }}-localtime
56 mountPath: /etc/localtime
58 - name: {{ include "common.fullname" . }}-logs
59 mountPath: /var/lib/jetty/logs
61 {{ toYaml .Values.resources | indent 12 }}
62 {{- if .Values.nodeSelector }}
64 {{ toYaml .Values.nodeSelector | indent 10 }}
66 {{- if .Values.affinity }}
68 {{ toYaml .Values.affinity | indent 10 }}
71 - name: {{ include "common.fullname" . }}-localtime
74 - name: {{ include "common.fullname" . }}-logs
76 {{- if .Values.persistence.enabled }}
77 - name: {{ include "common.fullname" . }}-data
78 persistentVolumeClaim:
79 claimName: {{ include "common.fullname" . }}
83 - name: {{ include "common.fullname" . }}-environments
85 name: {{ .Release.Name }}-sdc-environments-configmap
88 - name: "{{ include "common.namespace" . }}-docker-registry-key"