- 博客(12)
- 收藏
- 关注
原创 k8s v1.17.4-HA搭建keepalived+haproxy
master 192.168.5.40 192.168.5.41 192.168.5.44 vip 192.168.5.44 系统版本:centos7.6 #建议使用7.6以后的版本,否则kubelet有可能起不来的 安装docker 1、卸载旧版本(如果安装过旧版本的话) yum remove docker docker-common docker-selinux docker-en...
2020-03-24 13:21:14
567
原创 解决crictl不能给镜像打tag的问题
crictl 没有tag选项,只能用ctr命令打tag查看ctr的namespace注意,这和k8s的namespace不是同一概念。网上的资料显示一般使用的命令行是**
2024-07-11 13:27:43
1783
1
原创 rancher安装完成后安装kubectl命令
默认的rancher集群的各个node上,是没有kubectl命令的 个人习惯使用命令行,但kubectl需要自己配置一下 kubectl在k8s官网上有安装方法:https://kubernetes.io/docs/tasks/tools/install-kubectl/ 注:在国内不管使用二进制还是yum安装都会有问题,我失败了两次,经常下载一半就报错,我这里方法是复制路径 https://storage.googleapis.com/kubernetes-release/release/v1.18.
2020-08-13 15:01:06
2419
原创 k8s 集群使用calico网络报错( 0/3 nodes are available)
calico-kube-controllers 一直在创建或者pending状态 0/3 nodes are available: 1 node(s) had taints that the pod didn’t tolerate。。。。。。 起初以为是污点的问题,结果强制消除master节点上的污点不起作用 解决办法: 修改/etc/sysconfig/kubelet配置文件,添加–max-po...
2020-03-25 14:50:28
8385
原创 etcd快照(cka考试用会有这个题)
CKA考试中会有一题是关于etcd快照的‘。 因为我的高可用集群是用kubeadm安装的,内部etcd, 因为etcd快照备份需要证书的,我不知道证书在哪里怎么找呢? 查找一下使用ps查找一下etcd相关信息,自行过滤出etcd-cafile、etcd-certfile、etcd-keyfile [root@master01 ~]# ps -ef | grep etcd root 2049...
2020-03-25 14:40:33
758
原创 k8s v1.16.2安装metrics-server v0.3.6
这个地址 https://github.com/kubernetes-sigs/metrics-server/tree/master/deploy/1.8%2B for file in auth-delegator.yaml auth-reader.yaml metrics-apiservice.yaml metrics-server-deployment.yaml metrics-serv...
2019-12-23 18:39:00
1503
原创 zabbix自动发现主机后server无法运行
自动发现主机后无法运行server 查看日志 tail -f zabbix_server.log [file:dbconfig.c,line:94] __zbx_mem_realloc(): out of memory (requested 16 bytes) [file:dbconfig.c,line:94] __zbx_mem_realloc(): please increase CacheS...
2019-12-02 13:35:03
833
原创 k8s 使用cephfs做持久化存储并实现动态卷
先说说为何我要选择cephfs做持久化吧。。。。。看图。。。标红的是对比,最终用哪个看个人喜好吧 抽时间我再补充。。。。。。。。。
2019-11-30 14:49:19
811
1
原创 k8s部署fluedtd 报错无法读取日志
2019-11-28 00:53:54 +0000 [warn]: [fluentd-containers.log] /var/log/containers/es-cluster-2_logging_elasticsearch-aac85521845973fed5f6d07ac46a204214edeb9e2d21c0ea8ed6fda726960b5a.log unreadable. It is...
2019-11-30 14:38:39
2211
翻译 failed to identify the read-write layer ID for container
The following error marked log entries can be found in the ucp-kublet container logs. ucp-kubelet.log: Failed to create existing container: /docker/: failed to identify the read-write layer ID for con...
2019-11-30 14:30:56
1684
原创 k8s无法删除namespace 提示 Terminating
使用正常删除提示 Terminating 举例: 以dev的namespace为例 1、kubectl get ns dev -o json > dev.json 2、删除dev.json的中的删除文件中spec.finalizers字段 注:要删掉中括号中的所有哦, 3、然后执行: curl -k -H “Content-Type: application/json” -X PUT --...
2019-03-04 17:50:26
8072
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅