File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 spec:
2424 calicoNetwork:
2525 ipPools:
26- - cidr: {{ pod_cidr }}
26+ - cidr: " {{ pod_cidr }}"
2727 encapsulation: VXLAN
2828 natOutgoing: Enabled
2929 mtu: {{ calico_vxlan_mtu }}
Original file line number Diff line number Diff line change 4444 set_fact :
4545 kubeadm_join_command : " {{ join_command.stdout }}"
4646
47+ - name : Install Helm
48+ shell : |
49+ curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
50+ args :
51+ creates : /usr/local/bin/helm
52+
4753- name : Label CP node
4854 command : >
4955 kubectl label node {{ inventory_hostname }}
Original file line number Diff line number Diff line change 99 register : kubelet_conf
1010
1111- name : Join cluster
12- command : " {{ hostvars[groups['role_control_plane'][0]].kubeadm_join_command }}"
12+ command : " {{ hostvars[groups['role_control_plane'][0]].kubeadm_join_command }} --node-name={{ inventory_hostname }} "
1313 when : not kubelet_conf.stat.exists
1414
1515- name : Label worker node (from CP)
Original file line number Diff line number Diff line change @@ -66,9 +66,11 @@ resource "aws_instance" "control_plane" {
6666locals {
6767 ssm_user_data = <<- EOF
6868 #!/bin/bash
69- snap install amazon-ssm-agent --classic
70- systemctl enable snap.amazon-ssm-agent.amazon-ssm-agent.service
71- systemctl start snap.amazon-ssm-agent.amazon-ssm-agent.service
69+ mkdir -p /tmp/ssm && cd /tmp/ssm
70+ curl -fsSL "https://s3.amazonaws.com/ec2-downloads-ssm/latest/debian_arm64/amazon-ssm-agent.deb" -o amazon-ssm-agent.deb
71+ dpkg -i amazon-ssm-agent.deb
72+ systemctl enable amazon-ssm-agent
73+ systemctl start amazon-ssm-agent
7274 EOF
7375
7476 # workers_per_az × 3 AZ → 플랫 맵 생성
You can’t perform that action at this time.
0 commit comments