Last active
January 8, 2019 15:01
-
-
Save superseb/d35c5f1521bc9ed2f8044fd87a03bf63 to your computer and use it in GitHub Desktop.
rancher_create_kubernetes_token.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
curl 'http://<rancher_server_ip>/v2-beta/apikey' -H 'content-type: application/json' --data-binary '{"type":"apiKey","accountId":"1a1","name":"kubectl","description":"Provides workstation access to kubectl"}' --compressed | jq -r '.publicValue + ":" + .secretValue' | base64 | tr /+ _- | tr -d = |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment