Skip to content

Instantly share code, notes, and snippets.

@bharatmicrosystems
Created July 7, 2020 13:33
Show Gist options
  • Select an option

  • Save bharatmicrosystems/05c77f15930c1c196dda7e8c8cd0e950 to your computer and use it in GitHub Desktop.

Select an option

Save bharatmicrosystems/05c77f15930c1c196dda7e8c8cd0e950 to your computer and use it in GitHub Desktop.
$ kubectl get rs nginx-priv-545c8557d5
NAME DESIRED CURRENT READY AGE
nginx-priv-545c8557d5 1 0 0 88s
$ kubectl describe rs nginx-priv-545c8557d5|tail
Conditions:
Type Status Reason
---- ------ ------
ReplicaFailure True FailedCreate
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedCreate 39s (x15 over 2m1s) replicaset-controller Error creating: pods "nginx-priv-545c8557d5-" is forbidden: unable to validate against any pod security policy: [spec.containers[0].securityContext.privileged: Invalid value: true: Privileged containers are not allowed]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment