infra/k8s/snipeit/ingress.yaml

35 lines
586 B
YAML
Raw Normal View History

2024-08-08 01:51:51 +00:00
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