Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created November 28, 2020 19:28
Show Gist options
  • Save xximjasonxx/f1e2483e3cc4e83af1d6c41a9b4850dd to your computer and use it in GitHub Desktop.
Save xximjasonxx/f1e2483e3cc4e83af1d6c41a9b4850dd to your computer and use it in GitHub Desktop.
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