-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmanifests.yaml
54 lines (54 loc) · 1.24 KB
/
manifests.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: &name nsenter
labels:
app: *name
spec:
selector:
matchLabels:
app: *name
template:
metadata:
labels:
app: *name
spec:
# affinity:
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: node.kubernetes.io/instance-type
# operator: In
# values:
# - Standard_NV6ads_A10_v5
hostNetwork: true
hostPID: true
containers:
- image: mcr.microsoft.com/aks/aks-gpu:${TAG}
imagePullPolicy: Always
name: *name
command: ["/entrypoint.sh"]
args: ["install", "sleep"]
resources:
requests:
{}
limits:
{}
securityContext:
privileged: true
volumeMounts:
- name: hostmount
mountPath: "/mnt/actions"
- name: gpu
mountPath: "/mnt/gpu"
volumes:
- name: gpu
hostPath:
path: /opt/gpu
type: DirectoryOrCreate
- name: hostmount
hostPath:
path: /opt/actions
type: DirectoryOrCreate
---