changed to unmaintained
[aaf/authz.git] / auth / helm / aaf / templates / aaf-fs.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-FS
22 ###
23 kind: Service
24 apiVersion: v1
25 metadata:
26   name: aaf-fs
27 spec:
28   selector:
29     app: aaf-fs
30   type: NodePort
31   ports:
32     - name: {{.Values.services.fs.fqdn}}
33       protocol: TCP
34       port: {{.Values.services.fs.internal_port}}
35       nodePort: {{.Values.services.fs.public_port}}
36 ---
37 apiVersion: apps/v1
38 kind: Deployment
39 metadata:
40   name: aaf-fs
41   labels:
42     app: aaf-fs
43 spec:
44   replicas: {{ .Values.services.fs.replicas }}
45   selector:
46     matchLabels:
47       app: aaf-fs
48   template:
49     metadata:
50       labels:
51         app: aaf-fs
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         - command:
63             - /bin/sh
64             - -c
65             - |
66               chmod -R 775 /opt/app/aaf/status
67               chown -R 1000:1000 /opt/app/aaf/status
68               chmod -R 775 /opt/app/osaaf
69               chown -R 1000:1000 /opt/app/osaaf
70           image: busybox:1.28
71           imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
72           name: init-sysctl
73           volumeMounts:
74             - mountPath: /opt/app/osaaf
75               name: aaf-config-vol
76             - mountPath: /opt/app/aaf/status
77               name: aaf-status-vol
78         - name: aaf-config-container
79           image: {{ .Values.image.repository }}onap/aaf/aaf_config:{{ .Values.image.version }}
80           imagePullPolicy: IfNotPresent
81           command: ["bash","-c","cd /opt/app/aaf_config && bin/pod_wait.sh config aaf-locate rm"]
82           volumeMounts:
83             - mountPath: "/opt/app/aaf/status"
84               name: aaf-status-vol
85       containers:
86 ###
87 ### AAF-FS
88 ###
89       - name: aaf-fs
90         image: {{ .Values.image.repository }}onap/aaf/aaf_core:{{ .Values.image.version }}
91         imagePullPolicy: IfNotPresent
92         command: ["/bin/bash","-c","cd /opt/app/aaf && /bin/bash bin/pod_wait.sh aaf-fs aaf-locate && exec bin/fs"]
93         volumeMounts:
94         - mountPath: "/opt/app/osaaf"
95           name: aaf-config-vol
96         - mountPath: "/opt/app/aaf/status"
97           name: aaf-status-vol
98         ports:
99         - name: {{.Values.services.fs.fqdn}}
100           protocol: TCP
101           containerPort: {{.Values.services.fs.internal_port}}
102         env:
103             - name: aaf_locator_container
104               value: "helm"
105             - name: aaf_locator_container_ns
106               value: {{ .Release.Namespace }}
107             - name: aaf_locate_url
108               value: "https://aaf-locate.onap:8095"
109             - name: aaf_locator_public_fqdn
110               value: "{{.Values.services.public_fqdn}}"
111             - name: aaf_locator_name
112               value: "{{.Values.services.aaf_locator_name}}"
113             - name: aaf_locator_name_helm
114               value: "{{.Values.services.aaf_locator_name_helm}}"
115