Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aduzsardi/e3a4bc257bf4bca6283c68ecee3d2014 to your computer and use it in GitHub Desktop.
Save aduzsardi/e3a4bc257bf4bca6283c68ecee3d2014 to your computer and use it in GitHub Desktop.
rancher_create_kubernetes_token.sh
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