From 2d1497141d65ef26383ccd9eecd0e9db9e642980 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 14 Dec 2025 07:33:12 -0600 Subject: [PATCH] update --- dmz/internalproxy/templates/octopus.yaml | 41 ---------------------- dmz/internalproxy/templates/portainer.yaml | 36 ++----------------- infra/portainer/templates/ingress.yaml | 30 ++++++++++++++++ 3 files changed, 33 insertions(+), 74 deletions(-) delete mode 100644 dmz/internalproxy/templates/octopus.yaml create mode 100644 infra/portainer/templates/ingress.yaml diff --git a/dmz/internalproxy/templates/octopus.yaml b/dmz/internalproxy/templates/octopus.yaml deleted file mode 100644 index 084200c..0000000 --- a/dmz/internalproxy/templates/octopus.yaml +++ /dev/null @@ -1,41 +0,0 @@ -#apiVersion: traefik.io/v1alpha1 -#kind: IngressRoute -#metadata: -# name: octopus-ingress -#spec: -# entryPoints: -# - websecure -# routes: -# - match: Host(`octopus.durp.info`) && PathPrefix(`/`) -# kind: Rule -# services: -# - name: infra-cluster -# port: 443 -# tls: -# secretName: octopus-tls -# -#--- -#apiVersion: cert-manager.io/v1 -#kind: Certificate -#metadata: -# name: octopus-tls -#spec: -# issuerRef: -# name: letsencrypt-production -# kind: ClusterIssuer -# secretName: octopus-tls -# commonName: "octopus.durp.info" -# dnsNames: -# - "octopus.durp.info" -# -#--- -#kind: Service -#apiVersion: v1 -#metadata: -# name: octopus-external-dns -# annotations: -# external-dns.alpha.kubernetes.io/hostname: octopus.durp.info -#spec: -# type: ExternalName -# externalName: durp.info -# \ No newline at end of file diff --git a/dmz/internalproxy/templates/portainer.yaml b/dmz/internalproxy/templates/portainer.yaml index c27e0ff..554e052 100644 --- a/dmz/internalproxy/templates/portainer.yaml +++ b/dmz/internalproxy/templates/portainer.yaml @@ -1,32 +1,3 @@ -apiVersion: v1 -kind: Service -metadata: - name: portainer -spec: - ports: - - name: app - port: 9443 - protocol: TCP - targetPort: 9443 - clusterIP: None - type: ClusterIP - ---- - -apiVersion: v1 -kind: Endpoints -metadata: - name: portainer -subsets: -- addresses: - - ip: 192.168.20.104 - ports: - - name: app - port: 9443 - protocol: TCP - ---- - apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: @@ -41,9 +12,8 @@ spec: # namespace: traefik kind: Rule services: - - name: portainer - port: 9443 - scheme: https + - name: infra-cluster + port: 443 tls: secretName: portainer-tls @@ -60,4 +30,4 @@ spec: kind: ClusterIssuer commonName: "portainer.internal.durp.info" dnsNames: - - "portainer.internal.durp.info" + - "portainer.internal.durp.info" diff --git a/infra/portainer/templates/ingress.yaml b/infra/portainer/templates/ingress.yaml new file mode 100644 index 0000000..ed213cb --- /dev/null +++ b/infra/portainer/templates/ingress.yaml @@ -0,0 +1,30 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: portainer-ingress +spec: + entryPoints: + - websecure + routes: + - match: Host(`portainer.durp.info`) && PathPrefix(`/`) + kind: Rule + services: + - name: portainer + port: 9443 + tls: + secretName: portainer-tls + +--- + +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: portainer-tls +spec: + secretName: portainer-tls + issuerRef: + name: vault-issuer + kind: ClusterIssuer + commonName: "portainer.internal.durp.info" + dnsNames: + - "portainer.internal.durp.info"