-
Notifications
You must be signed in to change notification settings - Fork 0
/
imgproxy.yaml
47 lines (46 loc) · 1.05 KB
/
imgproxy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
apiVersion: apps/v1
kind: Deployment
metadata:
name: supabase-imgproxy
spec:
replicas: 1
selector:
matchLabels:
app: supabase-imgproxy
template:
metadata:
labels:
app: supabase-imgproxy
spec:
containers:
- name: supabase-imgproxy
image: darthsim/imgproxy:v3.8.0
ports:
- containerPort: 5001
env:
- name: IMGPROXY_BIND
value: ":5001"
- name: IMGPROXY_LOCAL_FILESYSTEM_ROOT
value: /
- name: IMGPROXY_USE_ETAG
value: "true"
- name: IMGPROXY_ENABLE_WEBP_DETECTION
value: "true"
volumeMounts:
- name: storage-data-vol
mountPath: /var/lib/storage
volumes:
- name: storage-data-vol
persistentVolumeClaim:
claimName: supabase-storage-pvc
---
apiVersion: v1
kind: Service
metadata:
name: supabase-imgproxy-service
spec:
selector:
app: supabase-imgproxy
ports:
- protocol: TCP
port: 5001