From a64a7470b846dfd5efa6aa4953dd818f7205ee4f Mon Sep 17 00:00:00 2001 From: developerdurp Date: Tue, 21 Nov 2023 05:57:06 -0600 Subject: [PATCH] update --- octopus-tentacle/templates/deployment.yaml | 2 ++ octopus-tentacle/templates/ingress.yaml | 30 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 octopus-tentacle/templates/ingress.yaml diff --git a/octopus-tentacle/templates/deployment.yaml b/octopus-tentacle/templates/deployment.yaml index 8763442..515b28c 100644 --- a/octopus-tentacle/templates/deployment.yaml +++ b/octopus-tentacle/templates/deployment.yaml @@ -34,6 +34,8 @@ spec: value: "https://octopus.internal.durp.info" - name: TargetRole value: "k3s" + - name: PublicHostNameConfiguration + value: "octopus-tentacle.internal.durp.info" - name: ServerApiKey valueFrom: secretKeyRef: diff --git a/octopus-tentacle/templates/ingress.yaml b/octopus-tentacle/templates/ingress.yaml new file mode 100644 index 0000000..85160b7 --- /dev/null +++ b/octopus-tentacle/templates/ingress.yaml @@ -0,0 +1,30 @@ +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: octopus-tentacle-ingress +spec: + entryPoints: + - websecure + routes: + - match: Host(`octopus-tentacle.internal.durp.info`) && PathPrefix(`/`) + kind: Rule + services: + - name: octopus-tentacle + port: 10933 + tls: + secretName: octopus-tentacle-tls + +--- + +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: octopus-tentacle-tls +spec: + secretName: octopus-tentacle-tls + issuerRef: + name: letsencrypt-production + kind: ClusterIssuer + commonName: "octopus-tentacle.internal.durp.info" + dnsNames: + - "octopus-tentacle.internal.durp.info"