Switch from Ingress to IngressRoute

This commit is contained in:
Thor77 2019-10-09 10:47:52 +02:00
parent 6278235eda
commit bf87842242
1 changed files with 30 additions and 13 deletions

View File

@ -11,19 +11,36 @@ spec:
port: 80 port: 80
targetPort: 80 targetPort: 80
--- ---
apiVersion: extensions/v1beta1 apiVersion: traefik.containo.us/v1alpha1
kind: Ingress kind: IngressRoute
metadata: metadata:
name: frontend-ingress name: frontend-ingress-http
namespace: turniere-frontend namespace: turniere-frontend
annotations:
kubernetes.io/ingress.class: traefik
spec: spec:
rules: entryPoints:
- host: frontend01.turnie.re - http
http: routes:
paths: - match: Host(`frontend01.turnie.re`)
- path: / kind: Rule
backend: services:
serviceName: frontend-service - name: frontend-service
servicePort: http port: 80
middlewares:
- name: redirect
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: frontend-ingress-https
namespace: turniere-frontend
spec:
entryPoints:
- https
routes:
- match: Host(`frontend01.turnie.re`)
kind: Rule
services:
- name: frontend-service
port: 80
tls:
certResolver: default