We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebf23b3 commit 41e3907Copy full SHA for 41e3907
docs/operation/03-register-k8s-cluster.md
@@ -28,6 +28,6 @@ to your KubeAPIServer. You will find the CA in the kubeconfig file for this clus
28
29
Example:
30
31
-* `grep certificate-authority-data ~/.kube/kubeconfig.yaml | awk '{print $2}' | base64 -d > /tmp/cluster-ca.crt`
32
-* `KUBE_API_SERVER_ADDRESS=$(grep server ~/.kube/kubeconfig.yaml | awk '{print $2}')`
+* `cat $KUBECONFIG | yq ".clusters[0].cluster.certificate-authority-data" | base64 -d > /tmp/cluster-ca.crt`
+* `KUBE_API_SERVER_ADDRESS=$(cat $KUBECONFIG | yq ".clusters[0].cluster.server")`
33
* `monoctl create cluster $KUBE_API_SERVER_ADDRESS /tmp/cluster-ca.crt -n mycluster`
0 commit comments