Helm charts and apps for pm-setup
[nonrtric/plt/ranpm.git] / install / helm / nrt-pm-rapp / templates / app-pod.yaml
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
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
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=================================================
16 #
17
18 apiVersion: v1
19 kind: Pod
20 metadata:
21   name: pm-rapp
22   namespace: nonrtric
23   labels:
24     app: pm-rapp
25 spec:
26   containers:
27   - name: pm-rapp
28     image: pm-rapp:latest
29     imagePullPolicy: Never
30     ports:
31     - name: http
32       containerPort: 80
33     env:
34     - name: APPID
35       valueFrom:
36         fieldRef:
37           fieldPath: metadata.name
38     - name: APPNS
39       valueFrom:
40         fieldRef:
41           fieldPath: metadata.namespace
42     - name: KAFKA_SERVER
43       value: kafka-1-kafka-bootstrap.nonrtric:9097
44     - name: ICS
45       value: informationservice.nonrtric:8083
46     - name: TOPIC
47       value: rapp-topic
48     # Set value to any string to log payload
49     - name: LOG_PAYLOAD
50       value: '1'
51     # Set value to any string to indicate that payload is gzipped
52     - name: GZIP
53       value: ''
54     - name: CREDS_GRANT_TYPE
55       value: client_credentials
56     - name: CREDS_CLIENT_SECRET
57       value: {{ .Values.pmrapp.clientsecret }}
58     - name: CREDS_CLIENT_ID
59       value: pm-rapp
60     - name: AUTH_SERVICE_URL
61       value: http://keycloak.nonrtric:8080/realms/nonrtric-realm/protocol/openid-connect/token
62     volumeMounts:
63     - mountPath: /config
64       name: pm-rapp-jobdef
65   volumes:
66   - configMap:
67       name: pm-rapp-jobdef
68     name: pm-rapp-jobdef
69