2 #============LICENSE_START========================================================
3 # ================================================================================
4 # Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=========================================================
23 name: {{ include "common.fullname" . }}
24 namespace: {{ include "common.namespace" . }}
26 app: {{ include "common.name" . }}
27 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
28 release: {{ include "common.release" . }}
29 heritage: {{ .Release.Service }}
34 app: {{ include "common.name" . }}
38 app: {{ include "common.name" . }}
39 release: {{ include "common.release" . }}
42 - name: {{ include "common.name" . }}-readiness
43 image: {{ include "common.repository" . }}/{{ .Values.global.readinessImage }}
44 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
49 - dcae-deployment-handler
61 fieldPath: metadata.namespace
68 fieldPath: status.podIP
69 - name: aaf_locator_fqdn
71 image: {{ .Values.global.tlsRepository }}/{{ .Values.global.tlsImage }}
72 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
75 - mountPath: /opt/app/osaaf
78 image: {{ .Values.global.consulLoaderRepository }}/{{ .Values.global.consulLoaderImage }}
79 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
82 - policy_handler|/phconfig/config.json
85 - mountPath: /phconfig
88 - name: {{ include "common.name" . }}
89 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
90 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
92 {{ include "common.resources" . | indent 12 }}
94 - containerPort: {{ .Values.service.internalPort }}
95 # disable liveness probe when breakpoints set in debugger
96 # so K8s doesn't restart unresponsive container
97 {{- if eq .Values.liveness.enabled true }}
100 port: {{ .Values.service.internalPort }}
101 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
102 periodSeconds: {{ .Values.liveness.periodSeconds }}
106 path: {{ .Values.readiness.path }}
107 port: {{ .Values.service.internalPort }}
108 scheme: {{ .Values.readiness.scheme }}
109 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
110 periodSeconds: {{ .Values.readiness.periodSeconds }}
112 - mountPath: /opt/app/policy_handler/logs
114 - mountPath: /opt/app/policy_handler/etc/tls/certs/
118 value: consul-server.{{ include "common.namespace" . }}
119 - name: CLOUDIFY_USER
121 - name: CLOUDIFY_PASSWORD
122 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "cm-pass" "key" "password") | indent 14 }}
123 - name: CONFIG_BINDING_SERVICE
124 value: config-binding-service
129 fieldPath: status.podIP
130 - name: {{ include "common.name" . }}-filebeat
136 fieldPath: status.podIP
137 image: {{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}
138 imagePullPolicy: IfNotPresent
141 - mountPath: /var/log/onap/policy-handler
143 - mountPath: /usr/share/filebeat/data
145 - mountPath: /usr/share/filebeat/filebeat.yml
147 subPath: filebeat.yml
155 name: {{ include "common.fullname" . }}-filebeat-configmap
161 name: {{ include "common.fullname" . }}-configmap
164 - name: "{{ include "common.namespace" . }}-docker-registry-key"