From eab5ba062213f2fc5abe458916e4e3f370c912c9 Mon Sep 17 00:00:00 2001 From: Henry Whitaker Date: Sun, 25 Feb 2024 11:53:40 +0000 Subject: [PATCH] feat: added unraid ingress --- argo/cluster/misc/ingext/chart/unraid.yaml | 45 ++++++++++++++++++++++ argo/cluster/misc/ingext/ingext.app.yaml | 22 +++++++++++ 2 files changed, 67 insertions(+) create mode 100644 argo/cluster/misc/ingext/chart/unraid.yaml create mode 100644 argo/cluster/misc/ingext/ingext.app.yaml diff --git a/argo/cluster/misc/ingext/chart/unraid.yaml b/argo/cluster/misc/ingext/chart/unraid.yaml new file mode 100644 index 00000000..d2e546bd --- /dev/null +++ b/argo/cluster/misc/ingext/chart/unraid.yaml @@ -0,0 +1,45 @@ +apiVersion: v1 +kind: Service +metadata: + name: unraid +spec: + ports: + - protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: v1 +kind: Endpoints +metadata: + name: unraid +subsets: + - addresses: + - ip: 10.0.0.9 + ports: + - port: 80 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: unraid + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + kubernetes.io/tls-acme: "true" + nginx.ingress.kubernetes.io/auth-signin: https://auth.plexmox.com + nginx.ingress.kubernetes.io/auth-url: https://auth.plexmox.com/api/verify +spec: + rules: + - host: unraid.plexmox.com + http: + paths: + - backend: + service: + name: unraid + port: + number: 80 + path: / + pathType: ImplementationSpecific + tls: + - hosts: + - unraid.plexmox.com + secretName: unraid-plexmox-com-tls diff --git a/argo/cluster/misc/ingext/ingext.app.yaml b/argo/cluster/misc/ingext/ingext.app.yaml new file mode 100644 index 00000000..ce9431aa --- /dev/null +++ b/argo/cluster/misc/ingext/ingext.app.yaml @@ -0,0 +1,22 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: ingext + namespace: argo + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: default + server: https://kubernetes.default.svc + project: apps + source: + path: argo/cluster/misc/ingext/chart + repoURL: https://gitlab.com/henrywhitaker3/homelab.git + targetRevision: HEAD + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true