mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-18 04:49:55 +00:00
This add a psp file with needed right to work on kubernetes. Signed-off-by: Julien Garcia Gonzalez <julien@giantswarm.io>
62 lines
929 B
YAML
62 lines
929 B
YAML
# borrowed from https://cloud.weave.works/k8s/scope.yaml?k8s-version=1.9.3
|
|
# with little modificatios to reduce permissions
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
labels:
|
|
name: weave-scope
|
|
name: weave-scope
|
|
namespace: weave
|
|
rules:
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- pods
|
|
- replicationcontrollers
|
|
- services
|
|
- nodes
|
|
- persistentvolumes
|
|
- persistentvolumeclaims
|
|
verbs:
|
|
- list
|
|
- watch
|
|
- apiGroups:
|
|
- apps
|
|
resources:
|
|
- statefulsets
|
|
verbs:
|
|
- list
|
|
- watch
|
|
- apiGroups:
|
|
- batch
|
|
resources:
|
|
- cronjobs
|
|
- jobs
|
|
verbs:
|
|
- list
|
|
- watch
|
|
- apiGroups:
|
|
- extensions
|
|
resources:
|
|
- daemonsets
|
|
- deployments
|
|
- replicasets
|
|
verbs:
|
|
- list
|
|
- watch
|
|
- apiGroups:
|
|
- storage.k8s.io
|
|
resources:
|
|
- storageclasses
|
|
verbs:
|
|
- list
|
|
- watch
|
|
- apigroups:
|
|
- extensions
|
|
resourcenames:
|
|
- weave-scope
|
|
resources:
|
|
- podsecuritypolicies
|
|
verbs:
|
|
- use
|