Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 6394ae3

Browse files
ChristianKuehnelmetaflow
authored andcommitted
Adding an emptyDir to kubernetes deployment
This should resolve the out-of-disk problems reported in #379
1 parent 25e8a58 commit 6394ae3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

containers/buildkite-premerge-debian/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ RUN chmod og+rx /usr/local/bin/*.sh
1212
COPY --chown=buildkite-agent:buildkite-agent pre-checkout /etc/buildkite-agent/hooks
1313
COPY --chown=buildkite-agent:buildkite-agent post-checkout /etc/buildkite-agent/hooks
1414

15+
# buildkite working directory
16+
VOLUME /var/lib/buildkite-agent
17+
1518
ENTRYPOINT ["entrypoint.sh"]
1619
CMD ["gosu", "buildkite-agent", "buildkite-agent", "start", "--no-color"]

kubernetes/buildkite/linux-agents.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ spec:
4545
volumeMounts:
4646
- name: github-ssh
4747
mountPath: /mnt/ssh
48+
- name: workdir
49+
mountPath: /var/lib/buildkite-agent
4850
env:
4951
- name: BUILDKITE_AGENT_TOKEN
5052
valueFrom:
@@ -73,6 +75,8 @@ spec:
7375
- name: github-ssh
7476
secret:
7577
secretName: github-ssh
78+
- name: workdir
79+
emptyDir: {}
7680
nodeSelector:
7781
cloud.google.com/gke-nodepool: linux-agents-2
7882
terminationGracePeriodSeconds: 3600

0 commit comments

Comments
 (0)