2 # ============LICENSE_START=======================================================
3 # Copyright (C) 2018 Ericsson. All rights reserved.
4 # Modifications Copyright (C) 2020 AT&T Intellectual Property.
5 # Modifications Copyright © 2022 Nordix Foundation
6 # Modification (C) 2023 Deutsche Telekom. All rights reserved.
7 # ================================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
12 # http://www.apache.org/licenses/LICENSE-2.0
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
20 # SPDX-License-Identifier: Apache-2.0
21 # ============LICENSE_END=========================================================
26 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
28 selector: {{- include "common.selectors" . | nindent 4 }}
29 serviceName: {{ include "common.servicename" . }}
30 replicas: {{ .Values.replicaCount }}
32 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
39 - "cd /config-input && for PFILE in `ls -1`; do envsubst <${PFILE} >/config/${PFILE}; done"
41 - name: RESTSERVER_USER
42 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-creds" "key" "login") | indent 10 }}
43 - name: RESTSERVER_PASSWORD
44 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-creds" "key" "password") | indent 10 }}
45 {{- if .Values.config.useStrimziKafka }}
47 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "policy-kafka-user" "key" "sasl.jaas.config") | indent 10 }}
50 - mountPath: /config-input
51 name: apexconfig-input
54 image: {{ include "repositoryGenerator.image.envsubst" . }}
55 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
56 name: {{ include "common.name" . }}-update-config
58 - name: {{ include "common.name" . }}
59 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
60 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
62 args: ["/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /home/apexuser/config/OnapPfConfig.json"]
63 ports: {{ include "common.containerPorts" . | nindent 12 }}
64 {{- if eq .Values.liveness.enabled true }}
67 port: {{ .Values.service.internalPort }}
68 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
69 periodSeconds: {{ .Values.liveness.periodSeconds }}
73 port: {{ .Values.service.internalPort }}
74 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
75 periodSeconds: {{ .Values.readiness.periodSeconds }}
78 value: "{{ .Values.replicaCount }}"
80 - mountPath: /etc/localtime
83 - mountPath: /var/log/onap
85 - mountPath: /home/apexuser/config
87 resources: {{ include "common.resources" . | nindent 12 }}
88 {{- if .Values.nodeSelector }}
90 {{ toYaml .Values.nodeSelector | indent 10 }}
92 {{- if .Values.affinity }}
94 {{ toYaml .Values.affinity | indent 10 }}
96 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
103 - name: apexconfig-input
105 name: {{ include "common.fullname" . }}-configmap
111 - name: "{{ include "common.namespace" . }}-docker-registry-key"