-
Notifications
You must be signed in to change notification settings - Fork 184
Expand file tree
/
Copy pathoptmem-max-ds.yaml
More file actions
50 lines (50 loc) · 1.35 KB
/
Copy pathoptmem-max-ds.yaml
File metadata and controls
50 lines (50 loc) · 1.35 KB
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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: optmem-max-ds
namespace: kube-system
labels:
k8s-app: optmem-max-ds
spec:
selector:
matchLabels:
k8s-app: optmem-max-ds
template:
metadata:
labels:
name: optmem-max-ds
k8s-app: optmem-max-ds
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: cloud.google.com/gke-accelerator
operator: In
values:
- nvidia-h100-80gb
hostNetwork: true
tolerations:
- operator: "Exists"
initContainers:
- name: optmem-max
image: gke.gcr.io/gke-distroless/bash
securityContext:
privileged: true
command:
- /bin/bash
- -c
- "set -x; cat /proc/sys/net/core/optmem_max; echo 131072 > /proc/sys/net/core/optmem_max"
containers:
- name: pause
image: registry.k8s.io/pause:3.9
securityContext:
runAsUser: 2023
runAsGroup: 2023
allowPrivilegeEscalation: false
capabilities:
drop: ["all"]
seccompProfile:
type: RuntimeDefault
readOnlyRootFilesystem: true