add gateway

This commit is contained in:
2025-03-02 21:19:28 -06:00
parent 6d0d1a7f85
commit 15e5d2616f
3 changed files with 50 additions and 45 deletions

View File

@@ -1,30 +1,30 @@
# apiVersion: gateway.networking.k8s.io/v1 apiVersion: gateway.networking.k8s.io/v1
# kind: HTTPRoute kind: HTTPRoute
# metadata: metadata:
# name: http-route-argocd name: http-route-argocd
# namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
# labels: labels:
# app.kubernetes.io/name: http-route-argocd app.kubernetes.io/name: http-route-argocd
# app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
# app.kubernetes.io/version: {{ .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion }}
# app.kubernetes.io/component: web app.kubernetes.io/component: web
# app.kubernetes.io/part-of: {{ .Release.Name }} app.kubernetes.io/part-of: {{ .Release.Name }}
# spec: spec:
# parentRefs: parentRefs:
# - group: gateway.networking.k8s.io - group: gateway.networking.k8s.io
# kind: Gateway kind: Gateway
# name: http-gateway name: traefik-gateway
# namespace: kube-system namespace: traefik
# hostnames: hostnames:
# - argocd.alexlebens.net - argocd.alexlebens.net
# rules: rules:
# - matches: - matches:
# - path: - path:
# type: PathPrefix type: PathPrefix
# value: / value: /
# backendRefs: backendRefs:
# - group: '' - group: ''
# kind: Service kind: Service
# name: argocd-server name: argocd-server
# port: 80 port: 80
# weight: 100 weight: 100

View File

@@ -0,0 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
name: traefik
labels:
pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/warn: privileged

View File

@@ -4,27 +4,28 @@ traefik:
ingressClass: ingressClass:
enabled: false enabled: false
isDefaultClass: true isDefaultClass: true
experimental:
kubernetesGateway: kubernetesGateway:
enabled: true enabled: true
gateway: gateway:
enabled: true enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-issuer
listeners: listeners:
web: web:
port: 8000 port: 8000
hostname: "*.alexlebens.net" hostname: "*.alexlebens.net"
protocol: HTTP protocol: HTTP
namespacePolicy: All namespacePolicy: All
# websecure: websecure:
# port: 443 port: 8443
# hostname: "*.alexlebens.net" hostname: "*.alexlebens.net"
# protocol: HTTPS protocol: HTTPS
# namespacePolicy: All namespacePolicy: All
# certificateRefs: certificateRefs:
# - kind: Secret - kind: Secret
# name: websecure-gateway-cert name: websecure-gateway-cert
# namespace: traefik namespace: traefik
# mode: Terminate mode: Terminate
ingressRoute: ingressRoute:
dashboard: dashboard:
enabled: true enabled: true
@@ -103,10 +104,6 @@ traefik:
metrics: metrics:
expose: expose:
default: false default: false
tlsStore:
default:
defaultCertificate:
secretName: traefik-secret-tls
service: service:
enabled: true enabled: true
type: LoadBalancer type: LoadBalancer