-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwes-plugin-scheduler.yaml
103 lines (102 loc) · 2.49 KB
/
wes-plugin-scheduler.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
apiVersion: v1
kind: Service
metadata:
name: wes-plugin-scheduler
spec:
ports:
- name: wes-plugin-scheduler
port: 8080
targetPort: 8080
selector:
app: wes-plugin-scheduler
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wes-plugin-scheduler
spec:
selector:
matchLabels:
app: wes-plugin-scheduler
template:
metadata:
labels:
app: wes-plugin-scheduler
sagecontinuum.org/plugin-task: scheduler
spec:
priorityClassName: wes-high-priority
serviceAccountName: wes-plugin-scheduler
nodeSelector:
node-role.kubernetes.io/master: "true"
containers:
- image: waggle/edge-scheduler:0.27.5
imagePullPolicy: IfNotPresent
name: wes-plugin-scheduler
command: ["nodescheduler"]
args:
- -in-cluster
- -policy
- gpuaware
- -nodename
- "$(WAGGLE_NODE_VSN)"
- -goalstream-url
- "https://es.sagecontinuum.org/api/v1/goals/$(WAGGLE_NODE_VSN)/stream"
envFrom:
- configMapRef:
name: wes-identity
env:
- name: WAGGLE_APP_ID
valueFrom:
fieldRef:
fieldPath: metadata.uid
resources:
limits:
memory: 150Mi
requests:
cpu: 100m
memory: 150Mi
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: wes-plugin-scheduler
rules:
- apiGroups: ["", "batch"] # "" indicates the core API group
resources:
[
"namespaces",
"configmaps",
"services",
"jobs",
"nodes",
"pods",
"pods/log",
"secrets",
"events",
]
verbs: ["create", "get", "watch", "list", "update", "patch", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: wes-plugin-scheduler-view
namespace: default
roleRef:
kind: ClusterRole
name: wes-plugin-scheduler
apiGroup: rbac.authorization.k8s.io
# `edit` is a built-in cluster role. more info about these can be found here:
# https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
subjects:
- kind: ServiceAccount
name: wes-plugin-scheduler
namespace: default
- kind: ServiceAccount
name: wes-plugin-scheduler
namespace: ses
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: wes-plugin-scheduler