Page MenuHomeSoftware Heritage
Paste P1453

(An Untitled Masterwork)
ActivePublic

Authored by vsellier on Sep 14 2022, 4:55 PM.
```
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: swh-temp
name: test-local-storage
spec:
revisionHistoryLimit: 2
selector:
matchLabels:
app: swh-test
template:
metadata:
labels:
app: swh-test
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: "kubernetes.io/hostname"
operator: In
values:
- "rancher-node-staging-worker2"
containers:
- name: test-local-storage
image: debian:bullseye
command:
- /bin/sleep
args:
- "3600"
imagePullPolicy: Always
volumeMounts:
- name: local
mountPath: /tmp
volumes:
- name: local
emptyDir: {}
```