mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-18 12:59:31 +00:00
example k8s: add support for PodSecurityPolicy
This add a psp file with needed right to work on kubernetes. Signed-off-by: Julien Garcia Gonzalez <julien@giantswarm.io>
This commit is contained in:
@@ -51,3 +51,11 @@ rules:
|
||||
verbs:
|
||||
- list
|
||||
- watch
|
||||
- apigroups:
|
||||
- extensions
|
||||
resourcenames:
|
||||
- weave-scope
|
||||
resources:
|
||||
- podsecuritypolicies
|
||||
verbs:
|
||||
- use
|
||||
|
||||
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