一杯咖啡半杯糖
让优秀成为一种习惯!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[K8S]Forbidden: pod updates may not change fields other than
执行apply后报错,因为执行中的pod不能修改NodeName,因为默认已经给它指定了一个nodeName。在执行kubectl apply -f pod-nginx.yaml的时候报错。已经运行一个pod,想添加nodeName指定特别的节点去执行。先把之前的pod删掉后,再重新apply即可。原创 2024-09-12 19:45:00 · 745 阅读 · 0 评论 -
[K8S]The connection to the server 192.168.0.2:6443 was refused
The connection to the server 192.168.0.2:6443 was refused - did you specify the right host or port?原创 2023-05-26 16:10:10 · 776 阅读 · 0 评论 -
[K8S]error execution phase preflight: couldn‘t validate the identity of the API Server
error execution phase preflight: couldn't validate the identity of the API Server: could not find a JWS signature in the cluster-info ConfigMap for token ID "uyylx2"To see the stack trace of this error execute with --v=5 or higher原创 2023-03-20 21:45:00 · 4115 阅读 · 0 评论 -
windows安装minikube
由于学习的需要,需要在windows上搭建一套可以使用的k8s学习用,最后选择了minikube这个安装k8s,本博客介绍了minikube的安装步骤,详细命令以及截图原创 2022-12-09 11:25:42 · 3417 阅读 · 0 评论 -
[ERROR Swap]: running with swap on is not supported. Please disable swap
sed -ri 's/.*swap.*/#&/' /etc/fstab # 永久。# 关闭swap,两个命令都执行下即可解决问题。安装kubeadm的时候出现这个问题。需要关闭linux 的swap。swapoff -a # 临时。原创 2022-09-28 15:27:55 · 1465 阅读 · 0 评论 -
基于kubeadm搭建K8s
k8s搭建原创 2022-06-03 15:03:13 · 407 阅读 · 0 评论 -
解决k8s安装flannel无法拉取镜像(ImagePullBackOff)
在安装k8s的时候,最后需要安装flannel网络插件才可以使用,在下载的时候因为是国外的地址导致无法安装,报错如下: 那如何解决呢,首先先下载下来kube-flannel.yml文件,如果没有,自己创建一个,修改quay.io/coreos/flannel:v0.15.1为lizhenliang/flannel:v0.11.0-amd64,下载不下来或者不知道怎么修改的人直接复制下面的,文件名为kube-flannel.yml,修改后里面的内容如下进到linux中执行 kubectl delete -f原创 2022-06-03 14:00:08 · 7105 阅读 · 2 评论 -
[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2
[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2原创 2022-06-02 09:31:58 · 592 阅读 · 0 评论