This repository has been archived by the owner on Jun 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcatfacts-ui.yaml
103 lines (103 loc) · 2.22 KB
/
catfacts-ui.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: catfacts-ui
labels:
app: catfacts-ui
spec:
replicas: 2
selector:
matchLabels:
app: catfacts-ui
template:
metadata:
labels:
app: catfacts-ui
spec:
containers:
- name: catfacts-ui
image: ghcr.io/abatilo/catfacts-ui:DOCKER_TAG
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: catfacts-ui
spec:
selector:
app: catfacts-ui
ports:
- protocol: TCP
port: 80
targetPort: 3000
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: catfacts-ui
spec:
maxUnavailable: 1
selector:
matchLabels:
app: catfacts-ui
---
apiVersion: "traefik.containo.us/v1alpha1"
kind: "Middleware"
metadata:
name: catfacts-ui
spec:
headers:
forceSTSHeader: true
stsSeconds: 31536000
stsIncludeSubdomains: true
stsPreload: true
referrerPolicy: "no-referrer-when-downgrade"
contentTypeNosniff: true
contentSecurityPolicy: "upgrade-insecure-requests"
browserXssFilter: true
customFrameOptionsValue: "SAMEORIGIN"
customResponseHeaders:
"Permissions-Policy": "geolocation=(); midi=(); notifications=(); push=(); sync-xhr=(); microphone=(); camera=(); magnetometer=(); gyroscope=(); speaker=(self); vibrate=(); fullscreen=(self); payment=();"
"Server": ""
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: catfacts-ui-http-to-https
spec:
redirectScheme:
scheme: https
permanent: true
---
apiVersion: "traefik.containo.us/v1alpha1"
kind: "IngressRoute"
metadata:
name: catfacts-ui
spec:
entryPoints: ["web"]
routes:
- match: "Host(`catfacts.aaronbatilo.dev`)"
kind: "Rule"
middlewares:
- name: catfacts-ui-http-to-https
- name: catfacts-ui
services:
- name: catfacts-ui
port: 80
---
apiVersion: "traefik.containo.us/v1alpha1"
kind: "IngressRoute"
metadata:
name: catfacts-ui-secure
spec:
entryPoints: ["websecure"]
routes:
- match: "Host(`catfacts.aaronbatilo.dev`) && PathPrefix(`/`)"
kind: "Rule"
middlewares:
- name: catfacts-ui
services:
- name: catfacts-ui
port: 80