35 lines
586 B
YAML
35 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
|