X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=install%2Fhelm%2Fnrt-pm-rapp%2Ftemplates%2Fapp-pod.yaml;fp=install%2Fhelm%2Fnrt-pm-rapp%2Ftemplates%2Fapp-pod.yaml;h=f16a11911f540a8ebbb61ed92220660487dea3c2;hb=c5655db5780275b07b25b57b767808f2f1eac7d9;hp=0000000000000000000000000000000000000000;hpb=7c434fcb459c84543cdb0ad14aa59391c60d16d4;p=nonrtric%2Fplt%2Franpm.git diff --git a/install/helm/nrt-pm-rapp/templates/app-pod.yaml b/install/helm/nrt-pm-rapp/templates/app-pod.yaml new file mode 100644 index 0000000..f16a119 --- /dev/null +++ b/install/helm/nrt-pm-rapp/templates/app-pod.yaml @@ -0,0 +1,69 @@ +# ============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: v1 +kind: Pod +metadata: + name: pm-rapp + namespace: nonrtric + labels: + app: pm-rapp +spec: + containers: + - name: pm-rapp + image: pm-rapp:latest + imagePullPolicy: Never + ports: + - name: http + containerPort: 80 + env: + - name: APPID + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: APPNS + valueFrom: + fieldRef: + fieldPath: metadata.namespace + - name: KAFKA_SERVER + value: kafka-1-kafka-bootstrap.nonrtric:9097 + - name: ICS + value: informationservice.nonrtric:8083 + - name: TOPIC + value: rapp-topic + # Set value to any string to log payload + - name: LOG_PAYLOAD + value: '1' + # Set value to any string to indicate that payload is gzipped + - name: GZIP + value: '' + - name: CREDS_GRANT_TYPE + value: client_credentials + - name: CREDS_CLIENT_SECRET + value: {{ .Values.pmrapp.clientsecret }} + - name: CREDS_CLIENT_ID + value: pm-rapp + - name: AUTH_SERVICE_URL + value: http://keycloak.nonrtric:8080/realms/nonrtric-realm/protocol/openid-connect/token + volumeMounts: + - mountPath: /config + name: pm-rapp-jobdef + volumes: + - configMap: + name: pm-rapp-jobdef + name: pm-rapp-jobdef +