Add Wings HTTPS proxy via Envoy Gateway

This commit is contained in:
2026-06-02 22:28:39 +02:00
parent 9436ed134a
commit 6c6c88a16a
6 changed files with 94 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ resources:
- searxng/certificate.yaml - searxng/certificate.yaml
- affine/certificate.yaml - affine/certificate.yaml
- pelican/certificate.yaml - pelican/certificate.yaml
- pelican/wings-certificate.yaml
patches: patches:
# Internal gateway patches # Internal gateway patches
@@ -296,6 +297,12 @@ patches:
kind: Gateway kind: Gateway
name: gateway-internal name: gateway-internal
path: pelican/gateway-patch.yaml path: pelican/gateway-patch.yaml
- target:
group: gateway.networking.k8s.io
version: v1
kind: Gateway
name: gateway-internal
path: pelican/wings-gateway-patch.yaml
# Public gateway patches # Public gateway patches
- target: - target:

View File

@@ -0,0 +1,14 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: wings-tls
namespace: envoy-gateway
spec:
secretName: wings-tls
privateKey:
rotationPolicy: Always
issuerRef:
name: azure-dns
kind: ClusterIssuer
dnsNames:
- wings.jsme.be

View File

@@ -0,0 +1,19 @@
- op: add
path: /spec/listeners/-
value:
name: wings
protocol: HTTPS
port: 443
hostname: "wings.jsme.be"
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: pelican
tls:
mode: Terminate
certificateRefs:
- kind: Secret
name: wings-tls
namespace: envoy-gateway

View File

@@ -0,0 +1,18 @@
apiVersion: discovery.k8s.io/v1
kind: EndpointSlice
metadata:
name: wings
namespace: pelican
labels:
kubernetes.io/service-name: wings
addressType: IPv4
ports:
- port: 8080
protocol: TCP
endpoints:
- addresses:
- "10.8.11.50"
conditions:
ready: true
serving: true
terminating: false

View File

@@ -0,0 +1,25 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: wings-route
namespace: pelican
spec:
parentRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: gateway-internal
namespace: envoy-gateway
sectionName: wings
hostnames:
- "wings.jsme.be"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: wings
port: 8080
kind: Service
group: ""
weight: 1

11
pelican/wings-svc.yaml Normal file
View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: wings
namespace: pelican
spec:
ports:
- protocol: TCP
port: 8080
targetPort: 8080
type: ClusterIP