mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Merge branch 'master' into volume-snapshot
This commit is contained in:
@@ -51,6 +51,14 @@ rules:
|
||||
verbs:
|
||||
- list
|
||||
- watch
|
||||
- apigroups:
|
||||
- extensions
|
||||
resourcenames:
|
||||
- weave-scope
|
||||
resources:
|
||||
- podsecuritypolicies
|
||||
verbs:
|
||||
- use
|
||||
- apiGroups:
|
||||
- volumesnapshot.external-storage.k8s.io
|
||||
resources:
|
||||
@@ -58,4 +66,4 @@ rules:
|
||||
- volumesnapshotdatas
|
||||
verbs:
|
||||
- list
|
||||
- watch
|
||||
- watch
|
||||
21
examples/k8s/psp.yaml
Normal file
21
examples/k8s/psp.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
name: weave-scope
|
||||
spec:
|
||||
privileged: true
|
||||
hostPID: true
|
||||
hostNetwork: true
|
||||
allowedCapabilities:
|
||||
- 'NET_ADMIN'
|
||||
fsGroup:
|
||||
rule: RunAsAny
|
||||
runAsUser:
|
||||
rule: RunAsAny
|
||||
seLinux:
|
||||
rule: RunAsAny
|
||||
supplementalGroups:
|
||||
rule: RunAsAny
|
||||
volumes:
|
||||
- secret
|
||||
- hostPath
|
||||
Reference in New Issue
Block a user