k8s学习

nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial k8s 学习总结     阅读全文
fightinggg's avatar
fightinggg 3月 25, 2021

k8s故障

    阅读全文
fightinggg's avatar
fightinggg 3月 15, 2021

k8s

nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial K8S安装docker12345678910111213141516sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-enginesudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.reposudo sed -i 's/$releasever/7/g' /etc/yum.repos.d/docker-ce.reposudo yum update -ysudo yum install yum-utils docker-ce docker-ce-cli containerd.io -ysudo systemctl start docker kubaadm 引导初始化K8S集群123456kubeadm init --pod-network-cidr 10.244.0.0/16 --control-plane-endpoint k8s-control-plane-endpoint-vip:6443 --upload-certs --kubernetes-version=v1.22.1kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml# 允许master节点进行负载kubectl taint nodes --all node-role.kubernetes.io/master-vim /etc/kubernetes/manifests/kube-apiserver.yaml#- --service-node-port-range=1000-32000 12# 加入控制平面kubeadm join k8s-control-plane-endpoint-vip:6443 --token xxxxxx.xxxxxxxxxxxxxxxx --discovery-token-ca-cert-hash sha256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --control-plane --certificate-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx     阅读全文
fightinggg's avatar
fightinggg 10月 01, 2020