arugal / arugal.github.io

blog
https://arugal.github.io/
0 stars 0 forks source link

搭建一个 IPv4/IPv6 双栈网络 Kubernetes 集群 | Arugal's Blog #6

Open arugal opened 1 year ago

arugal commented 1 year ago

https://arugal.github.io/post/kubernetes-dual-stack/?

概述 本文讲述如何使用 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.

arugal commented 1 year ago

第一次写博客,有不对的地方多多关照呀😊