aws: make CCM work

This commit is contained in:
Leonard Cohnen 2022-10-30 03:40:06 +01:00 committed by 3u13r
parent 828923d159
commit 0d0191ba4d
2 changed files with 13 additions and 6 deletions

View File

@ -18,11 +18,11 @@ spec:
containers:
- name: cloud-controller-manager
image: {{ .Values.AWS.image }}
command:
- /aws-cloud-controller-manager
args:
- --cloud-provider=aws
- --leader-elect=true
- --cluster-cidr={{ .Values.subnetworkCIDR }}
- --allocate-node-cidrs=false
- --configure-cloud-routes=false
- -v=2
volumeMounts:
- name: etckubernetes

View File

@ -24,6 +24,7 @@ resource "aws_launch_template" "launch_template" {
http_endpoint = "enabled"
http_tokens = "required"
instance_metadata_tags = "enabled"
http_put_response_hop_limit = 2
}
block_device_mappings {
@ -71,4 +72,10 @@ resource "aws_autoscaling_group" "control_plane_autoscaling_group" {
value = var.uid
propagate_at_launch = true
}
tag {
key = "KubernetesCluster"
value = "Constellation-${var.uid}"
propagate_at_launch = true
}
}