自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 解决:k8s pod状态:ContainerCreating;failed: open /run/flannel/subnet.env: no such file or directory

使用YAML创建Pod时,Pod状态一直是 ContainerCreating。failed: open /run/flannel/subnet.env: no such file or directory。解决—手动添加文件,使用flannel默认网络 CIDR 解决。在相应node节点上查看日志。技术性分享,转载请注明出处!但是,如果我们重启服务器,欢迎互相交流,共同进步!

2023-04-04 18:16:51 1087 3

原创 解决:Unable to connect to the server: x509: certificate signed by unknown authority (possibly because

运行kubeadm reset清除配置后,对集群初始化也是成功的。然而当运行 kubectl get nodes 时又报错..原因:执行kubeadm reset命令后没有删除创建的.kube目录,重新创建集群就会出现这个问题!

2023-04-04 17:51:09 3934 1

原创 k8s node NotReady:NetworkReady=false reason:NetworkPluginNotReady;cni plugin not initialized

kubectl获取node节点,集群状态检测时,master、node一直处于NotReady状态。NetworkReady=false reason:NetworkPluginNotReady;cni plugin not initialized

2023-04-03 18:26:41 2388

原创 已解决—The connection to the server localhost:8080 was refused - did you specify the right host or port

使用kubernetes-kubectl 命令报错:The connection to the server localhost:8080 was refused - did you specify the right host or port? 原因:kubectl命令需要使用kubernetes-admin来运行,需要admin.conf文件;而admin.conf 文件是通过 “kubeadmin init” 命令在 /etc/kubernetes 中创建的,从节点没有该配置文件;因此需要将admin

2023-03-20 18:41:11 8308 3

原创 安装ansible教程—超简单

config file = /etc/ansible/ansible.cfg #主配置文件在这个目录。[root@master-10-0-1-41 ~]# ssh-copy-id 10.0.1.108 (被管理节点的IP)#inventory = /etc/ansible/hosts #这个参数代表主机组。# 对/etc/ansible/hosts文件进行配置,即对主机进行一个分组。# 在最后面添加一个group1,将被管理主机的IP添加进去。欢迎互相交流,共同进步!

2023-03-18 20:03:09 213

原创 解决:Error response from daemon: Get https://asia-east1-docker.pkg.dev/v2/k8s-artifacts-prod/images/..

在拉取k8s镜像时报错:Error response from daemon: Get https://asia-east1-docker.pkg.dev/v2/k8s-artifacts-prod/images/kube-apiserver/manifests/v1.26.2: dial tcp 64.233.188.82:443: i/o timeout 原因:registry.k8s.io、k8s.gcr.io、asia-east1-docker.pkg.dev这些网址是由Google团队提供的区域化

2023-03-04 20:28:42 2433 1

原创 docker启动报错解决方案:Failed to start Docker Application Container Engine

重启docker时报错:Failed to start Docker Application Container Engine;此时我们可以通过dockerd命令查看docker后台进程,报错信息invalid mirror: path, query, or fragment at end of the URI "https://cr.console.aliyun.com/cn/instances/mirrors"原来是因为修改了/etc/docker/daemon.json文件,输入了错误的镜像仓

2023-03-03 14:00:08 1962

原创 挂载卷报错:解决mount: /data: wrong fs type, bad option, bad superblock on /dev/xvdf1, missing codepage

挂载EBS卷的时候报错:mount: /data: wrong fs type, bad option, bad superblock on /dev/xvdf1, missing codepage or helper program, or other error.

2023-02-08 10:21:50 2033

原创 received unexpected HTTP status: 500 Internal Server Error:docker push 报错解决

将镜像推送到私有仓库的时候,报错“received unexpected HTTP status: 500 Internal Server Error”;是由于selinux未关闭导致docker出现异常情况。insecure-registries:不安全的仓库地址,如果没有配置https证书,那么需要将私有仓库的地址配置到这里。修改配置文件,添加私有仓库地址(可以配置多个)

2023-02-04 17:11:49 9236 2

原创 使用Docker搭建云硬盘、私有仓库

为了解决需要花大量的时间去处理环境迁移的问题,我们可以搭建一个云容器。云容器包含了完整的运行时环境,除了应用程序本身之外,这个程序所需的全部依赖、类库等,其他二进制文件、配置文件等,都统一被打包到一个镜像中。

2023-02-04 16:37:48 481 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除