Merge pull request #50 from turniere/ticket/TURNIERE-265

Migrate to Traefik v2
This commit is contained in:
Thor77 2019-10-09 11:12:37 +02:00 committed by GitHub
commit 29051825b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 13 deletions

View File

@ -0,0 +1,13 @@
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: gitlab-deploy-rb
namespace: turniere-frontend
subjects:
- kind: ServiceAccount
name: gitlab-deploy
namespace: gitlab
roleRef:
kind: ClusterRole
name: gitlab-deploy-role
apiGroup: rbac.authorization.k8s.io

View File

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