# kubectl cluster-info --context kind-kind Kubernetes control plane is running at https://127.0.0.1:42127 CoreDNS is running at https://127.0.0.1:42127/api/v1/namespaces/kube-system/services/kube-dns:dns/pro
1 2 3 4 5
# kubectl get nodes --context kind-kind NAME STATUS ROLES AGE VERSION kind-control-plane NotReady control-plane 69s v1.27.3 kind-worker NotReady <none> 38s v1.27.3 kind-worker2 NotReady <none> 37s v1.27.3
本地安装 Cilium CLI
1 2 3 4 5 6 7
CILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/main/stable.txt) CLI_ARCH=amd64 if [ "$(uname -m)" = "aarch64" ]; then CLI_ARCH=arm64; fi curl -L --fail --remote-name-all https://github.com/cilium/cilium-cli/releases/download/${CILIUM_CLI_VERSION}/cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum} sha256sum --check cilium-linux-${CLI_ARCH}.tar.gz.sha256sum sudo tar xzvfC cilium-linux-${CLI_ARCH}.tar.gz /usr/local/bin rm cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}
确认 Cilium CLI 安装成功:
1 2 3 4
cilium version --client cilium-cli: v0.15.18 compiled with go1.21.5 on linux/amd64 cilium image (default): v1.14.4 cilium image (stable): v1.14.5
# kubectl get nodes --context=kind-kind NAME STATUS ROLES AGE VERSION kind-control-plane Ready control-plane 48m v1.27.3 kind-worker Ready <none> 47m v1.27.3 kind-worker2 Ready <none> 47m v1.27.3