diff --git a/.changelog/3905.txt b/.changelog/3905.txt new file mode 100644 index 0000000000..f5aec57cb1 --- /dev/null +++ b/.changelog/3905.txt @@ -0,0 +1,3 @@ +```release-note:improvement +helm: support sync-lb-services-endpoints flag for syncCatalog +``` \ No newline at end of file diff --git a/charts/consul/templates/sync-catalog-deployment.yaml b/charts/consul/templates/sync-catalog-deployment.yaml index 8bd3e0af61..2cf0900bf3 100644 --- a/charts/consul/templates/sync-catalog-deployment.yaml +++ b/charts/consul/templates/sync-catalog-deployment.yaml @@ -191,6 +191,9 @@ spec: {{- if .Values.syncCatalog.ingress.loadBalancerIPs }} -loadBalancer-ips=true \ {{- end }} + {{- if .Values.syncCatalog.syncLoadBalancerEndpoints }} + -sync-lb-services-endpoints=true \ + {{- end }} {{- end }} livenessProbe: httpGet: diff --git a/charts/consul/values.yaml b/charts/consul/values.yaml index 9d06d56c1a..8e307d4265 100644 --- a/charts/consul/values.yaml +++ b/charts/consul/values.yaml @@ -2193,6 +2193,10 @@ syncCatalog: # Set this to false to skip syncing ClusterIP services. syncClusterIPServices: true + # If true, LoadBalancer service endpoints instead of ingress addresses will be synced to Consul. + # If false, LoadBalancer endpoints are not synced to Consul. + syncLoadBalancerEndpoints: false + ingress: # Syncs the hostname from a Kubernetes Ingress resource to service registrations # when a rule matched a service. Currently only supports host based routing and