1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications © 2020 Orange
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.
18 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
20 selector: {{- include "common.selectors" . | nindent 4 }}
21 replicas: {{ .Values.replicaCount }}
23 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
26 - name: fix-permission
32 chown -R 1000:1000 /opt/app/aaf/status
33 chown -R 1000:1000 /var/lib/cassandra
34 image: "{{ .Values.global.busyboxRepository }}/{{ .Values.global.busyboxImage }}"
35 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
37 - mountPath: /var/lib/cassandra
47 - name: {{ include "common.name" . }}
48 image: {{ include "common.repository" . }}/{{ .Values.image }}
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 # installing with cmd "onap" will not only initialize the DB, but add ONAP bootstrap data as well
51 command: ["/bin/bash","/opt/app/aaf/cass_init/cmd.sh","onap"]
52 ports: {{ include "common.containerPorts" . | nindent 10 }}
54 - name: CASSANDRA_CLUSTER_NAME
55 value: {{ .Values.config.cluster_name }}
57 value: {{ .Values.config.dc }}
59 value: "/opt/cassandra/bin/cqlsh"
61 value: {{ .Values.config.heap_new_size }}
63 value: {{ .Values.config.max_heap_size }}
67 fieldPath: metadata.name
68 - name: MY_POD_NAMESPACE
71 fieldPath: metadata.namespace
75 fieldPath: status.podIP
77 - mountPath: /var/lib/cassandra
79 - mountPath: /etc/localtime
82 {{- if eq .Values.liveness.enabled true }}
86 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
87 periodSeconds: {{ .Values.liveness.periodSeconds }}
92 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
93 periodSeconds: {{ .Values.readiness.periodSeconds }}
94 resources: {{ include "common.resources" . | nindent 10 }}
95 {{- if .Values.nodeSelector }}
96 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 10 }}
98 {{- if .Values.affinity }}
99 affinity: {{ toYaml .Values.affinity | nindent 10 }}
106 {{- if .Values.persistence.enabled }}
107 persistentVolumeClaim:
108 claimName: {{ include "common.fullname" . }}
113 - name: "{{ include "common.namespace" . }}-docker-registry-key"