From 2c6754b0c3dd428fc85305b789ec061e9f8c0a16 Mon Sep 17 00:00:00 2001 From: Predrag Rogic Date: Sat, 28 Sep 2024 16:11:48 +0100 Subject: [PATCH] use installed kubectl version in examples --- .../en/docs/tutorials/multi_control_plane_ha_clusters.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/content/en/docs/tutorials/multi_control_plane_ha_clusters.md b/site/content/en/docs/tutorials/multi_control_plane_ha_clusters.md index 9861518567b0..977dba6c272b 100644 --- a/site/content/en/docs/tutorials/multi_control_plane_ha_clusters.md +++ b/site/content/en/docs/tutorials/multi_control_plane_ha_clusters.md @@ -185,7 +185,7 @@ users: - Overview of the current leader and follower API servers ```shell -minikube ssh -p ha-demo -- 'sudo /var/lib/minikube/binaries/v1.28.4/kubectl --kubeconfig=/var/lib/minikube/kubeconfig logs -n kube-system pod/kube-vip-ha-demo' +minikube ssh -p ha-demo -- 'find /var/lib/minikube/binaries -iname kubectl -exec sudo {} --kubeconfig=/var/lib/minikube/kubeconfig logs -n kube-system pod/kube-vip-ha-demo \; -quit' ``` ``` time="2024-03-14T21:38:34Z" level=info msg="Starting kube-vip.io [v0.7.1]" @@ -205,7 +205,7 @@ time="2024-03-14T21:38:48Z" level=info msg="Added backend for [192.168.49.254:84 ``` ```shell -minikube ssh -p ha-demo -- 'sudo /var/lib/minikube/binaries/v1.28.4/kubectl --kubeconfig=/var/lib/minikube/kubeconfig logs -n kube-system pod/kube-vip-ha-demo-m02' +minikube ssh -p ha-demo -- 'find /var/lib/minikube/binaries -iname kubectl -exec sudo {} --kubeconfig=/var/lib/minikube/kubeconfig logs -n kube-system pod/kube-vip-ha-demo-m02 \; -quit' ``` ``` time="2024-03-14T21:38:25Z" level=info msg="Starting kube-vip.io [v0.7.1]" @@ -218,7 +218,7 @@ time="2024-03-14T21:38:34Z" level=info msg="Node [ha-demo] is assuming leadershi ``` ```shell -minikube ssh -p ha-demo -- 'sudo /var/lib/minikube/binaries/v1.28.4/kubectl --kubeconfig=/var/lib/minikube/kubeconfig logs -n kube-system pod/kube-vip-ha-demo-m03' +minikube ssh -p ha-demo -- 'find /var/lib/minikube/binaries -iname kubectl -exec sudo {} --kubeconfig=/var/lib/minikube/kubeconfig logs -n kube-system pod/kube-vip-ha-demo-m03 \; -quit' ``` ``` time="2024-03-14T21:38:48Z" level=info msg="Starting kube-vip.io [v0.7.1]" @@ -233,7 +233,7 @@ time="2024-03-14T21:38:48Z" level=info msg="Node [ha-demo] is assuming leadershi - Overview of multi-etcd instances ```shell -minikube ssh -p ha-demo -- 'sudo /var/lib/minikube/binaries/v1.28.4/kubectl --kubeconfig=/var/lib/minikube/kubeconfig exec -ti pod/etcd-ha-demo -n kube-system -- /bin/sh -c "ETCDCTL_API=3 etcdctl member list --write-out=table --cacert=/var/lib/minikube/certs/etcd/ca.crt --cert=/var/lib/minikube/certs/etcd/server.crt --key=/var/lib/minikube/certs/etcd/server.key"' +minikube ssh -p ha-demo -- 'find /var/lib/minikube/binaries -iname kubectl -exec sudo {} --kubeconfig=/var/lib/minikube/kubeconfig exec -ti pod/etcd-ha-demo -n kube-system -- /bin/sh -c "ETCDCTL_API=3 etcdctl member list --write-out=table --cacert=/var/lib/minikube/certs/etcd/ca.crt --cert=/var/lib/minikube/certs/etcd/server.crt --key=/var/lib/minikube/certs/etcd/server.key" \; -quit' ``` ``` +------------------+---------+-------------+---------------------------+---------------------------+------------+