Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubernetes.jinja2: Add emptydir compile volume, remove scratch #2318

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 5 additions & 20 deletions config/runtime/base/kubernetes.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ spec:
terminationGracePeriodSeconds: 10

volumes:
- name: scratch-volume
emptyDir: { medium: "Memory" }

- name: dev-shm
emptyDir: { medium: "Memory" }

- name: compile-volume
emptyDir: { }

# FIXME: add template conditional based on storage type
- name: ssh-key
secret:
Expand All @@ -36,32 +36,17 @@ spec:
value: "spot"
effect: "NoSchedule"

initContainers:
- name: kernelci-setup
image: debian:bullseye-slim

volumeMounts:
- mountPath: "/scratch"
name: scratch-volume

command: ["/bin/bash", "-x", "-c"]
args: ["mkdir -p /tmp/kci"]

containers:
- name: kernelci
image: {{ runtime_image }}
imagePullPolicy: Always

volumeMounts:
- mountPath: "/scratch"
name: scratch-volume

volumeMounts:
- mountPath: "/tmp/kci"
name: compile-volume
- mountPath: "/dev/shm"
name: dev-shm

# FIXME: add template conditional based on storage type
volumeMounts:
- mountPath: "/home/kernelci/.ssh"
name: ssh-key
readOnly: true
Expand Down
Loading