feat: moved the namespace and middleware to a spereate app and added proxmox stuff
This commit is contained in:
@@ -15,4 +15,4 @@ spec:
|
||||
syncPolicy:
|
||||
automated: {prune: true, selfHeal: true}
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- CreateNamespace=false
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: external-proxmox
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://gitea.zb-kw.duckdns.org/willemjan/cluster.git
|
||||
targetRevision: main
|
||||
path: services/external-proxmox
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: external
|
||||
syncPolicy:
|
||||
automated: {prune: true, selfHeal: true}
|
||||
syncOptions:
|
||||
- CreateNamespace=false
|
||||
@@ -0,0 +1,18 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: external
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://gitea.zb-kw.duckdns.org/willemjan/cluster.git
|
||||
targetRevision: main
|
||||
path: services/external
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: external
|
||||
syncPolicy:
|
||||
automated: {prune: true, selfHeal: true}
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user