2 ## ============LICENSE_START====================================================
4 ## ===========================================================================
5 ## Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
6 ## ===========================================================================
7 ## Licensed under the Apache License, Version 2.0 (the "License");
8 ## you may not use this file except in compliance with the License.
9 ## You may obtain a copy of the License at
11 ## http://www.apache.org/licenses/LICENSE-2.0
13 ## Unless required by applicable law or agreed to in writing, software
14 ## distributed under the License is distributed on an "AS IS" BASIS,
15 ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 ## See the License for the specific language governing permissions and
17 ## limitations under the License.
18 ## ============LICENSE_END====================================================
33 port: {{.Values.services.cass.storage_port}}
34 containerPort: {{.Values.services.cass.storage_port}}
37 port: {{.Values.services.cass.ssl_storage_port}}
38 containerPort: {{.Values.services.cass.ssl_storage_port}}
41 port: {{.Values.services.cass.native_trans_port}}
42 containerPort: {{.Values.services.cass.native_trans_port}}
45 port: {{.Values.services.cass.rpc_port}}
46 containerPort: {{.Values.services.cass.rpc_port}}
55 replicas: {{ .Values.services.cass.replicas }}
66 persistentVolumeClaim:
67 claimName: aaf-cass-pvc
68 - name: aaf-status-vol
69 persistentVolumeClaim:
70 claimName: aaf-status-pvc
76 chmod -R 775 /opt/app/aaf/status
77 chown -R 1000:1000 /opt/app/aaf/status
78 chmod -R 775 /var/lib/cassandra
79 chown -R 1000:1000 /var/lib/cassandra
81 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
84 - mountPath: /opt/app/aaf/status
86 - mountPath: /var/lib/cassandra
93 image: {{ .Values.image.repository }}onap/aaf/aaf_cass:{{ .Values.image.version }}
94 imagePullPolicy: IfNotPresent
95 # installing with cmd "onap" will not only initialize the DB, but add ONAP bootstrap data as well
96 command: ["/bin/bash","/opt/app/aaf/cass_init/cmd.sh","onap"]
100 command: ["/bin/sh","-c","rm /opt/app/aaf/status/aaf-cass"]
102 - mountPath: "/var/lib/cassandra"
104 - mountPath: "/opt/app/aaf/status"
108 containerPort: {{.Values.services.cass.storage_port}}
110 containerPort: {{.Values.services.cass.storage_port}}
112 containerPort: {{.Values.services.cass.native_trans_port}}
114 containerPort: {{.Values.services.cass.rpc_port}}
116 - name: CASSANDRA_CLUSTER_NAME
117 value: {{.Values.services.cass.cluster_name}}
119 value: {{.Values.services.cass.dc}}
121 value: {{.Values.services.cass.heap_new_size}}
122 - name: MAX_HEAP_SIZE
123 value: {{.Values.services.cass.max_heap_size}}
127 fieldPath: metadata.name
128 - name: MY_POD_NAMESPACE
129 value: {{ .Release.Namespace }}
133 fieldPath: status.podIP