From f966024a50cfa29ac9b4301ad3c8047bbba3fd3d Mon Sep 17 00:00:00 2001 From: Tim Swanson Date: Wed, 4 Dec 2024 12:10:45 -0500 Subject: [PATCH] docs: use label match in SERVICECIDR command for KinD Use `component=kube-apiserver` match in doc command for KinD clusters - Named KinD clusters will have kube-apiserver pods with the cluster name included--the format is `kube-apiserver--control-plane`. The kube-system control-plane uses the label `component=kube-apiserver` on the apiserver pods. Fixes #3182 Signed-off-by: Tim Swanson --- docs/content/en/docs/getting-started/network.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/en/docs/getting-started/network.md b/docs/content/en/docs/getting-started/network.md index a5325800d2e..ca8d45d632a 100644 --- a/docs/content/en/docs/getting-started/network.md +++ b/docs/content/en/docs/getting-started/network.md @@ -31,7 +31,7 @@ export SERVICECIDR=$(gcloud container clusters describe ${NAME} --zone ${ZONE} | {{< /tab >}} {{< tab Kind >}} -export SERVICECIDR=$(kubectl describe pod -n kube-system kube-apiserver-kind-control-plane | awk -F= '/--service-cluster-ip-range/ {print $2; }') +export SERVICECIDR=$(kubectl describe pod -n kube-system -l component=kube-apiserver | awk -F= '/--service-cluster-ip-range/ {print $2; }') {{< /tab >}} {{< tab EKS >}}