1 # ============LICENSE_START===============================================
2 # Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
3 # Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
4 # ========================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END=================================================
45 - name: token-cache-volume
49 image: nexus3.o-ran-sc.org:10002/o-ran-sc/nonrtric-plt-auth-token-fetch:1.1.1
50 imagePullPolicy: Always
52 - name: CREDS_GRANT_TYPE
53 value: client_credentials
54 - name: CREDS_CLIENT_SECRET
55 value: {{ .Values.nrtpmlog.clientsecret }}
56 - name: CREDS_CLIENT_ID
58 - name: AUTH_SERVICE_URL
59 value: http://keycloak.nonrtric:8080/realms/nonrtric-realm/protocol/openid-connect/token
61 value: /token-cache/jwt.txt
63 - mountPath: /token-cache
64 name: token-cache-volume
66 image: nexus3.o-ran-sc.org:10002/o-ran-sc/nonrtric-plt-pmlog:1.1.0
67 imagePullPolicy: Always
71 - 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
79 mountPath: /opt/app/pmlog-service/config/application.yaml
80 subPath: application.yaml
82 mountPath: /opt/app/pmlog-service/config/jobDefinition.json
83 subPath: jobDefinition.json
84 - mountPath: /token-cache
85 name: token-cache-volume
87 - name: APP_INFLUX_ACCESSTOKEN
90 name: influxdb-api-token