cultfifthoctet/nginx.yml

65 lines
1.2 KiB
YAML
Raw Normal View History

2022-09-02 18:02:45 +00:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: caddy
namespace: cultfifthoctet
spec:
replicas: 3
selector:
matchLabels:
app: caddy
template:
metadata:
labels:
app: caddy
spec:
containers:
- name: caddy
2023-08-07 15:27:51 +00:00
image: git.shrug.pw/neil/cultfifthoctet
2022-09-02 18:02:45 +00:00
ports:
- name: tcp
containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: caddy
namespace: cultfifthoctet
spec:
ports:
- port: 8080
targetPort: 8080
protocol: TCP
2023-08-07 15:27:51 +00:00
type: ClusterIP
2022-09-02 18:02:45 +00:00
selector:
app: caddy
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/client-max-body-size: 20m
nginx.ingress.kubernetes.io/proxy-body-size: 20m
name: caddy
namespace: cultfifthoctet
spec:
rules:
- host: cultfifthoctet.org
http:
paths:
- backend:
service:
name: caddy
port:
number: 8080
path: /
pathType: Prefix
tls:
- hosts:
- cultfifthoctet.org
secretName: default-cert