Function test updates
[nonrtric.git] / test / simulator-group / ricmediator / app.yaml
1 #  ============LICENSE_START=======================================================
2 #  Copyright (C) 2023 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
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 #
16 #  SPDX-License-Identifier: Apache-2.0
17 #  ============LICENSE_END=========================================================
18 apiVersion: apps/v1
19 kind: StatefulSet
20 metadata:
21   name: $RICMEDIATOR_SIM_SET_NAME
22   namespace: $KUBE_A1SIM_NAMESPACE
23   labels:
24     run: $RICMEDIATOR_SIM_SET_NAME
25     autotest: RICMEDIATORSIM
26 spec:
27   replicas: $RICMEDIATOR_SIM_COUNT
28   serviceName: $RICMEDIATOR_SIM_SET_NAME
29   selector:
30     matchLabels:
31       run: $RICMEDIATOR_SIM_SET_NAME
32   template:
33     metadata:
34       labels:
35         run: $RICMEDIATOR_SIM_SET_NAME
36         autotest: RICMEDIATORSIM
37     spec:
38       containers:
39       - name: $RICMEDIATOR_SIM_SET_NAME
40         image: $RICMEDIATOR_SIM_IMAGE
41         env:
42         - name: MY_POD_NAME
43           valueFrom:
44             fieldRef:
45               fieldPath: metadata.name
46         - name: DBAAS_SERVICE_HOST
47           value: $(MY_POD_NAME).$RICMEDIATOR_SIM_SET_NAME.$KUBE_A1SIM_NAMESPACE
48         - name: DBAAS_SERVICE_PORT
49           value: "6379"
50         imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
51         ports:
52         - name: http
53           containerPort: $RICMEDIATOR_SIM_INTERNAL_PORT
54         - name: https
55           containerPort: $RICMEDIATOR_SIM_INTERNAL_SECURE_PORT
56       - name: dbaas
57         image: $RICMEDIATOR_SIM_DB_IMAGE
58         imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
59         ports:
60         - name: http
61           containerPort: 6379