Configure public site ingress

This commit is contained in:
2026-06-13 14:36:58 +08:00
parent 4f12a354f6
commit f27c910c93
3 changed files with 548 additions and 0 deletions
+50
View File
@@ -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