kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch16/lab/solution/restrictedPaths-constraint.yaml

20 lines
376 B
YAML
Raw Permalink Normal View History

apiVersion: constraints.gatekeeper.sh/v1beta1
kind: RestrictedPaths
metadata:
name: restrictedpaths-host
spec:
match:
kinds:
- apiGroups: [""]
kinds: ["Pod"]
labelSelector:
matchExpressions:
- key: kiamol
operator: In
values:
- ch16-lab
parameters:
paths:
- "/"
- "/bin"
- "/etc"