X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=install%2Fhelm%2Fnrt-pm%2Fcharts%2Fkafka-producer-pm-xml2json%2Ftemplates%2Fapp-statefulset.yaml;fp=install%2Fhelm%2Fnrt-pm%2Fcharts%2Fkafka-producer-pm-xml2json%2Ftemplates%2Fapp-statefulset.yaml;h=528582f63d7bc3818cefba73c1f93ce78e5d8559;hb=c5655db5780275b07b25b57b767808f2f1eac7d9;hp=0000000000000000000000000000000000000000;hpb=7c434fcb459c84543cdb0ad14aa59391c60d16d4;p=nonrtric%2Fplt%2Franpm.git diff --git a/install/helm/nrt-pm/charts/kafka-producer-pm-xml2json/templates/app-statefulset.yaml b/install/helm/nrt-pm/charts/kafka-producer-pm-xml2json/templates/app-statefulset.yaml new file mode 100644 index 0000000..528582f --- /dev/null +++ b/install/helm/nrt-pm/charts/kafka-producer-pm-xml2json/templates/app-statefulset.yaml @@ -0,0 +1,84 @@ +# ============LICENSE_START=============================================== +# Copyright (C) 2023 Nordix Foundation. All rights reserved. +# ======================================================================== +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END================================================= +# + + +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: kafka-producer-pm-xml2json + namespace: nonrtric + labels: + app: kafka-producer-pm-xml2json + +spec: + replicas: 1 + serviceName: kafka-producer-pm-xml2json + selector: + matchLabels: + app: kafka-producer-pm-xml2json + template: + metadata: + labels: + app: kafka-producer-pm-xml2json + + spec: + containers: + - name: kafka-producer-pm-xml2json + image: kafka-pm-producer:latest + imagePullPolicy: Never + ports: + - name: http + containerPort: 80 + env: + - name: E1 + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: KP + valueFrom: + fieldRef: + fieldPath: metadata.name + + - name: KAFKA_SERVER + value: kafka-1-kafka-bootstrap.nonrtric:9097 + - name: ICS + value: informationservice.nonrtric:8083 + - name: SELF + value: "$(E1).kafka-producer-pm-xml2json.nonrtric:80" + - name: FILESTORE_USER + value: admin + - name: FILESTORE_PWD + value: adminadmin + - name: FILESTORE_SERVER + value: minio.nonrtric:9000 + - name: CREDS_GRANT_TYPE + value: client_credentials + - name: CREDS_CLIENT_SECRET + value: {{ .Values.kafkaproducerpmxml2json.clientsecret }} + - name: CREDS_CLIENT_ID + value: kafka-producer-pm-xml2json + - name: AUTH_SERVICE_URL + value: http://keycloak.nonrtric:8080/realms/nonrtric-realm/protocol/openid-connect/token + volumeMounts: + - mountPath: /application_configuration.json + subPath: application_configuration.json + name: kafka-producer-pm-xml2json-cm-config + volumes: + - configMap: + defaultMode: 420 + name: kafka-producer-pm-xml2json-cm-config + name: kafka-producer-pm-xml2json-cm-config