BjornMagnussonXA | e0b665e | 2021-01-08 22:19:18 +0100 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 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 | type: ClusterIP |
| 11 | ports: |
| 12 | - port: $SDNC_EXTERNAL_PORT |
| 13 | targetPort: $SDNC_INTERNAL_PORT |
| 14 | protocol: TCP |
| 15 | name: http |
| 16 | - port: $SDNC_EXTERNAL_SECURE_PORT |
| 17 | targetPort: $SDNC_INTERNAL_SECURE_PORT |
| 18 | protocol: TCP |
| 19 | name: https |
| 20 | selector: |
| 21 | run: $SDNC_APP_NAME |
| 22 | --- |
| 23 | apiVersion: v1 |
| 24 | kind: Service |
| 25 | metadata: |
| 26 | name: dbhost |
| 27 | namespace: $KUBE_NONRTRIC_NAMESPACE |
| 28 | labels: |
| 29 | run: $SDNC_DB_APP_NAME |
| 30 | autotest: SDNC |
| 31 | spec: |
| 32 | type: ClusterIP |
| 33 | ports: |
| 34 | - port: 3306 |
| 35 | targetPort: 3306 |
| 36 | protocol: TCP |
| 37 | name: http |
| 38 | selector: |
| 39 | run: $SDNC_DB_APP_NAME |
| 40 | --- |
| 41 | apiVersion: v1 |
| 42 | kind: Service |
| 43 | metadata: |
| 44 | name: sdnctldb01 |
| 45 | namespace: $KUBE_NONRTRIC_NAMESPACE |
| 46 | labels: |
| 47 | run: $SDNC_DB_APP_NAME |
| 48 | autotest: SDNC |
| 49 | spec: |
| 50 | type: ClusterIP |
| 51 | ports: |
| 52 | - port: 3306 |
| 53 | targetPort: 3306 |
| 54 | protocol: TCP |
| 55 | name: http |
| 56 | selector: |
| 57 | run: $SDNC_DB_APP_NAME |