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
8 # http://www.apache.org/licenses/LICENSE-2.0
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=================================================
44 - name: token-cache-volume
48 image: nexus3.o-ran-sc.org:10001/o-ran-sc/nonrtric-plt-auth-token-fetch:1.1.1
49 imagePullPolicy: Always
51 - name: CREDS_GRANT_TYPE
52 value: client_credentials
53 - name: CREDS_CLIENT_SECRET
54 value: {{ .Values.nrtpmlog.clientsecret }}
55 - name: CREDS_CLIENT_ID
57 - name: AUTH_SERVICE_URL
58 value: http://keycloak.nonrtric:8080/realms/nonrtric-realm/protocol/openid-connect/token
60 value: /token-cache/jwt.txt
62 - mountPath: /token-cache
63 name: token-cache-volume
65 image: nexus3.o-ran-sc.org:10001/o-ran-sc/nonrtric-plt-pmlog:1.0.0
66 imagePullPolicy: Always
70 - 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
78 mountPath: /opt/app/pmlog-service/config/application.yaml
79 subPath: application.yaml
81 mountPath: /opt/app/pmlog-service/config/jobDefinition.json
82 subPath: jobDefinition.json
83 - mountPath: /token-cache
84 name: token-cache-volume
86 - name: APP_INFLUX_ACCESSTOKEN
89 name: influxdb-api-token