X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=install%2Fhelm%2Fnrt-pm-log%2Ftemplates%2Fapp-statefulset.yaml;h=19107b8a2c883a0a9008c51a559d92d6aa7479e2;hb=refs%2Fchanges%2F11%2F12111%2F1;hp=f69b8f4fefa3eb799c05554ac9ee80779f3d1c38;hpb=d806dbef4f43bb9c631c818e96c1a39e440c5e6c;p=nonrtric%2Fplt%2Franpm.git diff --git a/install/helm/nrt-pm-log/templates/app-statefulset.yaml b/install/helm/nrt-pm-log/templates/app-statefulset.yaml index f69b8f4..19107b8 100644 --- a/install/helm/nrt-pm-log/templates/app-statefulset.yaml +++ b/install/helm/nrt-pm-log/templates/app-statefulset.yaml @@ -44,11 +44,30 @@ spec: - name: token-cache-volume emptyDir: {} containers: + - name: auth-token + image: nexus3.o-ran-sc.org:10002/o-ran-sc/nonrtric-plt-auth-token-fetch:1.1.1 + imagePullPolicy: Always + env: + - name: CREDS_GRANT_TYPE + value: client_credentials + - name: CREDS_CLIENT_SECRET + value: {{ .Values.nrtpmlog.clientsecret }} + - name: CREDS_CLIENT_ID + value: nrt-pm-log + - name: AUTH_SERVICE_URL + value: http://keycloak.nonrtric:8080/realms/nonrtric-realm/protocol/openid-connect/token + - name: OUTPUT_FILE + value: /token-cache/jwt.txt + volumeMounts: + - mountPath: /token-cache + name: token-cache-volume - name: pmlog - image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-plt-pmlog:1.0.0 - #image: o-ran-sc/nonrtric-plt-pmlog:1.0.0-SNAPSHOT + image: nexus3.o-ran-sc.org:10002/o-ran-sc/nonrtric-plt-pmlog:1.0.0 imagePullPolicy: Always - #imagePullPolicy: Never + command: + - sh + - -c + - until [ -e /token-cache/jwt.txt ]; do echo "Waiting for JWT to be available"; sleep 1; done; /jre/bin/java -jar /opt/app/pmlog-service/pmlog.jar ports: - name: http containerPort: 8084 @@ -64,28 +83,11 @@ spec: - mountPath: /token-cache name: token-cache-volume env: - - name: APP_INFLUX_ACCESS-TOKEN + - name: APP_INFLUX_ACCESSTOKEN valueFrom: secretKeyRef: name: influxdb-api-token key: token - - name: auth-token - image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-plt-auth-token-fetch:1.1.1 - imagePullPolicy: Always - env: - - name: CREDS_GRANT_TYPE - value: client_credentials - - name: CREDS_CLIENT_SECRET - value: {{ .Values.nrtpmlog.clientsecret }} - - name: CREDS_CLIENT_ID - value: nrt-pm-log - - name: AUTH_SERVICE_URL - value: http://keycloak.nonrtric:8080/realms/nonrtric-realm/protocol/openid-connect/token - - name: OUTPUT_FILE - value: /token-cache/jwt.txt - volumeMounts: - - mountPath: /token-cache - name: token-cache-volume