Adding an emptyDir
to kubernetes deployment
This should resolve the out-of-disk problems reported in #379
This commit is contained in:
parent
25e8a5807f
commit
6394ae39b4
2 changed files with 7 additions and 0 deletions
|
@ -12,5 +12,8 @@ RUN chmod og+rx /usr/local/bin/*.sh
|
||||||
COPY --chown=buildkite-agent:buildkite-agent pre-checkout /etc/buildkite-agent/hooks
|
COPY --chown=buildkite-agent:buildkite-agent pre-checkout /etc/buildkite-agent/hooks
|
||||||
COPY --chown=buildkite-agent:buildkite-agent post-checkout /etc/buildkite-agent/hooks
|
COPY --chown=buildkite-agent:buildkite-agent post-checkout /etc/buildkite-agent/hooks
|
||||||
|
|
||||||
|
# buildkite working directory
|
||||||
|
VOLUME /var/lib/buildkite-agent
|
||||||
|
|
||||||
ENTRYPOINT ["entrypoint.sh"]
|
ENTRYPOINT ["entrypoint.sh"]
|
||||||
CMD ["gosu", "buildkite-agent", "buildkite-agent", "start", "--no-color"]
|
CMD ["gosu", "buildkite-agent", "buildkite-agent", "start", "--no-color"]
|
|
@ -45,6 +45,8 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: github-ssh
|
- name: github-ssh
|
||||||
mountPath: /mnt/ssh
|
mountPath: /mnt/ssh
|
||||||
|
- name: workdir
|
||||||
|
mountPath: /var/lib/buildkite-agent
|
||||||
env:
|
env:
|
||||||
- name: BUILDKITE_AGENT_TOKEN
|
- name: BUILDKITE_AGENT_TOKEN
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
@ -73,6 +75,8 @@ spec:
|
||||||
- name: github-ssh
|
- name: github-ssh
|
||||||
secret:
|
secret:
|
||||||
secretName: github-ssh
|
secretName: github-ssh
|
||||||
|
- name: workdir
|
||||||
|
emptyDir: {}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
cloud.google.com/gke-nodepool: linux-agents-2
|
cloud.google.com/gke-nodepool: linux-agents-2
|
||||||
terminationGracePeriodSeconds: 3600
|
terminationGracePeriodSeconds: 3600
|
Loading…
Reference in a new issue