Skip to content

Commit

Permalink
Merge pull request hashicorp#81 from hashicorp/clusterip-sync
Browse files Browse the repository at this point in the history
Add `syncClusterIPServices` to the values file
  • Loading branch information
Rebecca Zanzig authored Dec 8, 2018
2 parents 9149ca0 + e4248c7 commit 8da691c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion templates/sync-catalog-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,8 @@ spec:
{{- if .Values.syncCatalog.k8sPrefix }}
-k8s-service-prefix="{{ .Values.syncCatalog.k8sPrefix}}" \
{{- end }}
-k8s-write-namespace=${NAMESPACE}
-k8s-write-namespace=${NAMESPACE} \
{{- if (not .Values.syncCatalog.syncClusterIPServices) }}
-sync-clusterip-services=false
{{- end }}
{{- end }}
9 changes: 7 additions & 2 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ global:

# Image is the name (and tag) of the Consul Docker image for clients and
# servers below. This can be overridden per component.
image: "consul:1.3.0"
image: "consul:1.3.1"

# imageK8S is the name (and tag) of the consul-k8s Docker image that
# is used for functionality such as the catalog sync. This can be overridden
# per component below.
imageK8S: "hashicorp/consul-k8s:0.2.1"
imageK8S: "hashicorp/consul-k8s:0.3.0"

# Datacenter is the name of the datacenter that the agents should register
# as. This shouldn't be changed once the Consul cluster is up and running
Expand Down Expand Up @@ -173,6 +173,11 @@ syncCatalog:
# prepended with "consul-".
k8sPrefix: null

# syncClusterIPServices syncs services of the ClusterIP type, which may
# or may not be broadly accessible depending on your Kubernetes cluster.
# Set this to false to skip syncing ClusterIP services.
syncClusterIPServices: true

# ConnectInject will enable the automatic Connect sidecar injector.
connectInject:
enabled: false
Expand Down

0 comments on commit 8da691c

Please sign in to comment.