Cluster
Kubernetes Base Environment Requirements
· β˜• 4 min read
1. Base Packages Kubernetes version β‰₯ 1.18 socat Required conntrack Required ebtables Optional, but recommended ipset Optional, but recommended ipvsadm Optional, but recommended 1 apt-get -y install socat conntrack ebtables ipset ipvsadm 2. Port Requirements 2.1 Base Node Services Service Protocol Action Start Port End Port Comment ssh TCP allow 22 22 Node remote management docker TCP allow 2375 2376 Docker remote communication etcd TCP allow 2379 2380 etcd cluster communication 2.

How to Repair a Kubernetes Master Node After Reinstalling the OS
· β˜• 2 min read
Recently I ran into this twice: a host had to be reinstalled because of a failure. In one case only a single Etcd node was left, and the whole cluster stayed down for half an hour before it recovered. This post mainly records the process of initializing a fresh Ubuntu

Elastic Scaling of Cluster Nodes
· β˜• 5 min read
Elastic scaling mainly has three dimensions: HPA, which automatically scales the number of Pods based on utilization VPA, which automatically sets a Pod’s Request and Limit based on historical data CA, which automatically scales the number of Nodes based on usage This post focuses on the node scaling part. 1. The autoscaler Autoscaling Component autoscaler is a project maintained by the Kubernetes community.

Kubernetes Cluster Troubleshooting
· β˜• 6 min read
FailedCreatePodSandBox Error Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:402: getting the final child's pid from pipe caused: EOF: unknown Resolution Clear the cache 1 echo 3 > /proc/sys/vm/drop_caches Cause Too much memory fragmentation calico-node Keeps Restarting increase max user Error runtime: failed to

How to Repair a Kubernetes Cluster After Changing IPs
· β˜• 3 min read
A record of repairing a cluster failure caused by an IP change. There are two clusters: one single-node (allinone) cluster, and one four-node cluster (3 masters, 1 node). 1. Update the Etcd Certificates [On every Etcd node] Back up the Etcd certificates 1 cp -R /etc/ssl/etcd/ssl /etc/ssl/etcd/ssl-bak View the domains