Added ingress

This commit is contained in:
Marcus Noble 2021-04-01 15:26:32 +01:00
parent 4ebe0bde06
commit a7e0b2a913

View File

@ -111,3 +111,28 @@ spec:
backend: backend:
serviceName: twitter-profile-pic serviceName: twitter-profile-pic
servicePort: 80 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