1 # Copyright © 2018 AT&T
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 apiVersion: extensions/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
38 - {{ .Values.mariadb.nameOverride }}
44 fieldPath: metadata.namespace
45 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
46 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
47 name: {{ include "common.name" . }}-readiness
49 image: "{{ include "common.repository" . }}/{{ .Values.dbinit.image }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 value: {{ .Values.config.db_host }}.{{.Release.Namespace}}
55 value: {{ .Values.config.db_port | quote}}
57 value: {{ .Values.config.db_root }}
59 value: {{ .Values.config.mysqlDatabase }}
63 name: {{ .Release.Name}}-cmso-db
65 terminationMessagePolicy: File
67 - name: {{ include "common.fullname" . }}-config
68 mountPath: /share/etc/config
69 - name: {{ include "common.fullname" . }}-logs
70 mountPath: /share/logs
72 - name: {{ include "common.name" . }}
73 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
74 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
77 value: {{ .Values.config.topology_host }}.{{.Release.Namespace}}
79 value: {{ .Values.config.topology_port | quote}}
80 - name: TICKETMGT_HOST
81 value: {{ .Values.config.ticketmgt_host }}.{{.Release.Namespace}}
82 - name: TICKETMGT_PORT
83 value: {{ .Values.config.ticketmgt_port | quote}}
85 value: {{ .Values.config.db_host }}.{{.Release.Namespace}}
87 value: {{ .Values.config.db_port | quote}}
89 value: {{ .Values.config.db_root }}
91 value: {{ .Values.config.mysqlDatabase }}
95 name: {{ .Release.Name}}-cmso-db
98 - containerPort: {{ .Values.service.internalPort }}
99 # disable liveness probe when breakpoints set in debugger
100 # so K8s doesn't restart unresponsive container
101 {{- if eq .Values.liveness.enabled true }}
104 port: {{ .Values.service.internalPort }}
105 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
106 periodSeconds: {{ .Values.liveness.periodSeconds }}
110 port: {{ .Values.service.internalPort }}
111 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
112 periodSeconds: {{ .Values.readiness.periodSeconds }}
114 - name: {{ include "common.fullname" . }}-logs
115 mountPath: /share/logs
116 - name: {{ include "common.fullname" . }}-logs
117 mountPath: /share/debug-logs
118 - name: {{ include "common.fullname" . }}-config
119 mountPath: /share/etc/config
121 {{ include "common.resources" . | indent 12 }}
122 {{- if .Values.nodeSelector }}
124 {{ toYaml .Values.nodeSelector | indent 10 }}
126 {{- if .Values.affinity }}
128 {{ toYaml .Values.affinity | indent 10 }}
131 - name: {{ include "common.fullname" . }}-config
133 name: {{ include "common.fullname" . }}
137 - key: cadi.properties
138 path: cadi.properties
139 - key: optimizer.properties
140 path: optimizer.properties
141 - key: liquibase.properties
142 path: liquibase.properties
143 - name: {{ include "common.fullname" . }}-logs
146 - name: "{{ include "common.namespace" . }}-docker-registry-key"