How to check if PoDSecurityPolicy
is enabled on a GKE
cluster or not ? Using gcloud container clusters describe <clustername>
, I could not find anything.
If I enable it on a cluster where this plugin
is already enabled, it displays that the plugin has been enabled so there is no way actually to know that if plugin
is already enabled on a cluster
$ gcloud beta container clusters update mycluster --enable-pod-security-policy --zone us-east1-c
Updating podsecpolicy-poc...done.
Updated [https://container.googleapis.com/v1beta1/projects/<project>/zones/us-east1-c/clusters/mycluster].