新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user