Last active
March 29, 2021 11:23
-
-
Save f9n/a8abc6c7077f63a85ecadd1f342b3dba to your computer and use it in GitHub Desktop.
Opa/Gatekeeper-Library Constraints - Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: constraints.gatekeeper.sh/v1beta1 | |
kind: K8sPSPPrivilegedContainer | |
metadata: | |
name: psp-privileged-container | |
spec: | |
match: | |
kinds: | |
- apiGroups: [""] | |
kinds: ["Pod"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: constraints.gatekeeper.sh/v1beta1 | |
kind: K8sPSPAllowPrivilegeEscalationContainer | |
metadata: | |
name: psp-allow-privilege-escalation-container | |
spec: | |
match: | |
kinds: | |
- apiGroups: [""] | |
kinds: ["Pod"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: constraints.gatekeeper.sh/v1beta1 | |
kind: K8sPSPHostNamespace | |
metadata: | |
name: psp-host-namespace | |
spec: | |
match: | |
kinds: | |
- apiGroups: [""] | |
kinds: ["Pod"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: constraints.gatekeeper.sh/v1beta1 | |
kind: K8sPSPHostNetworkingPorts | |
metadata: | |
name: psp-host-network-ports | |
spec: | |
match: | |
kinds: | |
- apiGroups: [""] | |
kinds: ["Pod"] | |
parameters: | |
hostNetwork: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment