Skip to content

Commit

Permalink
docs: use label match in SERVICECIDR command for KinD
Browse files Browse the repository at this point in the history
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-<CLUSTERNAME>-control-plane`.  The kube-system control-plane uses the label `component=kube-apiserver` on the apiserver pods.

Fixes #3182

Signed-off-by: Tim Swanson <[email protected]>
  • Loading branch information
tiswanso authored and mtardy committed Dec 12, 2024
1 parent 4ceaaea commit f966024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/en/docs/getting-started/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 >}}
Expand Down

0 comments on commit f966024

Please sign in to comment.