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" . }}
46 - "cd /config-input && for PFILE in `find . -not -type d | grep -v -F ..`; do envsubst <${PFILE} >/config/${PFILE}; done"
49 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pg-user-creds" "key" "login") | indent 12 }}
51 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pg-user-creds" "key" "password") | indent 12 }}
53 - mountPath: /config-input
54 name: {{ include "common.fullname" . }}-inv-config-input
56 name: {{ include "common.fullname" . }}-inv-config
57 image: "{{ .Values.global.envsubstImage }}"
58 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
59 name: {{ include "common.name" . }}-update-config
61 - name: {{ include "common.name" . }}-readiness
62 image: {{ include "common.repository" . }}/{{ .Values.global.readinessImage }}
63 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
68 - {{ .Values.postgres.nameOverride }}
78 fieldPath: metadata.namespace
81 - name: aaf_locator_fqdn
87 fieldPath: status.podIP
88 image: {{ .Values.global.tlsRepository }}/{{ .Values.global.tlsImage }}
89 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
92 - mountPath: /opt/app/osaaf
95 - name: {{ include "common.name" . }}
96 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
97 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
98 # Assumes that the Docker image is built with ENTRYPOINT set to
99 # ["java", "-jar", "/opt/inventory-api-x.y.z.jar", "server"]
100 # where "x.y.z" is the version number (matches the Docker image version number)
101 # The arg below adds a parameter, the path to a config file.
102 # This tells the inventory-api app to get its configuration from the file
103 # rather than querying Consul.
107 {{ include "common.resources" . | indent 12 }}
109 - containerPort: {{ .Values.service.internalPort }}
110 # disable liveness probe when breakpoints set in debugger
111 # so K8s doesn't restart unresponsive container
112 {{- if eq .Values.liveness.enabled true }}
115 port: {{ .Values.service.internalPort }}
116 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
117 periodSeconds: {{ .Values.liveness.periodSeconds }}
121 path: {{ .Values.readiness.path }}
122 port: {{ .Values.service.internalPort }}
123 scheme: {{ .Values.readiness.scheme }}
124 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
125 periodSeconds: {{ .Values.readiness.periodSeconds }}
127 - name: {{ include "common.fullname" . }}-inv-config
128 mountPath: /opt/config.json
130 - mountPath: /opt/cert/
132 - mountPath: /opt/logs/
136 value: consul.{{ include "common.namespace" . }}
137 - name: {{ include "common.name" . }}-filebeat
143 fieldPath: status.podIP
144 image: {{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}
145 imagePullPolicy: IfNotPresent
148 - mountPath: /var/log/onap/inventory
150 - mountPath: /usr/share/filebeat/data
152 - mountPath: /usr/share/filebeat/filebeat.yml
154 subPath: filebeat.yml
162 name: {{ include "common.fullname" . }}-filebeat-configmap
164 - name: {{ include "common.fullname" . }}-inv-config-input
166 name: {{ include "common.fullname" . }}-configmap
167 - name: {{ include "common.fullname" . }}-inv-config
173 - name: "{{ include "common.namespace" . }}-docker-registry-key"