New version of the common template. It unifies the naming convention between platform...
[it/dep.git] / ric-platform / 55-Ext-Services / helm / ext / templates / services.yaml
index fc6029a..ec524c1 100644 (file)
@@ -42,4 +42,33 @@ subsets:
       - port: {{ include "common.ingresshttpport.ricaux" . }}
         name: {{ include "common.ingressurl.ricaux" . }}-http-ingress-port
       - port: {{ include "common.ingresshttpport.ricaux" . }}
-        name: {{ include "common.ingressurl.ricaux" . }}-https-ingress-port
\ No newline at end of file
+        name: {{ include "common.ingressurl.ricaux" . }}-https-ingress-port
+---
+kind: "Service"
+apiVersion: "v1"
+metadata:
+  name: {{ include "common.ingressurl.ricinfra" . }}
+  namespace: {{ include "common.namespace" . }}
+spec:
+  ports:
+    - name: {{ include "common.ingressurl.ricinfra" . }}-http-ingress-port
+      protocol: "TCP"
+      port: 80
+    - name: {{ include "common.ingressurl.ricinfra" . }}-https-ingress-port
+      protocol: "TCP"
+      port: 443
+---
+kind: "Endpoints"
+apiVersion: "v1"
+metadata:
+  # match with the selector-less service
+  name: {{ include "common.ingressurl.ricinfra" . }}
+  namespace: {{ include "common.namespace" . }}
+subsets: 
+  - addresses:
+      - ip: "{{ .Values.ext.ip }}"
+    ports:
+      - port: {{ include "common.ingresshttpport.ricinfra" . }}
+        name: {{ include "common.ingressurl.ricinfra" . }}-http-ingress-port
+      - port: {{ include "common.ingresshttpport.ricinfra" . }}
+        name: {{ include "common.ingressurl.ricinfra" . }}-https-ingress-port