解决k8s Get http://127.0.0.1:10252/healthz: dial tcp 127.0.0.1:10252: connect: connection refused
摘要:安装完k8s集群之后很可能会出现一下情况: [root@master1 ~]# kubectl get cs NAME STATUS MESSAGE ERROR scheduler Unhealthy Get http://127.0.0.1:10251/healthz: dial tcp 127.
阅读全文
posted @
2020-12-26 02:57
黑白玩家
阅读(4130)
推荐(0) 编辑
k8s集群安装KubeSphere3.0
摘要:架构: 前提条件: k8s集群版本必须是1.15.x, 1.16.x, 1.17.x, or 1.18.x 必须有默认的storageclass 内存和cpu最低要求:CPU > 1 Core, Memory > 2 G 安装并设置默认storageclass略过,可以看之前的我发过的博客https
阅读全文
posted @
2020-12-13 23:47
黑白玩家
阅读(3934)
推荐(1) 编辑
k8s基于NFS部署storageclass实现pv并标记为一个默认的StorageClass
摘要:架构: 一. 搭建storageclass 1、master和node节点安装nfs服务 yum -y install nfs-utils rpcbind 2、启动nfs并设为开机自启: systemctl start nfs && systemctl enable nfs systemctl st
阅读全文
posted @
2020-12-13 23:30
黑白玩家
阅读(2476)
推荐(1) 编辑
k8s安装Prometheus+Grafana
摘要:k8s集群略过,之前有发布过k8s高可用集群博客,可以访问连接 https://www.cnblogs.com/lfl17718347843/p/13417304.html 1.克隆github项目 https://gitee.com/liugpwwwroot/k8s-prometheus-graf
阅读全文
posted @
2020-12-10 16:27
黑白玩家
阅读(6675)
推荐(1) 编辑
mysql数据库查询结果导出
摘要:1.连接数据库 mysql -h ip -u xxx -p xxxx 2.选择databases use lottery_25; 3.指定导出文件 pager cat > /tmp/1hao-1007.csv; 4.执行sql select xxxxx 1hao-1007.csv:1hao-1007
阅读全文
posted @
2020-12-09 20:43
黑白玩家
阅读(648)
推荐(0) 编辑