Add script to get admin token
This commit is contained in:
5
scripts/get-admin-token.sh
Executable file
5
scripts/get-admin-token.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
token=$(kubectl get secret -n kube-system | grep cluster-admin-token | cut -d' ' -f1)
|
||||||
|
kubectl get secret -n kube-system $token -o yaml | \
|
||||||
|
grep ' token:' | cut -d' ' -f4 | base64 -d
|
||||||
Reference in New Issue
Block a user