BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 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: Never |
| 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 | command: |
| 57 | - /opt/onap/sdnc/bin/startODL.sh |
| 58 | --- |
| 59 | apiVersion: apps/v1 |
| 60 | kind: Deployment |
| 61 | metadata: |
| 62 | name: $SDNC_DB_APP_NAME |
| 63 | namespace: $KUBE_NONRTRIC_NAMESPACE |
| 64 | labels: |
| 65 | run: $SDNC_DB_APP_NAME |
| 66 | autotest: SDNC |
| 67 | spec: |
| 68 | replicas: 1 |
| 69 | selector: |
| 70 | matchLabels: |
| 71 | run: $SDNC_DB_APP_NAME |
| 72 | template: |
| 73 | metadata: |
| 74 | labels: |
| 75 | run: $SDNC_DB_APP_NAME |
| 76 | autotest: SDNC |
| 77 | spec: |
| 78 | containers: |
| 79 | - name: $SDNC_DB_APP_NAME |
| 80 | image: $SDNC_DB_IMAGE |
| 81 | imagePullPolicy: Never |
| 82 | ports: |
| 83 | - name: http |
| 84 | containerPort: 3306 |
| 85 | env: |
| 86 | - name: MYSQL_ROOT_PASSWORD |
| 87 | value: 'itsASecret' |
| 88 | - name: MYSQL_ROOT_HOST |
| 89 | value: '%' |
| 90 | - name: MYSQL_USER |
| 91 | value: 'sdnctl' |
| 92 | - name: MYSQL_PASSWORD |
| 93 | value: 'gamma' |
| 94 | - name: MYSQL_DATABASE |
| 95 | value: 'sdnctl' |
| 96 | |