forked from radius-project/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.yaml
67 lines (66 loc) · 1.28 KB
/
dashboard.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
apiVersion: apps/v1
kind: Deployment
metadata:
name: dashboard
namespace: radius-system
spec:
replicas: 1
selector:
matchLabels:
app: dashboard
template:
metadata:
labels:
app: dashboard
spec:
serviceAccountName: dashboard-account
containers:
- name: dashboard
image: ghcr.io/radius-project/dashboard:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 7007
---
apiVersion: v1
kind: Service
metadata:
name: dashboard
namespace: radius-system
spec:
selector:
app: dashboard
ports:
- name: http
port: 80
targetPort: http
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: dashboard-account
namespace: radius-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: dashboard-role
namespace: radius-system
rules:
- apiGroups: ['', 'api.ucp.dev']
resources: ['*']
verbs: ['*']
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: dashboard-role-binding
namespace: radius-system
subjects:
- kind: ServiceAccount
name: dashboard-account
namespace: radius-system
roleRef:
kind: ClusterRole
name: dashboard-role
apiGroup: rbac.authorization.k8s.io