added glance dashboard
This commit is contained in:
57
cluster/applications/the-hub/rbac.yaml
Normal file
57
cluster/applications/the-hub/rbac.yaml
Normal file
@@ -0,0 +1,57 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: the-hub
|
||||
namespace: the-hub
|
||||
labels:
|
||||
app.kubernetes.io/name: the-hub
|
||||
app.kubernetes.io/part-of: mk-labs
|
||||
---
|
||||
# ClusterRole grants read-only access to cluster resources
|
||||
# required for the Glance Kubernetes community widget
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: the-hub
|
||||
labels:
|
||||
app.kubernetes.io/name: the-hub
|
||||
app.kubernetes.io/part-of: mk-labs
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources:
|
||||
- nodes
|
||||
- pods
|
||||
- services
|
||||
- namespaces
|
||||
- persistentvolumes
|
||||
- persistentvolumeclaims
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["apps"]
|
||||
resources:
|
||||
- deployments
|
||||
- replicasets
|
||||
- statefulsets
|
||||
- daemonsets
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["metrics.k8s.io"]
|
||||
resources:
|
||||
- nodes
|
||||
- pods
|
||||
verbs: ["get", "list"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: the-hub
|
||||
labels:
|
||||
app.kubernetes.io/name: the-hub
|
||||
app.kubernetes.io/part-of: mk-labs
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: the-hub
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: the-hub
|
||||
namespace: the-hub
|
||||
Reference in New Issue
Block a user