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

Add syncClusterIPServices to the values file #81

Merged
merged 2 commits into from
Dec 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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