1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2020-2022 Nordix Foundation
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.
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
22 namespace: $KUBE_NONRTRIC_NAMESPACE
39 # Need to run as root to be able to store files in dir mounted as a hostPath volume
41 - name: $A1PMS_APP_NAME
43 imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
46 containerPort: $A1PMS_INTERNAL_PORT
48 containerPort: $A1PMS_INTERNAL_SECURE_PORT
50 - mountPath: $A1PMS_CONFIG_MOUNT_PATH
52 - mountPath: $A1PMS_CONTAINER_MNT_DIR
53 name: a1pms-pv-data-name
54 - mountPath: $A1PMS_DATA_MOUNT_PATH
57 - mountPath: $A1PMS_SIDECAR_MOUNT
58 name: token-cache-volume
61 - name: $AUTHSIDECAR_APP_NAME
62 image: $AUTHSIDECAR_IMAGE
63 imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
65 - name: CREDS_GRANT_TYPE
66 value: $A1PMS_CREDS_GRANT_TYPE
67 - name: CREDS_CLIENT_SECRET
68 value: $A1PMS_CREDS_CLIENT_SECRET
69 - name: CREDS_CLIENT_ID
70 value: $A1PMS_CREDS_CLIENT_ID
72 value: $A1PMS_SIDECAR_JWT_FILE
73 - name: AUTH_SERVICE_URL
74 value: $A1PMS_AUTH_SERVICE_URL
76 - mountPath: $A1PMS_SIDECAR_MOUNT
77 name: token-cache-volume
82 name: $A1PMS_CONFIG_CONFIGMAP_NAME
86 name: $A1PMS_DATA_CONFIGMAP_NAME
88 - persistentVolumeClaim:
89 claimName: $A1PMS_DATA_PVC_NAME
90 name: a1pms-pv-data-name
92 - name: token-cache-volume
95 # Selector will be set when pod is started first time