Skip to content

Commit

Permalink
helm chart - Allow cloud config path for AWS provider
Browse files Browse the repository at this point in the history
  • Loading branch information
khizunov committed Aug 18, 2022
1 parent 68db7de commit 363eafd
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/cluster-autoscaler/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ spec:
{{- if .Values.autoDiscovery.clusterName }}
- --node-group-auto-discovery=asg:tag={{ tpl (join "," .Values.autoDiscovery.tags) . }}
{{- end }}
{{- if .Values.cloudConfigPath }}
- --cloud-config={{ .Values.cloudConfigPath }}
{{- end }}
{{- else if eq .Values.cloudProvider "gce" }}
{{- if .Values.autoscalingGroupsnamePrefix }}
{{- range .Values.autoscalingGroupsnamePrefix }}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
cloudProvider: aws

autoscalingGroups:
- name: aws-asg-name
minSize: 1
maxSize: 2

awsRegion: eu-west-1
awsAccessKeyID: "******"
awsSecretAccessKey: "******"

cloudConfigPath: config/cloud.conf

extraVolumes:
- name: cloud-config
configMap:
name: cloud-config

extraVolumeMounts:
- name: cloud-config
mountPath: config


# cloud config map example
# apiVersion: v1
# kind: ConfigMap
# metadata:
# name: cloud-config
# namespace: <autoscaler deployment namespace>
# data:
# cloud.conf: |
# [Global]
# Zone=eu-west-1a
# [ServiceOverride "ec2"]
# Service=ec2
# Region=eu-west-1
# URL=<endpoint_url>
# SigningRegion=eu-west-1
# [ServiceOverride "autoscaling"]
# Service=autoscaling
# Region=eu-west-1
# URL=<endpoint_url>
# SigningRegion=eu-west-1
# [ServiceOverride "elasticloadbalancing"]
# Service=elasticloadbalancing
# Region=eu-west-1
# URL=<endpoint_url>
# SigningRegion=eu-west-1

0 comments on commit 363eafd

Please sign in to comment.