Update license references
[nonrtric.git] / test / simulator-group / dmaapmed / app.yaml
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
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: Deployment
20 metadata:
21   name: $DMAAP_MED_APP_NAME
22   namespace: $KUBE_NONRTRIC_NAMESPACE
23   labels:
24     run: $DMAAP_MED_APP_NAME
25     autotest: DMAAPMED
26 spec:
27   replicas: 1
28   selector:
29     matchLabels:
30       run: $DMAAP_MED_APP_NAME
31   template:
32     metadata:
33       labels:
34         run: $DMAAP_MED_APP_NAME
35         autotest: DMAAPMED
36     spec:
37       containers:
38       - name: $DMAAP_MED_APP_NAME
39         image: $DMAAP_MED_IMAGE
40         imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
41         ports:
42         - name: http
43           containerPort: $DMAAP_MED_INTERNAL_PORT
44         - name: https
45           containerPort: $DMAAP_MED_INTERNAL_SECURE_PORT
46         volumeMounts:
47         - mountPath: $DMAAP_MED_DATA_MOUNT_PATH/$DMAAP_MED_CONTR_DATA_FILE
48           subPath: $DMAAP_MED_CONTR_DATA_FILE
49           name: dmaapadp-data-name
50         env:
51         - name: INFO_PRODUCER_HOST
52           value: "$DMAAP_MED_CONF_SELF_HOST"
53         - name: INFO_PRODUCER_PORT
54           value: "$DMAAP_MED_CONF_SELF_PORT"
55         - name: INFO_COORD_ADDR
56           value: "$ICS_SERVICE_PATH"
57         - name: DMAAP_MR_ADDR
58           value: "$MR_SERVICE_PATH"
59         - name: LOG_LEVEL
60           value: Debug
61         - name: KAFKA_BOOTSTRAP_SERVERS
62           value: "$MR_KAFKA_SERVICE_PATH"
63       volumes:
64       - configMap:
65           defaultMode: 420
66           name: $DMAAP_MED_DATA_CONFIGMAP_NAME
67         name: dmaapadp-data-name
68 # Selector will be set when pod is started first time
69       nodeSelector:
70