Enable getting the ORU-ODU map from policy config
[nonrtric.git] / test / simulator-group / sdnc / app2.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: $SDNC_APP_NAME
5   namespace: $KUBE_NONRTRIC_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: 'itsASecret'
32         - name: MYSQL_USER
33           value: 'sdnctl'
34         - name: MYSQL_PASSWORD
35           value: 'gamma'
36         - name: MYSQL_DATABASE
37           value: 'sdnctl'
38         - name: SDNC_CONFIG_DIR
39           value: '/opt/onap/sdnc/data/properties'
40         - name: SDNC_BIN
41           value: '/opt/onap/sdnc/bin'
42         - name: ODL_CERT_DIR
43           value: '/tmp'
44         - name: ODL_ADMIN_USERNAME
45           value: $SDNC_USER
46         - name: ODL_ADMIN_PASSWORD
47           value: $SDNC_PWD
48         - name: ODL_USERNAME
49           value: $SDNC_USER
50         - name: ODL_PASSWORD
51           value: $SDNC_PWD
52         - name: SDNC_DB_INIT
53           value: 'true'
54         - name: A1_TRUSTSTORE_PASSWORD
55           value: $SDNC_A1_TRUSTSTORE_PASSWORD
56         - name: AAI_TRUSTSTORE_PASSWORD
57           value: 'changeit'
58         command:
59         - /opt/onap/sdnc/bin/startODL.sh
60 ---
61 apiVersion: apps/v1
62 kind: Deployment
63 metadata:
64   name: $SDNC_DB_APP_NAME
65   namespace: $KUBE_NONRTRIC_NAMESPACE
66   labels:
67     run: $SDNC_DB_APP_NAME
68     autotest: SDNC
69 spec:
70   replicas: 1
71   selector:
72     matchLabels:
73       run: $SDNC_DB_APP_NAME
74   template:
75     metadata:
76       labels:
77         run: $SDNC_DB_APP_NAME
78         autotest: SDNC
79     spec:
80       containers:
81         - name: $SDNC_DB_APP_NAME
82           image: $SDNC_DB_IMAGE
83           imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
84           ports:
85           - name: http
86             containerPort: 3306
87           env:
88           - name: MYSQL_ROOT_PASSWORD
89             value: 'itsASecret'
90           - name: MYSQL_ROOT_HOST
91             value: '%'
92           - name: MYSQL_USER
93             value: 'sdnctl'
94           - name: MYSQL_PASSWORD
95             value: 'gamma'
96           - name: MYSQL_DATABASE
97             value: 'sdnctl'
98