随笔分类 -  k8s

摘要:master节点执行: curl -k --cacert /etc/kubernetes/pki/ca.crt --cert /etc/kubernetes/pki/apiserver-kubelet-client.crt --key /etc/kubernetes/pki/apiserver-ku 阅读全文
posted @ 2022-06-25 11:09 nanaindi 阅读(21) 评论(0) 推荐(0) 编辑
摘要:dockerhub根镜像代理 官方命令:docker pull nginx:latest 代理命令:docker pull dockerproxy.com/library/nginx:latest dockerhub常规镜像代理 官方命令:docker pull stilleshan/frpc:la 阅读全文
posted @ 2022-06-23 19:15 nanaindi 阅读(64) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.cnblogs.com/bolingcavalry/archive/2021/09/09/15245354.html package main import ( "context" "flag" "fmt" apiv1 "k8s.io/api/core/v1" meta 阅读全文
posted @ 2022-03-01 20:15 nanaindi 阅读(42) 评论(0) 推荐(0) 编辑
摘要:参考: https://www.cnblogs.com/heian99/p/14496158.html curl -s https://zhangguanzhang.github.io/bash/pull.sh | bash -s -- gcr.io/distroless/static:latest 阅读全文
posted @ 2022-03-01 20:03 nanaindi 阅读(183) 评论(0) 推荐(0) 编辑
摘要:yum install kubeadm-1.17.3 kubelet-1.17.3 -y #kubeadm config images list images=( kube-apiserver:v1.17.17 kube-controller-manager:v1.17.17 kube-schedu 阅读全文
posted @ 2021-12-08 15:32 nanaindi 阅读(33) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/ibless/article/details/107899009 阅读全文
posted @ 2021-10-18 17:17 nanaindi 阅读(13) 评论(0) 推荐(0) 编辑
摘要:#kubectl config view #kubectl config delete-cluster kubernetes cp /etc/kubernetes/admin.conf $HOME/.kube/config 阅读全文
posted @ 2021-08-26 21:21 nanaindi 阅读(1233) 评论(0) 推荐(0) 编辑
摘要:// https://www.cnblogs.com/yangyuliufeng/p/13611126.html stopCH := make(chan struct{}) defer close(stopCH) sharedInformers := informers.NewSharedInfor 阅读全文
posted @ 2021-08-25 22:55 nanaindi 阅读(36) 评论(0) 推荐(0) 编辑
摘要:https://zhuanlan.zhihu.com/p/366287824 4. 存储卷监控 存储商需实现 CSI 插件的 NodeGetVolumeStats 接口,Kubelet 会调用该函数,并反映在其 metrics上: kubelet_volume_stats_capacity_byte 阅读全文
posted @ 2021-08-10 17:05 nanaindi 阅读(173) 评论(0) 推荐(0) 编辑
摘要:用kubeadm安装的k8s,日志在/var/log/messages,由于k8s的重试机制,一秒中内下发过多请求,日志全堆积,导致磁盘打爆: 排查方法: du -h --max-depth=1一层一层往下找,然后删除无用的文件 阅读全文
posted @ 2021-08-08 00:20 nanaindi 阅读(67) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/yangyuliufeng/p/14360558.html https://kubernetes.io/zh/blog/2019/03/07/raw-block-volume-%E6%94%AF%E6%8C%81%E8%BF%9B%E5%85%A5-b 阅读全文
posted @ 2021-08-04 00:51 nanaindi 阅读(17) 评论(0) 推荐(0) 编辑
摘要:/* vim /etc/docker/daemon.json { "registry-mirrors": [ "https://a8qh6yqv.mirror.aliyuncs.com", "http://hub-mirror.c.163.com" ], "exec-opts": ["native. 阅读全文
posted @ 2021-07-22 16:15 nanaindi 阅读(886) 评论(0) 推荐(0) 编辑
摘要:/* k8s部署参考: https://www.hangge.com/blog/cache/detail_2414.html https://latelee.blog.csdn.net/article/details/103774072 https://www.yuque.com/docs/shar 阅读全文
posted @ 2021-07-20 14:41 nanaindi 阅读(184) 评论(0) 推荐(0) 编辑
摘要:参考:https://cloud.tencent.com/developer/article/1703237 kubectl edit source 删掉Finalizers label 阅读全文
posted @ 2021-07-19 19:21 nanaindi 阅读(36) 评论(0) 推荐(0) 编辑
摘要:/* 参考: https://www.bbsmax.com/A/pRdB64X6dn/ https://kubernetes.io/zh/docs/concepts/storage/persistent-volumes/ 针对 PV 持久卷,Kubernetes 支持两种卷模式(volumeMode 阅读全文
posted @ 2021-07-16 18:02 nanaindi 阅读(977) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示