摘要: Services kubectl expoese 命令可以创建一个service 供外部访问 Service主要有三种类型: ClusterIp NodePort LoadBalancer 另外可以使用DNS 但是需要DNS的add-on clusterIp kubectl expose pods 阅读全文
posted @ 2021-10-04 23:35 year12 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 零、介绍 ReplicationController和ReplicaSet介绍 RC(ReplicationController)主要的作用就是用来确保容器应用的副本数始终保持在用户定义的副本数。即如果有容器异常退出,会自动创建新的Pod来替代;而如果异常多出来的容器也会自动回收Kubernetes 阅读全文
posted @ 2021-10-04 20:56 year12 阅读(147) 评论(0) 推荐(0) 编辑
摘要: https://kubernetes.io/zh/docs/reference/setup-tools/kubeadm/kubeadm-init/ 一、环境准备 1.1 修改hostname hostnamectl set-hostname master 1.2 关闭防火墙 systemctl st 阅读全文
posted @ 2021-10-04 17:54 year12 阅读(106) 评论(0) 推荐(0) 编辑