Skip to content
Menu
(◍ ´꒳` ◍)

  • Blog
  • Front Page
(◍ ´꒳` ◍)

承认平庸-k8s基础部署问题排错-02

By erhu on 2023年3月6日2023年4月17日

二个服务器是一核2g的配置不够

紧急重新购买二个,计费的,腾讯云 销毁时间下午四点40

好的

出现新的错误-docker版本调高了,部署不了怎么办

This issue can be solved by installing conntract
sudo apt-get install -y conntrack socat

此方法没用

Kubeadm init is failing with the latest version of docker 20.10.1 · Issue #2369 · kubernetes/kubeadm (github.com)

Docker 版本降级为经过验证的版本 20.0

[WARNING SystemVerification]: this Docker version is not on the list of validated versions: 23.0.1. Latest validated version: 20.10
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR FileContent–proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1
[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=...
To see the stack trace of this error execute with –v=5 or higher

降级就

sudo yum downgrade docker-ce-20.10.* docker-ce-cli-20.10.* containerd.io

docker version

出错了

Transaction check error:
file /usr/libexec/docker/cli-plugins/docker-buildx from install of docker-ce-cli-1:20.10.23-3.el7.x86_64 conflicts with file from package docker-buildx-plugin-0:0.10.2-1.el7.x86_64

Error Summary

删除冲突的“docker-buildx-plugin

sudo yum remove docker-buildx-plugin

sudo yum downgrade docker-ce-20.10.* docker-ce-cli-20.10.* containerd.io

emoved:
containerd.io.x86_64 0:1.6.18-3.1.el7

Installed:
containerd.io.x86_64 0:1.6.16-3.1.el7

Complete!
[root@VM-0-2-centos ~]#

出现新问题了

docker降级失败

为什么呢?原因是估计环境有啥问题,直接卸载全部docker删除相关文件

然后yum-config-manager –add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

后yum install docker-ce 20.10

安装验证版本

新错误

[preflight] Running pre-flight checks
[WARNING SystemVerification]: this Docker version is not on the list of validated versions: 23.0.1. Latest validated version: 20.10
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR FileContent–proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1
[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=...
To see the stack trace of this error execute with –v=5 or higher

sudo sysctl net.bridge.bridge-nf-call-iptables=1

kubeadm reset 重置

搞定

Your Kubernetes control-plane has initialized successfully!

To start using your cluster, you need to run the following as a regular user:

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

Alternatively, if you are the root user, you can run:

export KUBECONFIG=/etc/kubernetes/admin.conf

You should now deploy a pod network to the cluster.
Run “kubectl apply -f [podnetwork].yaml” with one of the options listed at:
https://kubernetes.io/docs/concepts/cluster-administration/addons/

Then you can join any number of worker nodes by running the following on each as root:

kubeadm join 10.206.0.2:6443 –token soyl0r.9092x5518g5decit \
–discovery-token-ca-cert-hash sha256:1c2b8dc1a5c552072511bb0e9a5c000f320c9696fcb739463bdb356479d7e630

Category: k8s

文章导航

承认平庸-k8s基础部署-01
承认平庸-打印机维修01

Related Posts

承认平庸-k8s面试题

3月 5, 2023
Read More

Kubernetes-easydoc01

4月 17, 2023
Read More

k8s-k8s-up&Running16

4月 17, 2023
Read More

发表回复 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注

近期文章

  • 实施002
  • 实施SQL001
  • 泛微oa001-字段
  • 硬件前端-海康威视摄像头
  • 使用Docker搭建Weblogic服务001

近期评论

    归档

    • 2023年10月
    • 2023年9月
    • 2023年8月
    • 2023年5月
    • 2023年4月
    • 2023年3月
    • 2021年11月
    • 2021年10月
    • 2021年9月
    • 2021年8月
    • 2021年5月

    分类

    • C
    • docker
    • iptable
    • ISIS
    • java
    • k8s
    • liunx
    • OpenCV py
    • ospf
    • solr
    • zabbix
    • 劳动法
    • 周杰伦
    • 格林法则
    • 等保
    • 鸿蒙

    其他操作

    • 登录
    • 条目feed
    • 评论feed
    • WordPress.org
    ©2025 (◍ ´꒳` ◍) | WordPress Theme by Superb WordPress Themes