mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
36 lines
971 B
YAML
36 lines
971 B
YAML
---
|
|
# yaml-language-server: $schema=https://schemas.budimanjojo.com/gateway.networking.k8s.io/gateway_v1.json
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: Gateway
|
|
metadata:
|
|
name: internal
|
|
# annotations:
|
|
# external-dns.alpha.kubernetes.io/target: internal.${SECRET_EXTERNAL_DOMAIN}
|
|
spec:
|
|
gatewayClassName: envoy-gateway
|
|
addresses:
|
|
- type: IPAddress
|
|
value: 192.168.169.121
|
|
# infrastructure:
|
|
# annotations:
|
|
# external-dns.alpha.kubernetes.io/hostname: internal.${SECRET_EXTERNAL_DOMAIN}
|
|
listeners:
|
|
- name: http
|
|
protocol: HTTP
|
|
port: 80
|
|
hostname: "*.${SECRET_EXTERNAL_DOMAIN}"
|
|
allowedRoutes:
|
|
namespaces:
|
|
from: Same
|
|
- name: https
|
|
protocol: HTTPS
|
|
port: 443
|
|
hostname: "*.${SECRET_EXTERNAL_DOMAIN}"
|
|
allowedRoutes:
|
|
namespaces:
|
|
from: All
|
|
tls:
|
|
certificateRefs:
|
|
- kind: Secret
|
|
name: ${SECRET_EXTERNAL_DOMAIN//./-}-tls
|