Configure public site ingress
This commit is contained in:
@@ -44,3 +44,53 @@ spec:
|
||||
- ops.shengxintui.com
|
||||
- api.shengxintui.com
|
||||
secretName: shengxintui-com-tls
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: redirect-to-https
|
||||
spec:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
permanent: true
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: geo-rankly-web-http
|
||||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.middlewares: geo-rankly-redirect-to-https@kubernetescrd
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: web
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
rules:
|
||||
- host: saas.shengxintui.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: frontend
|
||||
port:
|
||||
number: 80
|
||||
- host: ops.shengxintui.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: ops-web
|
||||
port:
|
||||
number: 80
|
||||
- host: api.shengxintui.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: tenant-api
|
||||
port:
|
||||
number: 8080
|
||||
|
||||
Reference in New Issue
Block a user