Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

kubectl config kubernetes dashboard

$ kubectl get secrets -n kube-system
$ kubectl get secret $SECRET_NAME -n=kube-system -o json | jq -r '.data["token"]' | base64 -d > user_token.txt
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #kubectl #config #kubernetes #dashboard
ADD COMMENT
Topic
Name
7+4 =