Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Yugabyte charts] Added nested flag for EKS kubernetai multi-cluster #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (and .Values.multicluster.createCommonTserverService (not .Values.oldNamingStyle)) }}
{{- if (and .Values.multicluster.createCommonTserverService.enabled (not .Values.oldNamingStyle)) }}
{{- range $service := .Values.serviceEndpoints }}
{{- if eq $service.name "yb-tserver-service" }}
{{- $appLabelArgs := dict "label" $service.app "root" $ -}}
Expand All @@ -10,6 +10,9 @@ metadata:
{{- include "yugabyte.applabel" ($appLabelArgs) | indent 4 }}
{{- include "yugabyte.labels" $ | indent 4 }}
spec:
{{- if $.Values.multicluster.createCommonTserverService.headless }}
clusterIP: None
{{- end }}
ports:
{{- range $label, $port := $service.ports }}
- name: {{ $label | quote }}
Expand Down
6 changes: 5 additions & 1 deletion stable/yugabyte/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ multicluster:
## creates a ClusterIP service whos name does not have release name
## in it. A common service across different clusters for automatic
## failover. Useful when using new naming style.
createCommonTserverService: false
createCommonTserverService:
enabled: false
## To make above common Tserver service as headless service
## Can be useful in Kubernetai
headless: false

serviceMonitor:
## If true, two ServiceMonitor CRs are created. One for yb-master
Expand Down