1 # ============LICENSE_START===============================================
2 # Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
3 # ========================================================================
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.
15 # ============LICENSE_END=================================================
20 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
23 selector: {{- include "common.selectors" . | nindent 4 }}
25 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
27 hostname: {{ include "common.name" . }}
29 - name: postgres-readiness-check
31 command: ['sh', '-c', 'apk add --no-cache netcat-openbsd && nc -zv oran-smo-postgresql 5432']
33 - name: {{ include "common.containername" . }}
34 image: {{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
35 imagePullPolicy: {{ .Values.imagePullPolicy }}
36 ports: {{- include "common.containerPorts" . | nindent 12 }}
37 {{- if .Values.global.useStrimziKafka }}
39 - name: KAFKA_SECURITY_PROPERTIES_SASL_JAAS_CONFIG
42 name: {{ include "common.name" . }}-ku
46 - name: {{ include "common.applicationConfigMountName" . }}
47 mountPath: /opt/app/teiv/config
48 volumes: {{- include "common.applicationConfigVolume" . | nindent 8 }}