Goglides Dev 🌱

Goglides Dev 🌱 is a community of amazing users

We are working on this space so that IT professionals can grow together.

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)