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=================================================
19 name: {{ include "healthcheck.fullname" . }}
21 {{- include "healthcheck.labels" . | nindent 4 }}
23 replicas: {{ .Values.replicaCount }}
26 {{- include "healthcheck.selectorLabels" . | nindent 6 }}
29 {{- with .Values.podAnnotations }}
31 {{- toYaml . | nindent 8 }}
34 {{- include "healthcheck.selectorLabels" . | nindent 8 }}
36 {{- with .Values.imagePullSecrets }}
38 {{- toYaml . | nindent 8 }}
41 {{- toYaml .Values.podSecurityContext | nindent 8 }}
43 - name: {{ .Chart.Name }}
45 {{- toYaml .Values.securityContext | nindent 12 }}
46 image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
47 imagePullPolicy: {{ .Values.image.pullPolicy }}
50 value: {{ .Values.policymanagementservice.pmsHost }}
51 - name: POLICY_BODY_PATH
52 value: {{ .Values.policymanagementservice.policyBodyPath | toJson | quote }}
53 command: [ "python3", "main.py" ]
55 "--pmsHost", "$(PMS_HOST)"
62 {{- toYaml .Values.resources | nindent 12 }}
63 {{- with .Values.nodeSelector }}
65 {{- toYaml . | nindent 8 }}
67 {{- with .Values.affinity }}
69 {{- toYaml . | nindent 8 }}
71 {{- with .Values.tolerations }}
73 {{- toYaml . | nindent 8 }}