Posts

Showing posts with the label k8

How To See Kubernetes Secret Data?

Image
Kubernetes secrets are data in key-value format stored secretly for your applications deployed in a Kubernetes system. If you have proper rights and, for debugging purposes you wish to see the secret data then this post will help you.  To see Kubernetes secret data you must have proper rights to see its pods/deployments/secrets. This post assumes you have basic knowledge of Kubernetes and understand how to get access to a Kubernetes instance and you can run commands like kubectl get pod/deployments/secrets successfully. Steps involved: 1. Get Kubernetes secret in details 2. Decode the secret data Get Kubernetes Secret in Detail You can normally get any resource list in Kubernetes by command 'kubectl get pods/deployments/secrets'. Similarly `secret` is also a resource. You get secret list by command: >> kubectl get secrets NAME                   TYPE   ...