Skip to content

Instantly share code, notes, and snippets.

@YurgenUA
Created January 17, 2024 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YurgenUA/4fc823d73e8aa35971728fdb1e18398d to your computer and use it in GitHub Desktop.
Save YurgenUA/4fc823d73e8aa35971728fdb1e18398d to your computer and use it in GitHub Desktop.
kubectl get secret top-secret-ks -n playground -o yaml
>> apiVersion: v1
>> data:
>> password: TG9zdW5nd29ydA==
>> username: TnV0emVybmFtZQ==
>> kind: Secret
>> metadata:
>> name: top-secret-ks
>> namespace: playground
>> ...
>> type: Opaque
kubectl get secret top-secret-ks -n playground -o jsonpath='{.data.username}' | base64 --decode
>>Nutzername
kubectl get secret top-secret-ks -n playground -o jsonpath='{.data.password}' | base64 --decode
>>Losungwort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment