Created
March 10, 2022 08:57
-
-
Save mattmattox/599a5467cdccf6dfed132c8c51c81b49 to your computer and use it in GitHub Desktop.
grab-rke2-bootstrap.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml exec -it $(/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml get po -l component=etcd -n kube-system \ | |
-o jsonpath='{.items[0].metadata.name}') -n kube-system -- /bin/bash -c "ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379 \ | |
--cacert=/var/lib/rancher/rke2/server/tls/etcd/server-ca.crt \ | |
--cert=/var/lib/rancher/rke2/server/tls/etcd/server-client.crt \ | |
--key=/var/lib/rancher/rke2/server/tls/etcd/server-client.key \ | |
get /bootstrap --prefix " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment