摘要:
1.扩容 [root@k8s-master01 ~]# kubectl scale --replicas=3 deploy nginx deployment.apps/nginx scaled [root@k8s-master01 ~]# kubectl get po NAME READY STAT 阅读全文
posted @ 2021-02-06 23:31
等等马上就好
阅读(283)
评论(0)
推荐(0)
摘要:
# Deployment 暂停功能 [root@k8s-master01 ~]# kubectl rollout pause deployment nginx deployment.apps/nginx paused [root@k8s-master01 ~]# kubectl set image 阅读全文
posted @ 2021-02-06 23:26
等等马上就好
阅读(2008)
评论(0)
推荐(0)
摘要:
1.查看当前镜像 [root@k8s-master01 ~]# kubectl get deploy nginx -oyaml|grep image kubernetes.io/change-cause: kubectl set image deploy nginx nginx=nginx:1.15 阅读全文
posted @ 2021-02-06 23:23
等等马上就好
阅读(124)
评论(0)
推荐(0)
摘要:
1.查看镜像 [root@k8s-master01 ~]# kubectl get deploy -oyaml |grep image f:image: {} f:imagePullPolicy: {} - image: nginx:1.15.2 imagePullPolicy: IfNotPres 阅读全文
posted @ 2021-02-06 16:53
等等马上就好
阅读(212)
评论(0)
推荐(0)
摘要:
1.Deployment概念 用于部署无状态的服务,这个最常用的控制器。一般用于管理维护企业内部无状态的微服务,比如configserver、zuul、springboot。他可以管理多个副本的Pod实现无缝迁移、自动扩容缩容、自动灾难恢复、一键回滚等功能。 2.创建一个Deployment 1.命 阅读全文
posted @ 2021-02-06 16:21
等等马上就好
阅读(222)
评论(0)
推荐(0)
摘要:
1.yaml文件 [root@k8s-master01 ~]# cat -n pod.yaml # 新增第20行 1 apiVersion: v1 # 必选,API的版本号 2 kind: Pod # 必选,类型Pod 3 metadata: # 必选,元数据 4 name: nginx # 必选, 阅读全文
posted @ 2021-02-06 15:47
等等马上就好
阅读(916)
评论(0)
推荐(0)
摘要:
链接: https://zhuanlan.zhihu.com/p/113000105 可能是因为flannel没起来 coredns也不会起来的 阅读全文
posted @ 2021-02-06 14:28
等等马上就好
阅读(509)
评论(0)
推荐(0)
摘要:
问题如图 [root@k8s-master01 ~]# kubectl get po -n kube-system NAME READY STATUS RESTARTS AGE calico-kube-controllers-5f6d4b864b-5wxb9 1/1 Running 18 6d23h 阅读全文
posted @ 2021-02-06 13:37
等等马上就好
阅读(1155)
评论(0)
推荐(0)