Skip to content

Commit 510208d

Browse files
committed
feat: Add ipv6 to cluster
1 parent 20930f8 commit 510208d

File tree

4 files changed

+9
-25
lines changed

4 files changed

+9
-25
lines changed

ansible/host_vars/g001.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

ansible/host_vars/moto-a1-3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ ansible_user: ubuntu
1313

1414
public_ip: 138.2.50.202
1515
private_ip: 10.0.0.128
16+
ipv6: 2603:c023:e:6f00:0:eba5:dfa7:81b7

ansible/roles/k3s-agent/templates/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ kubelet-arg:
33
- container-log-max-size=1Mi
44
- config=/etc/rancher/k3s/kubelet-config.yaml
55

6-
node-ip: "{{ private_ip }}"
7-
node-external-ip: "{{ public_ip }}"
6+
node-ip: "{{ private_ip }},{{ ipv6 }}"
7+
node-external-ip: "{{ public_ip }},{{ ipv6 }}"

ansible/roles/k3s-server/templates/config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
write-kubeconfig-mode: "0644"
22

3-
cluster-cidr: 10.42.0.0/16
4-
service-cidr: 10.43.0.0/16
3+
cluster-cidr: 10.42.0.0/16,2001:db8:42::/56
4+
service-cidr: 10.43.0.0/16,2001:db8:43::/56
55

66
disable:
77
- traefik
@@ -12,12 +12,12 @@ kubelet-arg:
1212
- config=/etc/rancher/k3s/kubelet-config.yaml
1313

1414
flannel-backend: wireguard-native
15-
node-ip: "{{ private_ip }}"
16-
node-external-ip: "{{ public_ip }}"
15+
node-ip: "{{ private_ip }},{{ ipv6 }}"
16+
node-external-ip: "{{ public_ip }},{{ ipv6 }}"
1717

1818
# uncomment below if multi-cloud cluster
19-
advertise-address: "{{ public_ip }}"
20-
flannel-external-ip: true
19+
# advertise-address: "{{ public_ip }}, {{ ipv6 }}"
20+
# flannel-external-ip: true
2121
# uncomment above if multi-cloud cluster
2222

2323
kube-controller-manager-arg:

0 commit comments

Comments
 (0)