apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: fileupload-deployment | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: fileupload | |
template: | |
metadata: | |
name: fileupload-app | |
labels: | |
app: fileupload | |
spec: | |
containers: | |
- name: fileupload | |
image: xximjasonxx/fileupload:2.1 | |
ports: | |
- containerPort: 80 | |
env: | |
- name: SAVE_PATH | |
value: "/app/output" | |
volumeMounts: | |
- mountPath: /app/output | |
name: save-path | |
volumes: | |
- name: save-path | |
persistentVolumeClaim: | |
claimName: fileupload-pvc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment