摘要: 一、yaml文件 apiVersion: v1 #版本号 kind: Pod #当前K8S资源的类型是Pod metadata: #元数据 name: nginx labels: app: nginx spec: containers: - name: nginx image: nginx port 阅读全文
posted @ 2022-01-23 20:50 童话述说我的结局 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 一、生产环境下的k8s集群搭建 官方网址:https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/ 上图是官网的对环境要求,之前我在docker的文章中有写过用Vagrantfile文 阅读全文
posted @ 2022-01-23 13:35 童话述说我的结局 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 一、The hard way Kelsey Hightower :https://github.com/kelseyhightower 这种方式搭建Kubernetes的环境方式可以说是最难的了。他的github中有一个kubernetes-the-hard-way,里面写了一个k8s比较困难的搭建 阅读全文
posted @ 2022-01-23 11:49 童话述说我的结局 阅读(213) 评论(0) 推荐(0) 编辑