摘要: [root@k8s-master1 hpa]# kubectl create delpoyment nginx --image=nginx Error: unknown flag: --image See 'kubectl create --help' for usage. 提示是未知标签,这个定位 阅读全文
posted @ 2020-07-02 17:00 caonw 阅读(2212) 评论(0) 推荐(0) 编辑
摘要: 1.获取节点列表 [root@k8s-master1 ~]# kubectl get node -o wide NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIM 阅读全文
posted @ 2020-07-02 14:28 caonw 阅读(3373) 评论(1) 推荐(0) 编辑
摘要: 报错: FATAL ERROR: please install the following Perl modules before executing /usr/bin/mysql_install_db: 解决办法:安装autoconf依赖 yum install autoconf -y 阅读全文
posted @ 2020-07-02 11:11 caonw 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 容器的分类 1. Infrastructure Container:基础容器 维护整个Pod网络空间 2. InitContainers:初始化容器 先于业务容器开始执行 3.Containers:业务容器 并行启动 ######################################### 阅读全文
posted @ 2020-07-02 10:22 caonw 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1.用create命令生成,适合部署新项目 kubectl create deployment web --image=nginx:1.14 -o yaml --dry-run> my-deploy.yaml 2.用户get命令导出,适合部署类似项目 kubectl get my-deploy/ng 阅读全文
posted @ 2020-07-02 10:14 caonw 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 1、创建 kubectl run nginx --replicas=3 --image=nginx:1.14 --port=80 kubectl get deploy,pods 2、发布 kubectl expose deployment nginx --port=80 --type=NodePor 阅读全文
posted @ 2020-07-02 10:03 caonw 阅读(307) 评论(0) 推荐(0) 编辑