摘要: kubeadm部署k8s高可用集群 一. 环境准备及集群规划 准备四台机器(均为2C1.5G配置): 192.168.10.11 master1 192.168.10.12 master2 192.168.10.13 master3 192.168.10.14 node 3台master共用一个vi 阅读全文
posted @ 2020-10-30 19:02 梦里花落知多少sl 阅读(653) 评论(1) 推荐(1) 编辑
摘要: kubectl命令使用大全 中文: http://docs.kubernetes.org.cn/683.html [root@master-test ~]# kubectl --help kubectl controls the Kubernetes cluster manager. Find mo 阅读全文
posted @ 2020-10-29 19:12 梦里花落知多少sl 阅读(244) 评论(0) 推荐(3) 编辑
摘要: Shell脚本实现 Kubernetes单集群二进制部署 搭建Kubernetes集群环境有以下三种方式: 1. Minikube安装方式Minikube是一个工具,可以在本地快速运行一个单点的Kubernetes,尝试Kubernetes或日常开发的用户使用。但是这种方式仅可用于学习和测试部署,不 阅读全文
posted @ 2020-10-28 22:35 梦里花落知多少sl 阅读(991) 评论(0) 推荐(2) 编辑
摘要: (or type Control-D to continue): 很多小伙伴学习使用Linux时可能经常遇到这个问题 (大部分原因是磁盘挂载等问题) 如下图: 具体解决方法 1、直接输入root用户的密码进入 2、# cat /etc/fstab 发现文件中有突然增多的一行 3、# sed -i ' 阅读全文
posted @ 2020-10-28 20:47 梦里花落知多少sl 阅读(1362) 评论(0) 推荐(0) 编辑
摘要: EXPECT交互式批量上传公钥 # vim key.sh #/bin/bash Public_Key() { [ ! -f /usr/bin/expect ] && yum install expect -y &>/dev/null #判断expect是否安装,没有则安装expect(这个挺好用的) 阅读全文
posted @ 2020-10-28 10:14 梦里花落知多少sl 阅读(211) 评论(0) 推荐(1) 编辑
摘要: 错误现象: Error response from daemon: conflict: unable to delete a2f2e369e78e (cannot be forced) - image has dependent child images 解决方法: 语法:docker rmi [O 阅读全文
posted @ 2020-10-23 11:10 梦里花落知多少sl 阅读(2409) 评论(0) 推荐(0) 编辑
摘要: 报错: WARNING: IPv4 forwarding is disabled. Networking will not work. 解决方式: 第一步:在宿主机上执行echo "net.ipv4.ip_forward=1" >>/usr/lib/sysctl.d/00-system.conf 第 阅读全文
posted @ 2020-10-22 21:56 梦里花落知多少sl 阅读(613) 评论(0) 推荐(0) 编辑
摘要: KVM虚拟化管理平台WebVirtMgr部署及使用 需求: 公司机房有一台2U的服务器(64G内存,32核),由于近期新增业务比较多,测试机也要新增,服务器资源十分有限。所以打算在这台2U服务器上部署kvm虚拟化,虚出多台VM出来,以应对新的测试需求。 方案:当KVM宿主机越来越多,需要对宿主机的状 阅读全文
posted @ 2020-10-22 20:26 梦里花落知多少sl 阅读(1591) 评论(0) 推荐(0) 编辑
摘要: 问题原因:安装docker之前有安装cockpit-docker服务 解决方法:卸载docker-ce [root@localhost ~]# yum list installed | grep docker docker-ce.x86_64 18.06.1.ce-3.el7 @docker-ce- 阅读全文
posted @ 2020-10-20 19:41 梦里花落知多少sl 阅读(1915) 评论(0) 推荐(0) 编辑