2 # Copyright © 2020 highstreet technologies GmbH
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 replicas: {{ .Values.replicaCount }}
22 selector: {{- include "common.selectors" . | nindent 4 }}
24 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
26 initContainers: {{ include "common.certInitializer.initContainer" . | indent 6 }}
27 - name: {{ include "common.name" . }}-readiness
28 image: {{ include "repositoryGenerator.image.readiness" . }}
29 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
34 - {{ .Values.config.sdncChartName }}
40 fieldPath: metadata.namespace
43 - name: {{ include "common.name" . }}
44 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
45 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
46 ports: {{- include "common.containerPorts" . | indent 10 }}
47 # disable liveness probe when breakpoints set in debugger
48 # so K8s doesn't restart unresponsive container
49 {{ if .Values.liveness.enabled }}
52 port: {{ .Values.service.internalPort }}
53 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
54 periodSeconds: {{ .Values.liveness.periodSeconds }}
58 port: {{ .Values.service.internalPort }}
59 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
60 periodSeconds: {{ .Values.readiness.periodSeconds }}
63 value: {{ .Values.config.webProtocol }}
65 value: {{ .Values.config.webPort | quote }}
67 value: {{ .Values.config.sdnrProtocol }}
69 value: {{ .Values.config.sdnrHost }}.{{ include "common.namespace" . }}
71 value: {{ .Values.config.sdnrPort | quote }}
73 value: {{ .Values.config.sslCertDir }}
74 - name: SSL_CERTIFICATE
75 value: {{ .Values.config.sslCertiticate }}
76 - name: SSL_CERTIFICATE_KEY
77 value: {{ .Values.config.sslCertKey }}
78 {{ if .Values.config.transportpce.enabled }}
80 value: {{ .Values.config.transportpce.transportpceUrl }}
82 {{ if .Values.config.topologyserver.enabled }}
84 value: {{ .Values.config.topologyserver.topologyserverUrl }}
86 value: {{ .Values.config.topologyserver.tileserverUrl }}
89 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
90 - mountPath: /etc/localtime
94 resources: {{ include "common.resources" . | nindent 12 }}
95 {{- if .Values.nodeSelector }}
96 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 10 }}
98 {{- if .Values.affinity }}
100 {{ toYaml .Values.affinity | indent 10 }}
102 volumes: {{ include "common.certInitializer.volumes" . | nindent 6 }}
108 - name: "{{ include "common.namespace" . }}-docker-registry-key"