From 92886e64ca1c11118ea5b8f02309d454b8f4c7d5 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Sat, 11 Jan 2020 10:11:36 -0800 Subject: [PATCH] Allow override of service type for zuul-web To attach a service to a GCE loadbalancer, the service must be a NodePort not a ClusterIP. Allow users to specify that as an option. ClusterIP is the default. Change-Id: I98a31f14c110293ac66d3a356accdf1e925663e5 --- charts/zuul/templates/web/service.yaml | 2 +- charts/zuul/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/zuul/templates/web/service.yaml b/charts/zuul/templates/web/service.yaml index 13a98aa..4dc39e7 100644 --- a/charts/zuul/templates/web/service.yaml +++ b/charts/zuul/templates/web/service.yaml @@ -8,7 +8,7 @@ metadata: labels: {{- include "zuul.web.labels" . | indent 4 }} spec: - type: ClusterIP + type: {{ .Values.web.serviceType }} ports: - name: zuul-web port: {{ .Values.web.port }} diff --git a/charts/zuul/values.yaml b/charts/zuul/values.yaml index 91608b9..638f803 100644 --- a/charts/zuul/values.yaml +++ b/charts/zuul/values.yaml @@ -20,6 +20,7 @@ web: enabled: true replicas: 3 port: 9000 + serviceType: ClusterIP ingress: enabled: false