Use caddy for serveing static file

This commit is contained in:
2024-01-19 17:07:33 +11:00
parent 45ec95bf0f
commit 4481ef908c
+6 -5
View File
@@ -21,9 +21,10 @@ spec:
claimName: downloads-nfs
containers:
- name: static-file-server
image: halverneus/static-file-server
image: caddy:2
args: ["file-server", "--listen", "8080", "--root", "/www", "--browse"]
securityContext:
runAsUser: 0
runAsUser: 1000
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
@@ -35,14 +36,14 @@ spec:
volumeMounts:
- name: downloads
subPath: ftp
mountPath: /web
mountPath: /www
resources:
requests:
cpu: 100m
memory: 126Mi
limits:
cpu: 200m
memory: 256Mi
cpu: 400m
memory: 512Mi
---
apiVersion: v1
kind: Service