From a7e0b2a91356813578ff07d7686170437ef2333d Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Thu, 1 Apr 2021 15:26:32 +0100 Subject: [PATCH] Added ingress --- manifests/twitter-profile-pic.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/manifests/twitter-profile-pic.yaml b/manifests/twitter-profile-pic.yaml index 7c64f33..21ade65 100644 --- a/manifests/twitter-profile-pic.yaml +++ b/manifests/twitter-profile-pic.yaml @@ -111,3 +111,28 @@ spec: backend: serviceName: twitter-profile-pic servicePort: 80 + +--- +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: twitter-profile-pic-cluster-fun + namespace: twitter-profile-pic + annotations: + cert-manager.io/cluster-issuer: letsencrypt + traefik.ingress.kubernetes.io/frontend-entry-points: http,https + traefik.ingress.kubernetes.io/redirect-entry-point: https + traefik.ingress.kubernetes.io/redirect-permanent: "true" +spec: + tls: + - hosts: + - twitter-profile-pic.cluster.fun + secretName: twitter-profile-pic-cluster-fun-ingress + rules: + - host: twitter-profile-pic.cluster.fun + http: + paths: + - path: / + backend: + serviceName: twitter-profile-pic + servicePort: 80