Goglides Dev 🌱

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

Top comments (0)