banner
NEWS LETTER

Kubeadm初始化安装Kubernetes节点

Scroll down

本文作者:丁辉

Kubeadm初始化安装Kubernetes节点

  1. Kubernetes安装

    1
    2
    3
    4
    5
    kubeadm init \
    --image-repository=registry.aliyuncs.com/google_containers \
    --apiserver-advertise-address=192.168.1.10 \
    --pod-network-cidr=10.244.0.0/16 \
    --service-cidr=10.96.0.0/12
  2. 根据提示配置文件

    1
    2
    3
    4
    mkdir -p $HOME/.kube
    sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
    sudo chown $(id -u):$(id -g) $HOME/.kube/config
    export KUBECONFIG=/etc/kubernetes/admin.conf

    永久生效

    1
    2
    echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >>  ~/.bash_profile
    source ~/.bash_profile
  3. 安装网络插件

    请跳转此文档

I'm so cute. Please give me money.

其他文章
cover
Containerd+最新Kubeadm安装Kubernetes
  • 70/01/01
  • 00:00
  • Kubernetes-部署文档
cover
Kubeadm部署单机Kubernetes(Containerd)
  • 70/01/01
  • 00:00
  • Kubernetes-部署文档
目录导航 置顶
  1. 1. Kubeadm初始化安装Kubernetes节点
请输入关键词进行搜索