**
**
kubectl suddenly failed to obtain resources in the environment just deployed a few days ago. Check the apiserver log, as shown in the above results
then the controller manager component also reports an error
E0916 08:35:55.495444 1 leaderelection.go:306] error retrieving resource lock kube-system/kube-controller-manager: Get https://192.168.1.119:8443/api/v1/namespaces/kube-system/endpoints/kube-controller-manager?timeout=10s: EOF
This environment adopts three master deployments. Then I see that VIP drifts to the master node. Both haproxy and keepalived here are container deployments. Then I restart haproxy first
docker restart xxx
iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8443 -j DNAT
--to-destination 172.18.0.6:8443 ! -i docker0 iptables: No chain/target/match by that name
Haproxy doesn’t get up, so I guess there is something wrong with the iptables rules of the master 3 host. Then I restart it. Kept
at this time, the VIP drifts to master 1. At this time, kubectl can obtain resources
Finally, I restarted the docker component of Master 3
systemctl restatrt docker
Then manually drift the VIP to master3, and it is normal at this time
Read More:
- K8S error validating data: ValidationError(Deployment.spec): missing required field selector
- [Solved] Neo4j Error: Error occurred during initialization of VM Incompatible minimum and maximum heap sizes spec
- ORA-08103: object no longer exists [How to Solve]
- [Solved] Doris Error: Label Already Exists
- error: remote origin already exists. [How to Solve]
- error: remote origin already exists [How to Solve]
- error: error validating “ingress-tomcat6.yaml“: error validating data: [ValidationError(Ingress.spec
- [Solved] Error response from daemon: OCI runtime create failed: container with id exists: xxzxxxxxxxx
- Error: EEXIST file already exists open [How to Solve]
- [Solved] Milvus Error: [ERROR][SERVER][TakeToEUse milvus.has_collection to verify whether the collection exists
- [Solved] Fluent filesysterexception: exists failed, path =’d: \ as’. Plugins’ (OS error: incorrect file name, directory name or volume slogan)
- [Solved] Error:E0415 no suitable constructor exists to convert from “int“ to “Rational“
- Readiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to
- [Solved] Docker Start Error: iptables failed: iptables –wait -t nat -A DOCKER -p tcp -d 0/0 –dport 10241
- [Solved] Docker Error: Error response from daemon: driver failed programming external connectivity on endpoint
- [Solved] Docker Error: driver failed programming external connectivity on endpoint
- Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen is reported when docker port mapping or starting the container
- [Solved] Docker Start nginx error: driver failed programming external connectivity on endpoint nginx
- [Solved] Kubeadm Reset error: etcdserver: re-configuration failed due to not enough started members
- [Solved] kubectl top pod error: error: Metrics API not available