infra/k8s/snipeit/ingress.yaml
2024-08-07 18:51:51 -07:00

34 lines
586 B
YAML

apiVersion: v1
kind: Service
metadata:
name: snipe
spec:
selector:
app: snipe
ports:
- port: 80
targetPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: snipe
labels:
name: snipe
annotations:
cert-manager.io/cluster-issuer: letsencrypt
spec:
tls:
- hosts: [snipe.herzfeld.casa]
secretName: snipe.herzfeld.casa
rules:
- host: snipe.herzfeld.casa
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: snipe
port:
number: 80