Update README
[nonrtric.git] / test / simulator-group / sdnc / app2.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: $SDNC_APP_NAME
22   namespace: $KUBE_SDNC_NAMESPACE
23   labels:
24     run: $SDNC_APP_NAME
25     autotest: SDNC
26 spec:
27   replicas: 1
28   selector:
29     matchLabels:
30       run: $SDNC_APP_NAME
31   template:
32     metadata:
33       labels:
34         run: $SDNC_APP_NAME
35         autotest: SDNC
36     spec:
37       containers:
38       - name: $SDNC_APP_NAME
39         image: $SDNC_A1_CONTROLLER_IMAGE
40         imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
41         ports:
42         - name: http
43           containerPort: $SDNC_INTERNAL_PORT
44         - name: https
45           containerPort: $SDNC_INTERNAL_SECURE_PORT
46         env:
47         - name: MYSQL_ROOT_PASSWORD
48           value: 'itsASecret'
49         - name: MYSQL_USER
50           value: 'sdnctl'
51         - name: MYSQL_PASSWORD
52           value: 'gamma'
53         - name: MYSQL_DATABASE
54           value: 'sdnctl'
55         - name: SDNC_CONFIG_DIR
56           value: '/opt/onap/sdnc/data/properties'
57         - name: SDNC_BIN
58           value: '/opt/onap/sdnc/bin'
59         - name: ODL_CERT_DIR
60           value: '/tmp'
61         - name: ODL_ADMIN_USERNAME
62           value: $SDNC_USER
63         - name: ODL_ADMIN_PASSWORD
64           value: $SDNC_PWD
65         - name: ODL_USERNAME
66           value: $SDNC_USER
67         - name: ODL_PASSWORD
68           value: $SDNC_PWD
69         - name: SDNC_DB_INIT
70           value: 'true'
71         - name: A1_TRUSTSTORE_PASSWORD
72           value: $SDNC_A1_TRUSTSTORE_PASSWORD
73         - name: AAI_TRUSTSTORE_PASSWORD
74           value: 'changeit'
75         command:
76         - /opt/onap/sdnc/bin/startODL.sh
77 ---
78 apiVersion: apps/v1
79 kind: Deployment
80 metadata:
81   name: $SDNC_DB_APP_NAME
82   namespace: $KUBE_SDNC_NAMESPACE
83   labels:
84     run: $SDNC_DB_APP_NAME
85     autotest: SDNC
86 spec:
87   replicas: 1
88   selector:
89     matchLabels:
90       run: $SDNC_DB_APP_NAME
91   template:
92     metadata:
93       labels:
94         run: $SDNC_DB_APP_NAME
95         autotest: SDNC
96     spec:
97       containers:
98         - name: $SDNC_DB_APP_NAME
99           image: $SDNC_DB_IMAGE
100           imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
101           ports:
102           - name: http
103             containerPort: 3306
104           env:
105           - name: MYSQL_ROOT_PASSWORD
106             value: 'itsASecret'
107           - name: MYSQL_ROOT_HOST
108             value: '%'
109           - name: MYSQL_USER
110             value: 'sdnctl'
111           - name: MYSQL_PASSWORD
112             value: 'gamma'
113           - name: MYSQL_DATABASE
114             value: 'sdnctl'
115