摘要: { "registry-mirrors": [ "https://bxsfpjcb.mirror.aliyuncs.com" ], "max-concurrent-downloads": 10, "log-driver": "json-file", "log-level": "warn", "log 阅读全文
posted @ 2022-11-25 21:13 cloud-青 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 需求描述:利用nfs实现PV动态供给 前提:部署好nfs服务器 这里地址是 192.168.1.35 path: /ifs/k8s NFS:是一个主流的文件共享服务器。 # yum install nfs-utils # vi /etc/exports /ifs/kubernetes *(rw,no 阅读全文
posted @ 2022-09-01 16:16 cloud-青 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 案例:确保Pod分配到具有SSD硬盘的节点上 第一步:给节点添加标签 格式:kubectl label nodes <node-name> <label-key>=<label-value> 例如:kubectl label nodes k8s-node1 disktype=ssd 验证:kubec 阅读全文
posted @ 2022-08-29 12:27 cloud-青 阅读(109) 评论(0) 推荐(1) 编辑
摘要: 案例:为指定用户授权访问不同命名空间权限,例如公司新入职一个小弟,希望让他先熟悉K8s集群,为了 安全性,先不能给他太大权限,因此先给他授权访问default命名空间od,读取权限。 实施大致步骤: 1. 用K8S CA签发客户端证书 2. 生成kubeconfig授权文件 3. 创建RBAC权限策 阅读全文
posted @ 2022-08-28 17:39 cloud-青 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 升级管理节点: 1、查找最新版本号 yum list --showduplicates kubeadm 2、升级kubeadm yum install -y kubeadm-1.23.0-0 3、驱逐node上的pod,且不可调度 kubectl drain master.lab.example.c 阅读全文
posted @ 2022-08-27 00:31 cloud-青 阅读(752) 评论(0) 推荐(0) 编辑
摘要: 1. 查看老版本系统内核 2. 升级内核 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch. 阅读全文
posted @ 2022-08-12 11:33 cloud-青 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 问题: Error from server (InternalError): error when creating "ingress-rules-demo1.yaml": Internal error occurred: failed calling webhook "validate.nginx 阅读全文
posted @ 2022-04-04 21:36 cloud-青 阅读(510) 评论(0) 推荐(0) 编辑
摘要: The connection to the server 192.168.1.30:6443 was refused - did you specify the right host or port? mkdir -p $HOME/.kube cp -i /etc/kubernetes/admin. 阅读全文
posted @ 2022-04-03 22:35 cloud-青 阅读(116) 评论(0) 推荐(1) 编辑
摘要: vim ~/.bashrc source <(kubectl completion bash) 阅读全文
posted @ 2022-03-20 23:43 cloud-青 阅读(67) 评论(0) 推荐(0) 编辑
摘要: kubeadm join 超时报错 error execution phase kubelet-start: error uploading crisocket: timed out waiting for the condition 问题分析: 可能是之前加入过k8s 解决方法: kubeadm 阅读全文
posted @ 2022-03-20 22:54 cloud-青 阅读(2426) 评论(0) 推荐(0) 编辑