Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
autoscaler
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
kubernetes
autoscaler
Commits
654c590c
Commit
654c590c
authored
3 years ago
by
Ulrich GIRAUD
Browse files
Options
Downloads
Patches
Plain Diff
feat(clusterapi): allow namespace definition for kubeconfig-incluster mode
parent
f2fbbc71
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
charts/cluster-autoscaler/templates/deployment.yaml
+4
-0
4 additions, 0 deletions
charts/cluster-autoscaler/templates/deployment.yaml
charts/cluster-autoscaler/values.yaml
+3
-0
3 additions, 0 deletions
charts/cluster-autoscaler/values.yaml
with
7 additions
and
0 deletions
charts/cluster-autoscaler/templates/deployment.yaml
+
4
−
0
View file @
654c590c
...
...
@@ -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 }}
...
...
This diff is collapsed.
Click to expand it.
charts/cluster-autoscaler/values.yaml
+
3
−
0
View file @
654c590c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment