Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #296 from drnic/loadBalancerIP
Browse files Browse the repository at this point in the history
[GKE] allow setting svc spec.loadBalancerIP for GKE reserved/static IPs
  • Loading branch information
Thulio Ferraz Assis authored Jan 5, 2020
2 parents 0ac9cda + 7ee483f commit f5c263f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions deploy/helm/kubecf/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ spec:
{{- if $service.clusterIP }}
clusterIP: {{ $service.clusterIP | quote }}
{{- end }}
{{- if $service.loadBalancerIP }}
loadBalancerIP: {{ $service.loadBalancerIP | quote }}
{{- end }}
{{- end }}
---
{{- with $service := index .Values.services "ssh-proxy" }}
Expand Down Expand Up @@ -166,6 +169,9 @@ spec:
{{- if $service.clusterIP }}
clusterIP: {{ $service.clusterIP | quote }}
{{- end }}
{{- if $service.loadBalancerIP }}
loadBalancerIP: {{ $service.loadBalancerIP | quote }}
{{- end }}
{{- end }}
---
{{- with $service := index .Values.services "tcp-router" }}
Expand Down Expand Up @@ -201,5 +207,8 @@ spec:
{{- if $service.clusterIP }}
clusterIP: {{ $service.clusterIP | quote }}
{{- end }}
{{- if $service.loadBalancerIP }}
loadBalancerIP: {{ $service.loadBalancerIP | quote }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion deploy/helm/kubecf/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ kube:
# The storage class to be used for the instance groups that need it (e.g. bits, database and
# singleton-blobstore). If it's not set, the default storage class will be used.
storage_class: ~
# The service_cluster_ip_range and pos_cluster_ip_range are used by the internal security group
# The service_cluster_ip_range and pod_cluster_ip_range are used by the internal security group
# definition to allow apps to communicate with internal service brokers (e.g. credhub).
# service_cluster_ip_range can be fetched with the following command, assuming that the API
# server started with the `--service-cluster-ip-range` flag:
Expand Down

0 comments on commit f5c263f

Please sign in to comment.