Using Console
Using CLI
CLUSTER_NAME
with the name of your GCP cluster.CLUSTER_NAME
with the name of your GCP cluster and ZONE
with the zone where your cluster is located.If the output shows "podSecurityPolicyConfig": {"enabled": true}
, then Pod Security Policy has been successfully enabled for your GCP cluster.Using Python