feat: moved the namespace and middleware to a spereate app and added proxmox stuff

This commit is contained in:
2026-11-14 20:42:25 +01:00
parent 36ed5cf464
commit 69a3ed9ffe
9 changed files with 116 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: external-proxmox-labzand
namespace: external
spec:
secretName: external-proxmox-labzand-tls
dnsNames: ["proxmox.labzand.com"]
issuerRef:
name: cloudflare-dns
kind: ClusterIssuer
+25
View File
@@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: external-proxmox
namespace: external
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
spec:
ingressClassName: traefik
rules:
- host: proxmox.labzand.com
https:
paths:
- path: /
pathType: Prefix
backend:
service:
name: proxmox-external
port:
number: 8006
tls:
- hosts:
- proxmox.labzand.com
secretName: external-proxmox-labzand-tls
@@ -0,0 +1,16 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: external-proxmox-redirect
namespace: external
spec:
entryPoints:
- web
routes:
- match: Host(`proxmox.labzand.com`)
kind: Rule
middlewares:
- name: redirect-https
services:
- name: api@internal
kind: TraefikService
+27
View File
@@ -0,0 +1,27 @@
# Service zonder selector: Kubernetes maakt zelf geen Endpoints aan.
# Het Endpoints-object hieronder levert het externe adres (buiten het cluster).
apiVersion: v1
kind: Service
metadata:
name: proxmox-external
namespace: external
spec:
type: ClusterIP
ports:
- name: https
port: 8006
targetPort: 8006
protocol: TCP
---
apiVersion: v1
kind: Endpoints
metadata:
name: proxmox-external
namespace: external
subsets:
- addresses:
- ip: 192.168.2.64
ports:
- name: https
port: 8006
protocol: TCP