IBM Cloud Pak® CLI (cloudctl) cm commands (cm)
Learn about the cloudctl cm
commands that you can run to manage your cluster.
cloudctl cm
cloudctl cm psp-default-get
Get the default Kubernetes pod security policy.
- Example
cloudctl cm psp-default-get
cloudctl cm psp-default-set
Set the default Kubernetes pod security policy.
- Example
cloudctl cm psp-default-set restricted|unrestricted|psp-name
Values:
- restricted: Sets the default value to the most restrictive policy.
- unrestricted: Sets the default value to the least restrictive policy.
-
psp-name: Specifies the name of the pod-security-policy that you want to use as the default policy. Tip: You can view the names of the available pod-security-policy names by entering the following command:
kubectl get psp