Arugal

Java And Golang Coder; Open Source Enthusiast; Just be fun.

搭建一个 IPv4/IPv6 双栈网络 Kubernetes 集群

概述 本文讲述如何使用 kubeadm 在腾讯云上搭建一个 IPv4/IPv6 双栈网络 Kuberentes 集群,全文使用到的项目如下: Docker 20.10.21 Kuberentes v1.23.14 Calico v3.24.5 dula-stack 前期准备 在腾讯云购买两台云服务器, 服务器需要启用 IPv6 机器 IPv4 IPv6 说明 VM-16-9-centos 10.206.16.9 2402:4e00:1801:d000:0:97da:5b30:d4c3 Master 节点 VM-16-15-centos 10.206.16.15 2402:4e00:1801:d000:0:97da:5b09:8905 Worker 节点 系统配置 # 关闭防火墙 systemctl stop firewalld systemctl disable firewalld # 禁用 SELinux sed -ri 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config setenforce 0 getenforce # 禁用交换分区 (云服务器默认已经禁用) swapoff -a sed -i /^[^#]*swap*/s/^/\#/g /etc/fstab # 设置内核参数 echo 'net.ipv6.conf.all.forwarding = 1' >> /etc/sysctl.conf echo 'net....

十一月 25, 2022 · Arugal
☕️ 3 分钟 | 👀