Skip to content

Commit

Permalink
better way to identify cluster url and cert (#262)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Stielau <alexander.stielau@finleap.com>

Signed-off-by: Alexander Stielau <alexander.stielau@finleap.com>
  • Loading branch information
alesti committed Oct 19, 2022
1 parent ebf23b3 commit 41e3907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/operation/03-register-k8s-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ to your KubeAPIServer. You will find the CA in the kubeconfig file for this clus

Example:

* `grep certificate-authority-data ~/.kube/kubeconfig.yaml | awk '{print $2}' | base64 -d > /tmp/cluster-ca.crt`
* `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")`
* `monoctl create cluster $KUBE_API_SERVER_ADDRESS /tmp/cluster-ca.crt -n mycluster`

0 comments on commit 41e3907

Please sign in to comment.