From f0252b7791cc1b4d5c0fde02308a5aefe0680ff4 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Thu, 20 Mar 2025 05:50:17 -0500 Subject: [PATCH] update --- dmz/internalproxy/templates/unifi.yaml | 63 ++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 dmz/internalproxy/templates/unifi.yaml diff --git a/dmz/internalproxy/templates/unifi.yaml b/dmz/internalproxy/templates/unifi.yaml new file mode 100644 index 0000000..d33a8af --- /dev/null +++ b/dmz/internalproxy/templates/unifi.yaml @@ -0,0 +1,63 @@ +apiVersion: v1 +kind: Service +metadata: + name: unifi +spec: + ports: + - name: app + port: 443 + protocol: TCP + targetPort: 443 + clusterIP: None + type: ClusterIP + +--- + +apiVersion: v1 +kind: Endpoints +metadata: + name: unifi +subsets: + - addresses: + - ip: 192.168.98.1 + ports: + - name: app + port: 443 + protocol: TCP + +--- + +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: unifi-ingress +spec: + entryPoints: + - websecure + routes: + - match: Host(`unifi.internal.durp.info`) && PathPrefix(`/`) + middlewares: + - name: whitelist + namespace: traefik + kind: Rule + services: + - name: unifi + port: 443 + scheme: https + tls: + secretName: unifi-tls + +--- + +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: unifi-tls +spec: + secretName: unifi-tls + issuerRef: + name: vault-issuer + kind: ClusterIssuer + commonName: "unifi.internal.durp.info" + dnsNames: + - "unifi.internal.durp.info"