Add rAppmanager and Capifcore charts in ORAN_OOM
[it/dep.git] / smo-install / oran_oom / rappmanager / templates / statefulset.yaml
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
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
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=================================================
16 #
17
18 kind: StatefulSet
19 apiVersion: apps/v1
20 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 spec:
22   serviceName: {{ include "common.name" . }}
23   replicas: 1
24   selector: {{- include "common.selectors" . | nindent 4 }}
25   template:
26     metadata: {{- include "common.templateMetadata" . | nindent 6 }}
27     spec:
28       hostname: {{ include "common.name" . }}
29       containers:
30       - name: {{ include "common.containername" . }}
31         image: {{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
32         imagePullPolicy: {{ .Values.imagePullPolicy }}
33         ports: {{- include "common.containerPorts" . | nindent 8 }}
34         {{- include "common.tcpsocketProbes" . | nindent 8 }}
35         env:
36         - name: RAPPMANAGER_ACM_USERNAME
37           valueFrom:
38             secretKeyRef:
39               name: {{ include "common.name" . }}-acm-secret
40               key: username
41         - name: RAPPMANAGER_ACM_PASSWORD
42           valueFrom:
43             secretKeyRef:
44               name: {{ include "common.name" . }}-acm-secret
45               key: password
46         volumeMounts:
47         - name: {{ include "common.applicationConfigMountName" . }}
48           mountPath: /opt/app/rappmanager/config
49       volumes: {{- include "common.applicationConfigVolume" . | nindent 8 }}