Merge "Kafka now works in kube for calls outside its namespace"
[nonrtric.git] / test / simulator-group / sdnc / app.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: $SDNC_APP_NAME
5   namespace: $KUBE_SDNC_NAMESPACE
6   labels:
7     run: $SDNC_APP_NAME
8     autotest: SDNC
9 spec:
10   replicas: 1
11   selector:
12     matchLabels:
13       run: $SDNC_APP_NAME
14   template:
15     metadata:
16       labels:
17         run: $SDNC_APP_NAME
18         autotest: SDNC
19     spec:
20       containers:
21       - name: $SDNC_APP_NAME
22         image: $SDNC_A1_CONTROLLER_IMAGE
23         imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
24         ports:
25         - name: http
26           containerPort: $SDNC_INTERNAL_PORT
27         - name: https
28           containerPort: $SDNC_INTERNAL_SECURE_PORT
29         env:
30         - name: MYSQL_ROOT_PASSWORD
31           value: openECOMP1.0
32         - name: SDNC_CONFIG_DIR
33           value: /opt/onap/sdnc/data/properties
34         - name: SDNC_DB_INIT
35           value: 'true'
36         - name: A1_TRUSTSTORE_PASSWORD
37           value: $SDNC_A1_TRUSTSTORE_PASSWORD
38         - name: ODL_ADMIN_USERNAME
39           value: $SDNC_USER
40         - name: ODL_ADMIN_PASSWORD
41           value: $SDNC_PWD
42         command:
43         - /opt/onap/sdnc/bin/startODL.sh
44 ---
45 apiVersion: apps/v1
46 kind: Deployment
47 metadata:
48   name: $SDNC_DB_APP_NAME
49   namespace: $KUBE_SDNC_NAMESPACE
50   labels:
51     run: $SDNC_DB_APP_NAME
52     autotest: SDNC
53 spec:
54   replicas: 1
55   selector:
56     matchLabels:
57       run: $SDNC_DB_APP_NAME
58   template:
59     metadata:
60       labels:
61         run: $SDNC_DB_APP_NAME
62         autotest: SDNC
63     spec:
64       containers:
65         - name: $SDNC_DB_APP_NAME
66           image: $SDNC_DB_IMAGE
67           imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
68           ports:
69           - name: http
70             containerPort: 3306
71           env:
72           - name: MYSQL_ROOT_PASSWORD
73             value: openECOMP1.0
74           - name: MYSQL_ROOT_HOST
75             value: '%'
76