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
43 imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
46 containerPort: $ICS_INTERNAL_PORT
48 containerPort: $ICS_INTERNAL_SECURE_PORT
50 - mountPath: $ICS_CONFIG_MOUNT_PATH/$ICS_CONFIG_FILE
51 subPath: $ICS_CONFIG_FILE
53 - mountPath: $ICS_CONTAINER_MNT_DIR
56 - mountPath: $ICS_SIDECAR_MOUNT
57 name: token-cache-volume
60 - name: $AUTHSIDECAR_APP_NAME
61 image: $AUTHSIDECAR_IMAGE
62 imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
64 - name: CREDS_GRANT_TYPE
65 value: $ICS_CREDS_GRANT_TYPE
66 - name: CREDS_CLIENT_SECRET
67 value: $ICS_CREDS_CLIENT_SECRET
68 - name: CREDS_CLIENT_ID
69 value: $ICS_CREDS_CLIENT_ID
71 value: $ICS_SIDECAR_JWT_FILE
72 - name: AUTH_SERVICE_URL
73 value: $ICS_AUTH_SERVICE_URL
75 - mountPath: $ICS_SIDECAR_MOUNT
76 name: token-cache-volume
81 name: $ICS_CONFIG_CONFIGMAP_NAME
83 - persistentVolumeClaim:
84 claimName: $ICS_DATA_PVC_NAME
87 - name: token-cache-volume
91 # Selector will be set when pod is started first time