Skip to content
Snippets Groups Projects
Commit 654c590c authored by Ulrich GIRAUD's avatar Ulrich GIRAUD
Browse files

feat(clusterapi): allow namespace definition for kubeconfig-incluster mode

parent f2fbbc71
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,11 @@ spec:
command:
- ./cluster-autoscaler
- --cloud-provider={{ .Values.cloudProvider }}
{{- if and (eq .Values.cloudProvider "clusterapi") (eq .Values.clusterAPIMode "kubeconfig-incluster") }}
- --namespace={{ .Values.clusterAPIConfigMapsNamespace | default "kube-system" }}
{{- else }}
- --namespace={{ .Release.Namespace }}
{{- end }}
{{- if .Values.autoscalingGroups }}
{{- range .Values.autoscalingGroups }}
- --nodes={{ .minSize }}:{{ .maxSize }}:{{ .name }}
......
......@@ -120,6 +120,9 @@ clusterAPIWorkloadKubeconfigPath: /etc/kubernetes/value
# clusterAPICloudConfigPath -- Path to kubeconfig for connecting to Cluster API Management Cluster, only used if `clusterAPIMode=kubeconfig-kubeconfig or incluster-kubeconfig`
clusterAPICloudConfigPath: /etc/kubernetes/mgmt-kubeconfig
# clusterAPIConfigMapsNamespace -- Namespace on the workload cluster to store Leader election and status configmaps
clusterAPIConfigMapsNamespace: ""
# cloudConfigPath -- Configuration file for cloud provider.
cloudConfigPath: /etc/gce.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment