Update DCAE Startup Info
[aaf/authz.git] / auth / helm / aaf / templates / aaf-cm.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 ### AAF-CERTMAN
22 ###
23 kind: Service
24 apiVersion: v1
25 metadata:
26   name: aaf-cm
27 spec:
28   selector:
29     app: aaf-cm
30   type: NodePort
31   ports:
32     - name: aaf-cm
33       protocol: TCP
34       port: 8150
35       nodePort: 30084
36 ---
37 apiVersion: apps/v1
38 kind: Deployment
39 metadata:
40   name: aaf-cm
41   labels:
42     app: aaf-cm
43 spec:
44   replicas: {{ .Values.services.cm.replicas }}
45   selector:
46     matchLabels:
47       app: aaf-cm
48   template:
49     metadata:
50       labels:
51         app: aaf-cm
52     spec:
53       volumes:
54         # Use this Pod Sharing dir to declare various States of starting
55       - name: aaf-config-vol
56         persistentVolumeClaim:
57           claimName: aaf-config-pvc
58       - name: aaf-status-vol
59         persistentVolumeClaim:
60           claimName: aaf-status-pvc
61       initContainers:
62         - name: aaf-config-container
63           image: {{ .Values.image.repository }}onap/aaf/aaf_config:{{ .Values.image.version }}
64           imagePullPolicy: IfNotPresent
65           command: ["bash","-c","cd /opt/app/aaf_config && bin/pod_wait.sh config aaf-service rm "]
66           volumeMounts:
67             - mountPath: "/opt/app/aaf/status"
68               name: aaf-status-vol
69       containers:
70 ###
71 ### AAF-CERTMAN
72 ###
73       - name: aaf-cm
74         image: {{ .Values.image.repository }}onap/aaf/aaf_core:{{ .Values.image.version }}
75         imagePullPolicy: IfNotPresent
76         command: ["/bin/bash","-c","cd /opt/app/aaf && /bin/bash bin/pod_wait.sh aaf-cm nc aaf-cass.{{ .Release.Namespace }} {{ .Values.services.cass.native_trans_port }} aaf-locate && exec bin/cm"]
77         volumeMounts:
78         -  mountPath: "/opt/app/osaaf"
79            name: aaf-config-vol
80         -  mountPath: "/opt/app/aaf/status"
81            name: aaf-status-vol
82         ports:
83         - name: aaf-cm
84           protocol: TCP
85           containerPort: 8150
86         env:
87         - name: aaf_locator_ns
88           value: {{ .Release.Namespace }}