-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimagefork.earthmark.dev.yaml
80 lines (80 loc) · 1.7 KB
/
imagefork.earthmark.dev.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: imagefork-ingress
labels:
app: imagefork-core
spec:
tls:
- hosts:
- imagefork.earthmark.dev
secretName: cloudflare-imagefork.earthmark.dev
rules:
- host: imagefork.earthmark.dev
http:
paths:
- path: /redirect
pathType: Prefix
backend:
service:
name: imagefork-core
port:
number: 80
---
apiVersion: v1
kind: Service
metadata:
name: imagefork-core
labels:
app: imagefork-core
spec:
ports:
- port: 80
selector:
app: imagefork-core
---
apiVersion: v1
kind: ConfigMap
metadata:
name: imagefork-core-config
labels:
app: imagefork-core
data:
ROCKET_PROFILE: production
ROCKET_PORT: "80"
ROCKET_ADDRESS: 0.0.0.0
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: imagefork-core
spec:
replicas: 1
selector:
matchLabels:
app: imagefork-core
template:
metadata:
labels:
app: imagefork-core
spec:
containers:
- name: imagefork-core
image: ghcr.io/earthmark/imagefork@sha256:06f71f645a36ee6662e89f6da608ff3d0e086f9e03af0fa4839e24b15367cafa
imagePullPolicy: "IfNotPresent"
ports:
- containerPort: 80
volumeMounts:
- name: imagefork-core-toml
mountPath: /usr/local/etc/imagefork/Rocket.toml
subPath: Rocket.toml
readOnly: true
envFrom:
- configMapRef:
name: imagefork-core-config
- secretRef:
name: rocket-oauth-github
volumes:
- name: imagefork-core-toml
secret:
secretName: imagefork-core-toml