Skip to content

Commit ae592f2

Browse files
committed
Add vbar_control_agent and tpu_network_optimizer to plugin daemonset
1 parent 446a35c commit ae592f2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

charts/tpu-dra-driver/templates/kubeletplugin.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ spec:
3434
serviceAccountName: {{ include "tpu-dra-driver.serviceAccountName" . }}
3535
securityContext:
3636
{{- toYaml .Values.kubeletPlugin.podSecurityContext | nindent 8 }}
37+
initContainers:
38+
- name: "tpu-network-optimization"
39+
image: "gcr.io/gke-release-staging/tpu_network_optimizer:tpu_network_optimizer_20241212.00_p0@sha256:ad1446302c2a7714af62959dd84fc9cd47552085cac4f03580cb4c5eb523e81c"
40+
securityContext:
41+
privileged: true
42+
command:
43+
- /tpu_network_optimizer.sh
44+
volumeMounts:
45+
- name: sys
46+
mountPath: /sys
47+
- name: proc
48+
mountPath: /proc
3749
containers:
3850
- name: plugin
3951
securityContext:
@@ -75,6 +87,24 @@ spec:
7587
mountPath: /sys
7688
- name: proc
7789
mountPath: /proc
90+
- image: "gcr.io/gke-release-staging/vbar_control_agent@sha256:4bd33c9d448a446b8a1893f1caee93f0206674faeda82047491d144416c42c88"
91+
name: vbar-control-agent
92+
env:
93+
- name: TPU_SKIP_MDS_QUERY
94+
value: 'true'
95+
securityContext:
96+
privileged: true
97+
readOnlyRootFilesystem: true
98+
seccompProfile:
99+
type: RuntimeDefault
100+
resources:
101+
requests:
102+
memory: 150Mi
103+
cpu: 10m
104+
limits:
105+
memory: 150Mi
106+
command: ["vbar_control_agent_files/bin/vbar_control_agent"]
107+
args: ['--logtostderr', '--census_enabled=false', '--gid=', '--uid=', '--chroot=']
78108
volumes:
79109
- name: plugins-registry
80110
hostPath:

0 commit comments

Comments
 (0)