forked from intel/platform-aware-scheduling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgas-deployment.yaml
60 lines (60 loc) · 1.53 KB
/
gas-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: gpu-aware-scheduling
namespace: default
labels:
app: gas
spec:
replicas: 1
selector:
matchLabels:
app: gas
template:
metadata:
labels:
app: gas
spec:
serviceAccountName: gpu-aware-scheduling-service-account
containers:
- name: gasext
command:
- "/extender"
- "--cert=/gas/cert/tls.crt"
- "--key=/gas/cert/tls.key"
- "--cacert=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
- "--burst=100"
- "--qps=50"
- "--v=4"
image: intel/gpu-extender
imagePullPolicy: IfNotPresent
securityContext:
capabilities:
drop:
- all
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
volumeMounts:
- name: certs
mountPath: /gas/cert
volumes:
- name: certs
secret:
secretName: extender-secret
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
- key: node-role.kubernetes.io/control-plane
operator: Exists
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists