Jeremy Ronquillo | 11851d3 | 2020-06-08 15:13:08 -0700 | [diff] [blame] | 1 | {{/* |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 2 | # Copyright 2019-present Open Networking Foundation |
Jeremy Ronquillo | 11851d3 | 2020-06-08 15:13:08 -0700 | [diff] [blame] | 3 | |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
Jeremy Ronquillo | 11851d3 | 2020-06-08 15:13:08 -0700 | [diff] [blame] | 5 | */}} |
| 6 | |
| 7 | --- |
| 8 | apiVersion: v1 |
| 9 | kind: Service |
| 10 | metadata: |
| 11 | name: cdn-local |
| 12 | labels: |
| 13 | {{ tuple "cdn-local" . | include "cdn-local.metadata_labels" | indent 4 }} |
| 14 | spec: |
| 15 | selector: |
| 16 | {{ tuple "cdn-local" . | include "cdn-local.metadata_labels" | indent 4 }} |
| 17 | ports: |
| 18 | - name: http |
| 19 | port: {{ .Values.config.nginx.ports.http }} |
| 20 | protocol: TCP |
| 21 | - name: rtmp |
| 22 | port: {{ .Values.config.nginx.ports.rtmp }} |
| 23 | protocol: TCP |
| 24 | |
| 25 | {{- if .Values.config.nginx.ports.nodePorts.enabled }} |
| 26 | --- |
| 27 | apiVersion: v1 |
| 28 | kind: Service |
| 29 | metadata: |
| 30 | name: cdn-local-external |
| 31 | labels: |
| 32 | {{ tuple "cdn-local" . | include "cdn-local.metadata_labels" | indent 4 }} |
| 33 | spec: |
| 34 | selector: |
| 35 | {{ tuple "cdn-local" . | include "cdn-local.metadata_labels" | indent 4 }} |
| 36 | type: NodePort |
| 37 | ports: |
| 38 | - name: http |
| 39 | port: {{ .Values.config.nginx.ports.http }} |
| 40 | protocol: TCP |
| 41 | nodePort: {{ .Values.config.nginx.ports.nodePorts.http }} |
| 42 | - name: rtmp |
| 43 | port: {{ .Values.config.nginx.ports.rtmp }} |
| 44 | protocol: TCP |
| 45 | nodePort: {{ .Values.config.nginx.ports.nodePorts.rtmp }} |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 46 | {{- end }} |