![](https://img-blog.csdnimg.cn/20200727121738336.jpeg?x-oss-process=image/resize,m_fixed,h_224,w_224)
Kubernetes
Kubernetes
极客点儿
但行好事,莫问前程
展开
-
《Kubernetes 排错指南-013》MySQL server through socket ‘/opt/bitnami/mysql/tmp/mysql.sock
Kubernetes 在使用 Helm 安装 bitnami/mysql 的时候出现了 Can't connect to local MySQL server through socket '/opt/bitnami/mysql/tmp/mysql.sock 报错,经过排查,原因是 MySQL 在启动后会有一个健康检查,健康检查程序负责检测 MySQL 是否启动成功,判断依据则是是否生成 mysql.sock 这个文件。原创 2023-08-21 10:48:25 · 372 阅读 · 0 评论 -
《Kubernetes 排错指南-012》Ubuntu apt-get update 报 Key is stored in legacy trusted.gpg keyring 警告解决方案
在 Ubuntu 22.04 LTS 下更新源 apt-get update 遇到了Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. 这样的警告。虽然说警告并不影响执行,但是作为有重度代码强迫症和代码洁癖的患者看着还是很难受,所以还是解决一下吧。原创 2023-04-14 17:29:38 · 4621 阅读 · 0 评论 -
《Kubernetes 排错指南-011》安装 Calico URL:https://docs.projectcalico.org/manifests/calico.yaml 报 404 错误
在 Kubernetes 玩之后还需要安装网络插件,最常用的网络插件是 Calico,安装命令很简单,通过。但是不知道从什么时候开始,作者把 Calico 的 URL 删掉了的,网页 404,包括整个资源都失效了。原创 2023-04-14 10:25:56 · 1320 阅读 · 0 评论 -
《Kubernetes 排错指南-010》Error parsing HTTP 413 response body: 413 Request Entity Too Large
Error parsing HTTP 413 response body: 413 Request Entity Too Large原创 2022-08-26 17:14:37 · 1595 阅读 · 0 评论 -
《Kubernetes 排错指南-009》Worker node 在 kubeadm join 时卡在 Running pre-flight checks 一直不动
Worker node 在 kubeadm join 时卡在 Running pre-flight checks 一直不动原创 2022-08-26 16:56:27 · 1832 阅读 · 0 评论 -
《Kubernetes 排错指南-007》Error in configuration: unable to read client-cert* unable to read client-key*
系统环境:Ubuntu 20.04 LTSDocker 20.10.8Kubernetes 1.22.1Node: node执行命令:$ kubectl version报错如下:Error in configuration: * unable to read client-cert /var/lib/kubelet/pki/kubelet-client-current.pem for default-auth due to open /var/lib/kubelet/pki/kube原创 2021-09-10 14:12:59 · 1908 阅读 · 0 评论 -
《Kubernetes 排错指南-006》error execution phase couldn‘t initialize a Kubernetes cluster
系统环境:VMware ESXi 7.0.2Ubuntu 20.04 LTSDocker 20.10.8Kubernetes 1.22.1Node: master执行命令:$ kubeadm init报错如下:Unfortunately, an error has occurred: timed out waiting for the conditionThis error is likely caused by: - The kubelet is not running原创 2021-09-10 14:11:41 · 9923 阅读 · 4 评论 -
《Kubernetes 排错指南-004》[ERROR Swap]: running with swap on is not supported. Please disable swap
系统环境:Ubuntu 20.04 LTSDocker 20.10.8Kubernetes 1.22.1Node: master执行命令:$ kubeadm init报错如下:[ERROR Swap]: running with swap on is not supported. Please disable swap报错说明:Swap 分区在开启状态下无法进行 kubeadm init。解决方案:$ swapoff -a$ free -m临时关闭 Swap。...原创 2021-09-10 14:09:56 · 967 阅读 · 0 评论 -
《Kubernetes 排错指南-008》The connection to the server localhost:8080 was refused
Ubuntu 20.04 LTS 在 Node 节点上成功添加到集群后,会出现如下提示:This node has joined the cluster:* Certificate signing request was sent to apiserver and a response was received.* The Kubelet was informed of the new secure connection details.Run 'kubectl get nodes' on the原创 2021-07-06 10:32:44 · 1989 阅读 · 0 评论 -
《Kubernetes 排错指南-003》The signatures couldn‘t be verified because the public key is not available
Ubuntu 20.04 LTS 上安装 k8s 三驾马车:kubeadm、kubectl、kubelet 的时候出现如下报错:The following signatures couldn't be verified because the public key is not available这个报错是因为公钥不可用,无法验证k8s签名。解决方案:curl https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg | apt-key a原创 2021-07-06 10:18:13 · 255 阅读 · 0 评论 -
《Kubernetes 排错指南-002》No apt package “kubeadm“, but there is a snap with that name
Ubuntu 20.04 LTS 上安装 k8s 三驾马车:kubeadm、kubectl、kubelet 的时候出现如下报错:root@k8s-master-01:~# apt-get install kubeadm kubectl kubelet -yReading package lists... DoneBuilding dependency tree Reading state information... DoneNo apt package "kubeadm", but原创 2021-07-06 10:14:27 · 4272 阅读 · 0 评论 -
《Kubernetes 排错指南-005》[ERROR ImagePull]: failed to pull image coredns:v1.8.4
在树莓派 Ubuntu 20.04 LTS 上初始化 k8s,在执行 kubeadm init 的时候,出现如下报错:[init] Using Kubernetes version: v1.21.2[preflight] Running pre-flight checks [WARNING SystemVerification]: missing optional cgroups: hugetlb[preflight] Pulling images required for setting up a原创 2021-07-05 13:15:32 · 2410 阅读 · 0 评论 -
《Kubernetes 排错指南-001》[ERROR SystemVerification]: missing required cgroups: memory
在树莓派 Ubuntu 20.04 LTS 上初始化 k8s,在执行 kubeadm init的时候,出现如下报错:[init] Using Kubernetes version: v1.21.2[preflight] Running pre-flight checks[preflight] The system verification failed. Printing the output from the verification:. . . . . . [WARNING SystemV原创 2021-07-05 13:01:02 · 2102 阅读 · 0 评论 -
kubeadm init 参数详解
--apiserver-advertise-address string 设置 apiserver 绑定的 IP. --apiserver-bind-port int32 设置apiserver 监听的端口. (默认 6443) --apiserver-cert-extra-sans strings api证书中指定额外的Subject Alternative Names (SANs) 可以是IP 也可以是DNS名称。 证书是和SAN绑定的。 ...原创 2021-07-05 10:11:33 · 7322 阅读 · 0 评论