this makes more sense as a wildcard A record, I think. not 100% sure but for now, we'll try it. I'm pretty sure I don't need this externally ever, so making this hit the node ports seems right.
35 lines
648 B
YAML
35 lines
648 B
YAML
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: garage-web
|
|
namespace: garage
|
|
spec:
|
|
ingressClassName: haproxy
|
|
tls:
|
|
- secretName: wildcard-tls
|
|
hosts:
|
|
- s3.strudelline.net
|
|
- '*.s3.strudelline.net'
|
|
rules:
|
|
- host: 's3.strudelline.net'
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: garage
|
|
port:
|
|
name: s3-api
|
|
- host: '*.s3.strudelline.net'
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: garage
|
|
port:
|
|
name: s3-api
|