2020-05-08 14:06:20 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: cors-proxy
|
|
|
|
namespace: cors-proxy
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: 8000
|
|
|
|
name: web
|
|
|
|
selector:
|
|
|
|
app: cors-proxy
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: cors-proxy
|
|
|
|
namespace: cors-proxy
|
|
|
|
spec:
|
2020-06-05 21:51:40 +00:00
|
|
|
replicas: 1
|
2020-05-08 14:06:20 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: cors-proxy
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: cors-proxy
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: web
|
|
|
|
image: docker.cluster.fun/averagemarcus/cors-proxy:latest
|
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
|
|
|
- containerPort: 8000
|
|
|
|
name: web
|
|
|
|
---
|
2021-10-16 06:31:19 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2020-05-08 14:06:20 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: cors-proxy
|
|
|
|
namespace: cors-proxy
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
2021-10-16 08:46:06 +00:00
|
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
2020-05-08 14:06:20 +00:00
|
|
|
spec:
|
2021-10-16 08:46:06 +00:00
|
|
|
ingressClassName: nginx
|
2020-05-08 14:06:20 +00:00
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- cors-proxy.cluster.fun
|
|
|
|
secretName: cors-proxy-ingress
|
|
|
|
rules:
|
|
|
|
- host: cors-proxy.cluster.fun
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2020-05-08 14:06:20 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: cors-proxy
|
|
|
|
port:
|
|
|
|
number: 80
|
2020-05-08 14:06:20 +00:00
|
|
|
|
|
|
|
---
|
2021-10-16 06:31:19 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2020-05-08 14:06:20 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: cors-proxy-mn
|
|
|
|
namespace: cors-proxy
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
2021-10-16 08:46:06 +00:00
|
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
2020-05-08 14:06:20 +00:00
|
|
|
spec:
|
2021-10-16 08:46:06 +00:00
|
|
|
ingressClassName: nginx
|
2020-05-08 14:06:20 +00:00
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- cors-proxy.marcusnoble.co.uk
|
|
|
|
secretName: cors-proxy-mn-ingress
|
|
|
|
rules:
|
|
|
|
- host: cors-proxy.marcusnoble.co.uk
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2020-05-08 14:06:20 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: cors-proxy
|
|
|
|
port:
|
|
|
|
number: 80
|