blob: 1824cd1c455782eef860c5a29684e4870b96c03f [file] [log] [blame]
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +01001apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: $SDNC_APP_NAME
BjornMagnussonXA6fc58fd2021-11-18 08:19:45 +01005 namespace: $KUBE_SDNC_NAMESPACE
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +01006 labels:
7 run: $SDNC_APP_NAME
8 autotest: SDNC
9spec:
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
BjornMagnussonXA483ee332021-04-08 01:35:24 +020023 imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010024 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
BjornMagnussonXAbb648282021-03-19 09:12:42 +010056 - name: AAI_TRUSTSTORE_PASSWORD
57 value: 'changeit'
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010058 command:
59 - /opt/onap/sdnc/bin/startODL.sh
60---
61apiVersion: apps/v1
62kind: Deployment
63metadata:
64 name: $SDNC_DB_APP_NAME
BjornMagnussonXA6fc58fd2021-11-18 08:19:45 +010065 namespace: $KUBE_SDNC_NAMESPACE
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010066 labels:
67 run: $SDNC_DB_APP_NAME
68 autotest: SDNC
69spec:
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
BjornMagnussonXA483ee332021-04-08 01:35:24 +020083 imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010084 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