allow gateway

This commit is contained in:
2025-03-02 02:00:38 -06:00
parent 90506191c5
commit ea9d433d2d
3 changed files with 14 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ spec:
- group: gateway.networking.k8s.io - group: gateway.networking.k8s.io
kind: Gateway kind: Gateway
name: https-gateway name: https-gateway
namespace: kube-system
hostnames: hostnames:
- headlamp.alexlebens.net - headlamp.alexlebens.net
rules: rules:
@@ -26,3 +27,4 @@ spec:
kind: Service kind: Service
name: headlamp name: headlamp
port: 80 port: 80
weight: 1

View File

@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: headlamp
labels:
https-gateway-access: "true"

View File

@@ -18,6 +18,12 @@ spec:
protocol: HTTPS protocol: HTTPS
port: 443 port: 443
hostname: '*.alexlebens.net' hostname: '*.alexlebens.net'
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
http-gateway-access: "true"
tls: tls:
certificateRefs: certificateRefs:
- group: '' - group: ''