Goglides Dev 🌱

Goglides Dev 🌱 is a community of amazing users

Shaping the future of IT, one connection at a time.

Create account Log in
Balkrishna Pandey
Balkrishna Pandey

Posted on

Get all secrets with particular type

You can use --field-selector option in kubectl to select the type of secrets as follows.

kubectl get secrets --field-selector type=Opaque
kubectl get secrets --field-selector type=kubernetes.io/tls
kubectl get secrets --field-selector type=kubernetes.io/service-account-token
Enter fullscreen mode Exit fullscreen mode

Discussion (0)