Skip to content

Commit d440391

Browse files
cmyuiclaude
andcommitted
Mount kubectl from host into GitHub runner
Required for helm deployments that use kubectl for cleanup. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e1907ea commit d440391

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

k8s/github-runner/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,15 @@ spec:
3838
volumeMounts:
3939
- name: docker-sock
4040
mountPath: /var/run/docker.sock
41+
- name: kubectl
42+
mountPath: /usr/local/bin/kubectl
4143
volumes:
4244
- name: docker-sock
4345
hostPath:
4446
path: /var/run/docker.sock
4547
type: Socket
48+
- name: kubectl
49+
hostPath:
50+
path: /usr/bin/kubectl
51+
type: File
4652
terminationGracePeriodSeconds: 60

0 commit comments

Comments
 (0)