import helm charts from sdran-helm-charts
- Fixed licensing issues
Change-Id: Ib4f726a6359e340884d329a801eb0b498d7bbb38
diff --git a/aether-roc-api/templates/service.yaml b/aether-roc-api/templates/service.yaml
new file mode 100644
index 0000000..ac60319
--- /dev/null
+++ b/aether-roc-api/templates/service.yaml
@@ -0,0 +1,48 @@
+# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
+#
+# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
+
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "aether-roc-api.fullname" . }}
+ labels:
+ app: {{ template "aether-roc-api.fullname" . }}
+ chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+ release: "{{ .Release.Name }}"
+ heritage: "{{ .Release.Service }}"
+ {{- include "aether-roc-api.labels" . | nindent 4 }}
+spec:
+ type: {{ .Values.service.type }}
+ selector:
+ name: {{ template "aether-roc-api.fullname" . }}
+ app: aether
+ type: api
+ resource: {{ template "aether-roc-api.fullname" . }}
+ {{- include "aether-roc-api.selectorLabels" . | nindent 4 }}
+ ports:
+ - name: rest
+ port: 8181
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "aether-roc-api.fullname" . }}-websocket
+ labels:
+ app: {{ template "aether-roc-api.fullname" . }}-websocket
+ chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+ release: "{{ .Release.Name }}"
+ heritage: "{{ .Release.Service }}"
+ {{- include "aether-roc-api.labels" . | nindent 4 }}
+spec:
+ type: {{ .Values.service.type }}
+ selector:
+ name: {{ template "aether-roc-api.fullname" . }}
+ app: aether
+ type: api
+ resource: {{ template "aether-roc-api.fullname" . }}
+ {{- include "aether-roc-api.selectorLabels" . | nindent 4 }}
+ ports:
+ - name: webhook
+ port: 80
+ targetPort: {{ .Values.websocketsidecar.port }}