1 # Copyright (C) 2021 Nordix Foundation. All rights reserved.
2 # ========================================================================
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.
14 # ============LICENSE_END=================================================
18 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
20 replicas: {{ .Values.replicaCount }}
21 selector: {{- include "common.selectors" . | nindent 4 }}
23 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
25 {{- with .Values.imagePullSecrets }}
27 {{- toYaml . | nindent 8 }}
30 {{- toYaml .Values.podSecurityContext | nindent 8 }}
32 - name: {{ include "common.containername" . }}
34 {{- toYaml .Values.securityContext | nindent 12 }}
35 image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
36 imagePullPolicy: {{ .Values.image.pullPolicy }}
39 value: "{{ .Values.messagerouter.host }}"
41 value: "{{ .Values.messagerouter.port }}"
43 value: "{{ .Values.sdnr.address }}"
45 value: "{{ .Values.sdnr.user }}"
47 value: "{{ .Values.sdnr.password }}"
49 value: "{{ .Values.simulator.node }}"
50 ports: {{- include "common.containerPorts" . | nindent 10 }}
52 {{- toYaml .Values.resources | nindent 12 }}
53 {{- with .Values.nodeSelector }}
55 {{- toYaml . | nindent 8 }}
57 {{- with .Values.affinity }}
59 {{- toYaml . | nindent 8 }}
61 {{- with .Values.tolerations }}
63 {{- toYaml . | nindent 8 }}