Forked from superseb/rancher_create_kubernetes_token.sh
Created
November 14, 2018 14:21
-
-
Save aduzsardi/e3a4bc257bf4bca6283c68ecee3d2014 to your computer and use it in GitHub Desktop.
rancher_create_kubernetes_token.sh
This file contains hidden or 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