You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

57 lines
1.0 KiB

apiVersion: apps/v1
kind: Deployment
metadata:
name: no-cors
labels:
app: no-cors
keel.sh/policy: force
spec:
replicas: 1
selector:
matchLabels:
app: no-cors
template:
metadata:
labels:
app: no-cors
spec:
containers:
- name: no-cors
image: harbor.xirion.net/library/cors-no-more
env:
- name: RUST_LOG
value: info
- name: ALLOWED_SITES
value: server.fseconomy.net,wooloofan.club
ports:
- containerPort: 8282
---
apiVersion: v1
kind: Service
metadata:
name: no-cors
spec:
selector:
app: no-cors
ports:
- protocol: TCP
port: 8282
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: no-cors-ingress
annotations:
kubernetes.io/ingress.class: "traefik"
spec:
rules:
- host: "no-cors.xirion.net"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: no-cors
port:
number: 8282