Skip to content

Commit

Permalink
Merge pull request #344 from samuelkarp/optmem-max
Browse files Browse the repository at this point in the history
gpudirect-tcpx: add daemonset for optmem_max
  • Loading branch information
samuelkarp authored Dec 21, 2023
2 parents c1a0d80 + 891be79 commit 2ba1c84
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions gpudirect-tcpx/optmem-max-ds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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:
hostNetwork: true
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

0 comments on commit 2ba1c84

Please sign in to comment.