Skip to content

Instantly share code, notes, and snippets.

@evanfoster
Created June 25, 2020 18:23
Show Gist options
  • Save evanfoster/bd52870ff71537bead1fb6f39f0e6f47 to your computer and use it in GitHub Desktop.
Save evanfoster/bd52870ff71537bead1fb6f39f0e6f47 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: qemu-guest-empty-dir
spec:
selector:
matchLabels:
app: qemu-guest-empty-dir
replicas: 1
template:
metadata:
labels:
app: qemu-guest-empty-dir
spec:
nodeSelector:
node.kubernetes.io/kata-containers: "true"
tolerations:
- effect: NoSchedule
key: node.kubernetes.io/kata-containers
operator: Equal
value: "true"
containers:
- image: dmonakhov/alpine-fio
name: qemu-0
command: ["ash"]
stdin: true
volumeMounts:
- name: test-volume
mountPath: /test-volume
tty: true
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
- image: dmonakhov/alpine-fio
name: qemu-1
command: ["ash"]
stdin: true
volumeMounts:
- name: test-volume
mountPath: /test-volume
tty: true
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
- image: dmonakhov/alpine-fio
name: qemu-2
command: ["ash"]
stdin: true
volumeMounts:
- name: test-volume
mountPath: /test-volume
tty: true
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
- image: dmonakhov/alpine-fio
name: qemu-3
command: ["ash"]
stdin: true
volumeMounts:
- name: test-volume
mountPath: /test-volume
tty: true
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
- image: dmonakhov/alpine-fio
name: qemu-4
command: ["ash"]
stdin: true
volumeMounts:
- name: test-volume
mountPath: /test-volume
tty: true
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
- image: dmonakhov/alpine-fio
name: qemu-5
command: ["ash"]
stdin: true
volumeMounts:
- name: test-volume
mountPath: /test-volume
tty: true
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
- image: dmonakhov/alpine-fio
name: qemu-6
command: ["ash"]
stdin: true
volumeMounts:
- name: test-volume
mountPath: /test-volume
tty: true
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
- image: dmonakhov/alpine-fio
name: qemu-7
command: ["ash"]
stdin: true
volumeMounts:
- name: test-volume
mountPath: /test-volume
tty: true
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
- image: dmonakhov/alpine-fio
name: qemu-8
command: ["ash"]
stdin: true
volumeMounts:
- name: test-volume
mountPath: /test-volume
tty: true
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
- image: dmonakhov/alpine-fio
name: qemu-9
command: ["ash"]
stdin: true
volumeMounts:
- name: test-volume
mountPath: /test-volume
tty: true
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
- image: dmonakhov/alpine-fio
name: qemu-10
command: ["ash"]
stdin: true
volumeMounts:
- name: test-volume
mountPath: /test-volume
tty: true
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
restartPolicy: Always
runtimeClassName: kata-qemu
volumes:
- name: test-volume
emptyDir: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment