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"