Updated installation and components
[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: {{ .Values.global.extimagerepo }}pm-rapp:latest
29     {{- if .Values.global.extimagerepo }}
30     imagePullPolicy: Always
31     {{- else }}
32     imagePullPolicy: Never
33     {{- end }}
34     ports:
35     - name: http
36       containerPort: 80
37     env:
38     - name: APPID
39       valueFrom:
40         fieldRef:
41           fieldPath: metadata.name
42     - name: APPNS
43       valueFrom:
44         fieldRef:
45           fieldPath: metadata.namespace
46     - name: KAFKA_SERVER
47       value: kafka-1-kafka-bootstrap.nonrtric:9097
48     - name: ICS
49       value: informationservice.nonrtric:8083
50     - name: TOPIC
51       value: rapp-topic
52     # Set value to any string to log payload
53     - name: LOG_PAYLOAD
54       value: '1'
55     # Set value to any string to indicate that payload is gzipped
56     - name: GZIP
57       value: ''
58     - name: CREDS_GRANT_TYPE
59       value: client_credentials
60     - name: CREDS_CLIENT_SECRET
61       value: {{ .Values.pmrapp.clientsecret }}
62     - name: CREDS_CLIENT_ID
63       value: pm-rapp
64     - name: AUTH_SERVICE_URL
65       value: http://keycloak.nonrtric:8080/realms/nonrtric-realm/protocol/openid-connect/token
66     volumeMounts:
67     - mountPath: /config
68       name: pm-rapp-jobdef
69   volumes:
70   - configMap:
71       name: pm-rapp-jobdef
72     name: pm-rapp-jobdef
73