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
Top comments (0)