Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org> |
| 2 | # |
| 3 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
| 5 | apiVersion: v1 |
| 6 | kind: Service |
| 7 | metadata: |
| 8 | name: {{ include "aether-roc-api.fullname" . }} |
| 9 | labels: |
| 10 | app: {{ template "aether-roc-api.fullname" . }} |
| 11 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
| 12 | release: "{{ .Release.Name }}" |
| 13 | heritage: "{{ .Release.Service }}" |
| 14 | {{- include "aether-roc-api.labels" . | nindent 4 }} |
| 15 | spec: |
| 16 | type: {{ .Values.service.type }} |
| 17 | selector: |
| 18 | name: {{ template "aether-roc-api.fullname" . }} |
| 19 | app: aether |
| 20 | type: api |
| 21 | resource: {{ template "aether-roc-api.fullname" . }} |
| 22 | {{- include "aether-roc-api.selectorLabels" . | nindent 4 }} |
| 23 | ports: |
| 24 | - name: rest |
| 25 | port: 8181 |
| 26 | --- |
| 27 | apiVersion: v1 |
| 28 | kind: Service |
| 29 | metadata: |
| 30 | name: {{ include "aether-roc-api.fullname" . }}-websocket |
| 31 | labels: |
| 32 | app: {{ template "aether-roc-api.fullname" . }}-websocket |
| 33 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
| 34 | release: "{{ .Release.Name }}" |
| 35 | heritage: "{{ .Release.Service }}" |
| 36 | {{- include "aether-roc-api.labels" . | nindent 4 }} |
| 37 | spec: |
| 38 | type: {{ .Values.service.type }} |
| 39 | selector: |
| 40 | name: {{ template "aether-roc-api.fullname" . }} |
| 41 | app: aether |
| 42 | type: api |
| 43 | resource: {{ template "aether-roc-api.fullname" . }} |
| 44 | {{- include "aether-roc-api.selectorLabels" . | nindent 4 }} |
| 45 | ports: |
| 46 | - name: webhook |
| 47 | port: 80 |
| 48 | targetPort: {{ .Values.websocketsidecar.port }} |