上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: 上一节我们运行的3个容器 其中有两个是运行在node2上一个运行在node1上,现在我们关闭node1,观察node1上的容器会发生什么变化 目前node1已经处于notready状态 现在我们查看一下pod的状态 在node1上面的pod处于unknow的状态,在node2上面又重新起来了一个新的 阅读全文
posted @ 2018-09-26 17:45 无踪无影 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 伸缩(Scale up/down)是指在线增加或减少pod副本数量 通过yml文件创建两个nginx的pod 先查看一下nginx的yml文件: 通过kubectl apply -f创建 通过kubectl get 查看ngin1的资源信息 通过上面的资源我们可以看出目前pod有两个副本 通过修改n 阅读全文
posted @ 2018-09-26 16:32 无踪无影 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 两种方式:1.命令;2.配置文件 之前我们在部署K8S的时候分别用到了命令和配置文件创建K8s资源: Kubernets 还提供了几个类似的命令,例如 kubectl create、kubectl replace、kubectl edit 和 kubectl patch。 为避免造成不必要的困扰,我 阅读全文
posted @ 2018-09-26 15:32 无踪无影 阅读(755) 评论(0) 推荐(0) 编辑
摘要: Deployment 从一个例子开始 kubectl run nginx-deployment --image=nginx:1.7.9 --replicas=2 kubectl get deployment nginx-deployment 查看状态 通过kubectl describe deplo 阅读全文
posted @ 2018-09-26 11:28 无踪无影 阅读(356) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/sparkdev/p/9614326.html 阅读全文
posted @ 2018-09-16 07:38 无踪无影 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 基于WEB的dashboard,用户可以用kubernetes dashboard部署容器话的应用,监控应用的状态,执行故障排查任务以及管理kubernetes各种资源。 在kubernetes dashboard中可以查看集群中应用的运行状态,也能创建和修改各种kubernetes资源,比如dep 阅读全文
posted @ 2018-09-07 10:32 无踪无影 阅读(2487) 评论(0) 推荐(0) 编辑
摘要: Kubenetes cluster 由master和node组成 Master是kubenetes的大脑。运行着以下进程:kube-apiserver、kube-scheduler、kube-controller-manager、etcd 和 Pod 网络(例如 flannel)。 API Serv 阅读全文
posted @ 2018-09-04 14:23 无踪无影 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 配置kubenetes的flannel网络的时候,出现以下报错 The connection to the server localhost:8080 was refused - did you specify the right host or port? 原因:kubenetes master没 阅读全文
posted @ 2018-08-31 16:02 无踪无影 阅读(26230) 评论(3) 推荐(1) 编辑
摘要: 配置docker网络flannel时,配置etcd的key的时候出现以下错误 Error: client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 127.0.0.1:4001: getsockopt: con 阅读全文
posted @ 2018-08-16 11:13 无踪无影 阅读(26043) 评论(2) 推荐(0) 编辑
摘要: 1.准备Azure的虚拟机,安装docker-machine 由于azure虚拟机的管理员账号不是root,所以这里我们使用自己创建的管理员yy 1.base=https://github.com/docker/machine/releases/download/v0.14.0 && curl -L 阅读全文
posted @ 2018-07-25 16:11 无踪无影 阅读(559) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页