2 #============LICENSE_START========================================================
3 # ================================================================================
4 # Copyright (c) 2019 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 "repositoryGenerator.image.readiness" . }}
44 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
49 - "dcae-inventory-api"
61 fieldPath: metadata.namespace
68 fieldPath: status.podIP
69 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.global.tlsImage }}
70 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
73 - mountPath: /opt/app/osaaf
76 - name: {{ include "common.name" . }}
77 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
78 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
80 {{ include "common.resources" . | indent 12 }}
81 # disable liveness probe when breakpoints set in debugger
82 # so K8s doesn't restart unresponsive container
83 {{- if eq .Values.liveness.enabled true }}
86 command: [{{ .Values.liveness.script }}]
87 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
88 periodSeconds: {{ .Values.liveness.periodSeconds }}
92 command: [{{ .Values.readiness.script }}]
93 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
94 periodSeconds: {{ .Values.readiness.periodSeconds }}
96 - name: {{ include "common.fullname" . }}-sch-config
97 mountPath: /opt/config.json
99 # NOTE: This is tied to the PATH_TO_CACERT env variable
100 - mountPath: /opt/cert/
104 value: consul.{{ include "common.namespace" . }}
105 - name: PATH_TO_CACERT
106 value: "/opt/cert/cacert.pem"
108 value: "prod /opt/config.json"
110 - name: {{ include "common.fullname" . }}-sch-config
112 name: {{ include "common.fullname" . }}-configmap
116 - name: "{{ include "common.namespace" . }}-docker-registry-key"