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 }}
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
50 - name: {{ include "common.name" . }}
51 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 ports: {{- include "common.containerPorts" . | indent 10 }}
54 # disable liveness probe when breakpoints set in debugger
55 # so K8s doesn't restart unresponsive container
56 {{ if .Values.liveness.enabled }}
59 port: {{ .Values.service.internalPort }}
60 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
61 periodSeconds: {{ .Values.liveness.periodSeconds }}
65 port: {{ .Values.service.internalPort }}
66 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
67 periodSeconds: {{ .Values.readiness.periodSeconds }}
70 value: {{ .Values.config.webProtocol }}
72 value : {{ .Values.config.webPort | quote }}
74 value : {{ .Values.config.sdnrProtocol }}
76 value : {{ .Values.config.sdnrHost }}.{{ include "common.namespace" . }}
78 value : {{ .Values.config.sdnrPort | quote }}
79 {{ if .Values.config.transportpce.enabled }}
81 value: {{ .Values.config.transportpce.transportpceUrl }}
83 {{ if .Values.config.topologyserver.enabled }}
85 value: {{ .Values.config.topologyserver.topologyserverUrl }}
87 value: {{ .Values.config.topologyserver.tileserverUrl }}
90 value: "{{ .Values.config.oauth.enabled | default "false" }}"
91 - name: ENABLE_ODLUX_RBAC
92 value: "{{ .Values.config.oauth.odluxRbac.enabled | default "false" }}"
93 - name: SDNRWEBSOCKETPORT
94 value: "{{ .Values.sdnrWebsocketPort | default "8182" }}"
95 resources: {{ include "common.resources" . | nindent 12 }}
96 {{- if .Values.nodeSelector }}
97 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
99 {{- if .Values.affinity }}
100 affinity: {{ toYaml .Values.affinity | nindent 8 }}
102 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
103 {{- include "common.imagePullSecrets" . | nindent 6 }}