I-Relese - Update versions for RANPM
[nonrtric/plt/ranpm.git] / install / helm / nrt-pm / charts / kafka-producer-pm-json2influx / templates / app-statefulset.yaml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
3 #  Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
4 #  ========================================================================
5 #  Licensed under the Apache License, Version 2.0 (the "License");
6 #  you may not use this file except in compliance with the License.
7 #  You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 #  Unless required by applicable law or agreed to in writing, software
12 #  distributed under the License is distributed on an "AS IS" BASIS,
13 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 #  See the License for the specific language governing permissions and
15 #  limitations under the License.
16 #  ============LICENSE_END=================================================
17 #
18
19
20 apiVersion: apps/v1
21 kind: StatefulSet
22 metadata:
23   name: kafka-producer-pm-json2influx
24   namespace: nonrtric
25   labels:
26     app: kafka-producer-pm-json2influx
27
28 spec:
29   replicas: 1
30   serviceName: kafka-producer-pm-json2influx
31   selector:
32     matchLabels:
33       app: kafka-producer-pm-json2influx
34   template:
35     metadata:
36       labels:
37         app: kafka-producer-pm-json2influx
38
39     spec:
40       containers:
41       - name: kafka-producer-pm-json2influx
42         image: nexus3.o-ran-sc.org:10002/o-ran-sc/nonrtric-plt-ranpm-pm-file-converter:1.1.0
43         imagePullPolicy: Always
44         ports:
45         - name: http
46           containerPort: 80
47         env:
48         - name: E1
49           valueFrom:
50             fieldRef:
51               fieldPath: metadata.name
52         - name: KP
53           valueFrom:
54             fieldRef:
55               fieldPath: metadata.name
56
57         - name: KAFKA_SERVER
58           value: kafka-1-kafka-bootstrap.nonrtric:9097
59         - name: ICS
60           value: informationservice.nonrtric:8083
61         - name: SELF
62           value: "$(E1).kafka-producer-pm-json2influx.nonrtric:80"
63         - name: FILESTORE_USER
64           value: admin
65         - name: FILESTORE_PWD
66           value: adminadmin
67         - name: FILESTORE_SERVER
68           value: minio.nonrtric:9000
69         - name: CREDS_GRANT_TYPE
70           value: client_credentials
71         - name: CREDS_CLIENT_SECRET
72           value: {{ .Values.kafkaproducerpmjson2influx.clientsecret }}
73         - name: CREDS_CLIENT_ID
74           value: kafka-producer-pm-json2influx
75         - name: AUTH_SERVICE_URL
76           value: http://keycloak.nonrtric:8080/realms/nonrtric-realm/protocol/openid-connect/token
77         volumeMounts:
78         - mountPath: /application_configuration.json
79           subPath: application_configuration.json
80           name: kafka-producer-pm-json2influx-cm-config
81       volumes:
82       - configMap:
83           defaultMode: 420
84           name: kafka-producer-pm-json2influx-cm-config
85         name: kafka-producer-pm-json2influx-cm-config