Missing Licenses
[aaf/authz.git] / auth / helm / aaf / templates / aaf-cass.yaml
1 #########
2 ##  ============LICENSE_START====================================================
3 ##  org.onap.aaf
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
10 ##
11 ##       http://www.apache.org/licenses/LICENSE-2.0
12 ##
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====================================================
19 ##
20
21 kind: Service
22 apiVersion: v1
23 metadata:
24   name: aaf-cass
25 spec:
26   selector:
27     app: aaf-cass
28   ports:
29     - name: storage
30       protocol: TCP
31       port: 7000
32       containerPort: 7000
33     - name: ssl-storage
34       protocol: TCP
35       port: 7001
36       containerPort: 7001
37     - name: native-trans
38       protocol: TCP
39       port: 9042
40       containerPort: 9042
41 ---
42 apiVersion: apps/v1
43 kind: Deployment
44 metadata:
45   name: aaf-cass
46   labels:
47     app: aaf-cass
48 spec:
49   replicas: 1
50   selector:
51     matchLabels:
52       app: aaf-cass
53   template:
54     metadata:
55       labels:
56         app: aaf-cass
57     spec:
58       volumes:
59       - name: {{ .Chart.Name }}-cass-vol
60         persistentVolumeClaim:
61           claimName: {{ .Chart.Name }}-cass-pvc
62       containers:
63 ###
64 ### AAF-CASS
65 ###
66       - name: {{ .Chart.Name }}-cass
67         image: {{ .Values.image.repository }}onap/aaf/aaf_cass:{{ .Values.image.version }}
68         imagePullPolicy: IfNotPresent
69         # installing with cmd "onap" will not only initialize the DB, but add ONAP bootstrap data as well
70         command: ["/bin/bash","/opt/app/aaf/cass_init/cmd.sh","onap"]
71         volumeMounts:
72           - mountPath: "/var/lib/cassandra"
73             name: {{ .Chart.Name }}-cass-vol
74         ports:
75         - name: storage
76           containerPort: 7000
77         - name: ssl-storage
78           containerPort: 7001
79         - name: native-trans
80           containerPort: 9042
81         - name: rpc
82           containerPort: 9160
83         env:
84         - name: CASSANDRA_CLUSTER_NAME
85           value: "osaaf"
86         - name: CASSANDRA_DC
87           value: "dc1"
88         - name: HEAP_NEWSIZE
89           value: "512M"
90         - name: MAX_HEAP_SIZE
91           value: "1024M"