use gateway instead of ingress

This commit is contained in:
2025-03-02 01:05:44 -06:00
parent 9f4cf29521
commit 0cd7a610f9
3 changed files with 80 additions and 32 deletions

View File

@@ -0,0 +1,24 @@
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: headlamp-gateway
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: headlamp-gateway
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: web
app.kubernetes.io/part-of: {{ .Release.Name }}
annotations:
cert-manager.io/cluster-issuer: letsencrypt-issuer
spec:
gatewayClassName: cilium
listeners:
- name: https
protocol: HTTPS
port: 443
hostname: headlamp.alexlebens.net
tls:
certificateRefs:
- kind: Secret
name: headlamp-gateway-cert