Missing Licenses
[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: 1
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: {{ .Chart.Name }}-config-vol
56         emptyDir: {}
57       initContainers:
58         - name: {{ .Chart.Name }}-config-container
59           image: {{ .Values.image.repository }}onap/aaf/aaf_config:{{ .Values.image.version }}
60           imagePullPolicy: IfNotPresent
61           volumeMounts:
62             - mountPath: "/opt/app/osaaf"
63               name: {{ .Chart.Name }}-config-vol
64           env:
65             - name: AAF_ENV
66               value: "{{ .Values.cadi.aaf_env }}"
67             - name: AAF_REGISTER_AS
68               value: "aaf-cm"
69             - name: AAF_LOCATOR_AS
70               value: "{{ .Values.cadi.aaf_locate_as }}"
71             - name: LATITUDE
72               value: "{{ .Values.cadi.cadi_latitude }}"
73             - name: LONGITUDE
74               value: "{{ .Values.cadi.cadi_longitude }}"
75             - name: CASS_HOST
76               value: "aaf-cass"
77       containers:
78 ###
79 ### AAF-CERTMAN
80 ###
81       - name: {{ .Chart.Name }}-cm
82         image: {{ .Values.image.repository }}onap/aaf/aaf_cm:{{ .Values.image.version }}
83         imagePullPolicy: IfNotPresent
84         command: ["/bin/bash","/opt/app/aaf/pod/pod_wait.sh","aaf_cm","sleep","45", "cd /opt/app/aaf;bin/cm"]
85         volumeMounts:
86           -  mountPath: "/opt/app/osaaf"
87              name: {{ .Chart.Name }}-config-vol
88         ports:
89         - name: aaf-cm
90           protocol: TCP
91           containerPort: 8150