随笔分类 -  k8s

摘要:由于kubeadm前期安装完成后join使用 token 过期时间为(24小时过期),所以需要重新生成token 在master上重新生成新的token kubeadm token create 查看是否存在有效的 token 值 kubeadm token list 获取CA证书 sha256 编 阅读全文
posted @ 2021-10-18 23:01 xman888 阅读(60) 评论(0) 推荐(0)
摘要:DaemonSet A DaemonSet ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are re 阅读全文
posted @ 2021-10-18 22:52 xman888 阅读(27) 评论(0) 推荐(0)
摘要:通过ReplicationController来运行pod This controller ensures that there are a specific number of Pod replicas running at any time and, if a Pod does crash, t 阅读全文
posted @ 2021-10-18 22:39 xman888 阅读(28) 评论(0) 推荐(0)
摘要:a cluster consists of at least one control plane and multiple worker machines called nodes. These control plane and node machines run the Kubernetes c 阅读全文
posted @ 2021-10-18 20:54 xman888 阅读(51) 评论(0) 推荐(0)
摘要:kubectl taint nodes --all node-role.kubernetes.io/master- 上面一个命令,可以让master和worker node运行在一个物理host上。 阅读全文
posted @ 2021-09-26 20:25 xman888 阅读(64) 评论(0) 推荐(0)
摘要:install docker on each node: apt-get update apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release curl -fsSL https://do 阅读全文
posted @ 2021-09-25 17:55 xman888 阅读(68) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-09-23 21:55 xman888 阅读(26) 评论(0) 推荐(0)
摘要:kubectl run mynginx --image=nginx --port=80 创建pod有很多种方法 pod的yaml文件 simple-pod.yaml 创建一个pod kubectl create -f simple-pod.yaml 查看pod的参数情况 kubectl descri 阅读全文
posted @ 2021-09-23 21:37 xman888 阅读(49) 评论(0) 推荐(0)
摘要:kubectl run --help 阅读全文
posted @ 2021-09-23 21:09 xman888 阅读(44) 评论(0) 推荐(0)