Skip to content

Instantly share code, notes, and snippets.

@tristanlins
Created January 19, 2020 13:15
Show Gist options
  • Save tristanlins/cae9d4899406759869c935fdd0f136fb to your computer and use it in GitHub Desktop.
Save tristanlins/cae9d4899406759869c935fdd0f136fb to your computer and use it in GitHub Desktop.
Medium | get secret credentials
$ kubectl get secret gitlab-token-1cdd47 -o yaml
apiVersion: v1
data:
ca.crt: EdAGjzRzleL2JladlfiP2kItNJHPg4aZYvFE0XB9Z7brN60e0rks6eYKO/oEyT5vTDgjtuZfPuAAh7lyJgFaLT8QljoA7RZb9fc0KGXsJcvNlH9075Q6QpMiOjQ2PQN4MZO8Z3729yHhqsgRsaaN//9tU2+TPDk81fYeBF2eeUQ=
...
token: uz8MTKfySDNSDvVo+rYCUQh6qk5UM8/+Efoqk54CMs/0rtBsFyYAotHUTeckqHPF6OXO/WLqiftJXftXAzikYw==
kind: Secret
metadata:
name: gitlab-token-1cdd47
type: kubernetes.io/service-account-token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment