aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/00-init/gloo/templates/8-gateway-proxy-service.yaml
diff options
context:
space:
mode:
authorPramod <pramod.raghavendra.jayathirth@intel.com>2019-04-29 17:36:20 -0700
committerPramod <pramod.raghavendra.jayathirth@intel.com>2019-04-29 17:42:48 -0700
commit61f4b3a192df2aed9a98dbd1d65b46c165666de1 (patch)
treed2809d42c3c03207c70ade9919d5a56a396e9a7a /vnfs/DAaaS/00-init/gloo/templates/8-gateway-proxy-service.yaml
parented44393c10548b712a4c9c55f5d51c9e01554c2b (diff)
Adding helm charts for gloo ingress controller
Helm charts for gloo with support for Kubernetes ingress Issue-ID: ONAPARC-491 Change-Id: Ia6342f79edef19120da4c28f376a3399991a8310 Signed-off-by: Pramod <pramod.raghavendra.jayathirth@intel.com>
Diffstat (limited to 'vnfs/DAaaS/00-init/gloo/templates/8-gateway-proxy-service.yaml')
-rwxr-xr-xvnfs/DAaaS/00-init/gloo/templates/8-gateway-proxy-service.yaml35
1 files changed, 35 insertions, 0 deletions
diff --git a/vnfs/DAaaS/00-init/gloo/templates/8-gateway-proxy-service.yaml b/vnfs/DAaaS/00-init/gloo/templates/8-gateway-proxy-service.yaml
new file mode 100755
index 00000000..f0b7d347
--- /dev/null
+++ b/vnfs/DAaaS/00-init/gloo/templates/8-gateway-proxy-service.yaml
@@ -0,0 +1,35 @@
+{{- if .Values.gateway.enabled }}
+{{- range $key, $spec := .Values.gatewayProxies }}
+---
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: gloo
+ gloo: {{ $key }}
+ name: {{ $key }}
+ namespace: {{ $.Release.Namespace }}
+ {{- with $spec.service.extraAnnotations }}
+ annotations:
+{{toYaml . | indent 8}}{{- end }}
+spec:
+ ports:
+ - port: {{ $spec.service.httpPort }}
+ targetPort: {{ $spec.deployment.httpPort }}
+ protocol: TCP
+ name: http
+ - port: {{ $spec.service.httpsPort }}
+ targetPort: {{ $spec.deployment.httpsPort }}
+ protocol: TCP
+ name: https
+ selector:
+ gloo: {{ $key }}
+ type: {{ $spec.service.type }}
+ {{- if and (eq $spec.service.type "ClusterIP") $spec.service.clusterIP }}
+ clusterIP: {{ $spec.service.clusterIP }}
+ {{- end }}
+ {{- if and (eq $spec.service.type "LoadBalancer") $spec.service.loadBalancerIP }}
+ loadBalancerIP: {{ $spec.service.loadBalancerIP }}
+ {{- end }}
+{{- end }}
+{{- end }}