e67970464c90f7169493f41090f0c99d5a6b06eb
[nonrtric/plt/ranpm.git] / install / helm / nrt-pm / charts / kafka-producer-pm-json2influx / templates / app-statefulset.yaml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2023 Nordix Foundation. 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
19 apiVersion: apps/v1
20 kind: StatefulSet
21 metadata:
22   name: kafka-producer-pm-json2influx
23   namespace: nonrtric
24   labels:
25     app: kafka-producer-pm-json2influx
26
27 spec:
28   replicas: 1
29   serviceName: kafka-producer-pm-json2influx
30   selector:
31     matchLabels:
32       app: kafka-producer-pm-json2influx
33   template:
34     metadata:
35       labels:
36         app: kafka-producer-pm-json2influx
37
38     spec:
39       containers:
40       - name: kafka-producer-pm-json2influx
41         image: nexus3.o-ran-sc.org:10002/o-ran-sc/nonrtric-plt-ranpm-pm-file-converter:1.0.1
42         imagePullPolicy: Always
43         ports:
44         - name: http
45           containerPort: 80
46         env:
47         - name: E1
48           valueFrom:
49             fieldRef:
50               fieldPath: metadata.name
51         - name: KP
52           valueFrom:
53             fieldRef:
54               fieldPath: metadata.name
55
56         - name: KAFKA_SERVER
57           value: kafka-1-kafka-bootstrap.nonrtric:9097
58         - name: ICS
59           value: informationservice.nonrtric:8083
60         - name: SELF
61           value: "$(E1).kafka-producer-pm-json2influx.nonrtric:80"
62         - name: FILESTORE_USER
63           value: admin
64         - name: FILESTORE_PWD
65           value: adminadmin
66         - name: FILESTORE_SERVER
67           value: minio.nonrtric:9000
68         - name: CREDS_GRANT_TYPE
69           value: client_credentials
70         - name: CREDS_CLIENT_SECRET
71           value: {{ .Values.kafkaproducerpmjson2influx.clientsecret }}
72         - name: CREDS_CLIENT_ID
73           value: kafka-producer-pm-json2influx
74         - name: AUTH_SERVICE_URL
75           value: http://keycloak.nonrtric:8080/realms/nonrtric-realm/protocol/openid-connect/token
76         volumeMounts:
77         - mountPath: /application_configuration.json
78           subPath: application_configuration.json
79           name: kafka-producer-pm-json2influx-cm-config
80       volumes:
81       - configMap:
82           defaultMode: 420
83           name: kafka-producer-pm-json2influx-cm-config
84         name: kafka-producer-pm-json2influx-cm-config