分类 Kubernetes 中的文章

Kubernetes集群安全地清空一个节点

k8s 集群安全地清空一个节点 清空节点 kubectl drain <node name> 问题 ➜ ~ kubectl drain xdf-31-kvm-python-107 node/xdf-31-kvm-python-107 already cordoned error: unable to drain node "xdf-31-kvm-python-107" due to error:[cannot delete Pods with local storage (use --delete-emptydir-data to override): ailearn-dev/ailearn-composer-interface-v1-f6f756895-wpnx5, ailearn-dev/ailearn-instruction-proxy-svr-v1-666d48bb6d-wlclh, ailearn-dev/kubevpn.traffic.manager, argocd/argocd-dex-server-5665ffc49-j5q2n, kube-system/metrics-server-799d467fd5-7tvc7, cannot delete DaemonSet-managed Pods (use --ignore-daemonsets to ignore): kube-system/calico-node-rcgw7, kube-system/kube-proxy-5rlmq, metallb-system/speaker-rbbvp, monitoring/node-exporter-5sl72], continuing command... There are pending nodes to be drained: xdf-31-kvm-python-107 cannot delete Pods with local storage (use --delete-emptydir-data to override): ailearn-dev/ailearn-composer-interface-v1-f6f756895-wpnx5, ailearn-dev/ailearn-instruction-proxy-svr-v1-666d48bb6d-wlclh, ailearn-dev/kubevpn.traffic.manager, argocd/argocd-dex-server-5665ffc49-j5q2n, kube-system/metrics-server-799d467fd5-7tvc7 cannot delete DaemonSet-managed Pods (use --ignore-daemonsets to ignore): kube-system/calico-node-rcgw7, kube-system/kube-proxy-5rlmq,……

阅读全文

Kubernetes update步骤

升级k8s 集群(1.19–>1.20) 官方文档: https://v1-20.docs.kubernetes.io/zh/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/#%E5%8D%87%E7%BA%A7-kubelet-%E5%92%8C-kubectl-1 升级master(来自官方文档,未验证) 执行 “kubeadm upgrade” 升级第一个master节点 升级 kubeadm yum install -y kubeadm-1.20.15-0 --disableexcludes=kubernetes 验证下载操作正常,并且 kubeadm 版本正确 [root@xdf-14-python-base-57 ~]# kubeadm version kubeadm……

阅读全文

Kubernetes安装步骤

kubernetes install 前置知识点 生产环境部署k8s 集群有两种模式 kubeadm: Kubeadm是一个K8s部署工具,提供kubeadm init和kubeadm join,用于快速部署Kubernetes集群 二进制包: 从github下载……

阅读全文