1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
29 app: {{ include "common.name" . }}
30 replicas: {{ .Values.replicaCount }}
34 app: {{ include "common.name" . }}
35 release: {{ include "common.release" . }}
38 - name: {{ include "common.name" . }}
39 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
40 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
42 - containerPort: {{ .Values.service.internalPort }}
43 - containerPort: {{ .Values.service.internalPort2 }}
44 - containerPort: {{ .Values.service.internalPort3 }}
45 - containerPort: {{ .Values.service.internalPort4 }}
46 - containerPort: {{ .Values.service.internalPort5 }}
47 {{ if eq .Values.liveness.enabled true }}
53 - nodetool status | grep $POD_IP | awk '$1!="UN" { exit 1; }'
54 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
55 periodSeconds: {{ .Values.liveness.periodSeconds }}
62 - nodetool status | grep $POD_IP | awk '$1!="UN" { exit 1; }'
63 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
64 periodSeconds: {{ .Values.readiness.periodSeconds }}
67 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-creds" "key" "login") | indent 12}}
69 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-creds" "key" "password") | indent 12}}
71 value: "{{ .Values.config.cassandraJvmOpts }}"
75 fieldPath: status.podIP
77 - mountPath: /etc/localtime
80 - name: cassandra-docker-entrypoint-initdb
81 mountPath: /docker-entrypoint-initdb.d/aaa_portal_single.cql
82 subPath: portal_single.cql
83 - name: {{ include "common.fullname" . }}-data
84 mountPath: /var/lib/cassandra/data
86 {{ include "common.resources" . | indent 12 }}
87 {{- if .Values.nodeSelector }}
89 {{ toYaml .Values.nodeSelector | indent 10 }}
91 {{- if .Values.affinity }}
93 {{ toYaml .Values.affinity | indent 10 }}
96 - name: cassandra-docker-entrypoint-initdb
98 name: {{ include "common.fullname" . }}-docker-entry-initd
102 {{- if .Values.persistence.enabled }}
103 - name: {{ include "common.fullname" . }}-data
104 persistentVolumeClaim:
105 claimName: {{ include "common.fullname" . }}
110 - name: "{{ include "common.namespace" . }}-docker-registry-key"