Function test updates
[nonrtric.git] / test / simulator-group / ricmediator / app.yaml
diff --git a/test/simulator-group/ricmediator/app.yaml b/test/simulator-group/ricmediator/app.yaml
new file mode 100644 (file)
index 0000000..4696598
--- /dev/null
@@ -0,0 +1,61 @@
+#  ============LICENSE_START=======================================================
+#  Copyright (C) 2023 Nordix Foundation
+#  ================================================================================
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+#  SPDX-License-Identifier: Apache-2.0
+#  ============LICENSE_END=========================================================
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+  name: $RICMEDIATOR_SIM_SET_NAME
+  namespace: $KUBE_A1SIM_NAMESPACE
+  labels:
+    run: $RICMEDIATOR_SIM_SET_NAME
+    autotest: RICMEDIATORSIM
+spec:
+  replicas: $RICMEDIATOR_SIM_COUNT
+  serviceName: $RICMEDIATOR_SIM_SET_NAME
+  selector:
+    matchLabels:
+      run: $RICMEDIATOR_SIM_SET_NAME
+  template:
+    metadata:
+      labels:
+        run: $RICMEDIATOR_SIM_SET_NAME
+        autotest: RICMEDIATORSIM
+    spec:
+      containers:
+      - name: $RICMEDIATOR_SIM_SET_NAME
+        image: $RICMEDIATOR_SIM_IMAGE
+        env:
+        - name: MY_POD_NAME
+          valueFrom:
+            fieldRef:
+              fieldPath: metadata.name
+        - name: DBAAS_SERVICE_HOST
+          value: $(MY_POD_NAME).$RICMEDIATOR_SIM_SET_NAME.$KUBE_A1SIM_NAMESPACE
+        - name: DBAAS_SERVICE_PORT
+          value: "6379"
+        imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
+        ports:
+        - name: http
+          containerPort: $RICMEDIATOR_SIM_INTERNAL_PORT
+        - name: https
+          containerPort: $RICMEDIATOR_SIM_INTERNAL_SECURE_PORT
+      - name: dbaas
+        image: $RICMEDIATOR_SIM_DB_IMAGE
+        imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
+        ports:
+        - name: http
+          containerPort: 6379