add ingress

This commit is contained in:
Lee 2024-09-22 05:48:34 +01:00
parent ca98778d28
commit 8050e7bb5f
2 changed files with 22 additions and 0 deletions

@ -0,0 +1,21 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: kubesphere-external-ingress
namespace: kube-system
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`kubesphere.local.fascinated.cc`)
kind: Rule
middlewares:
- name: default-headers
namespace: traefik
services:
- name: ks-console
port: 80
tls:
secretName: fascinated-cc

@ -6,3 +6,4 @@ resources:
- namespace.yaml - namespace.yaml
- config.yaml - config.yaml
- installer.yaml - installer.yaml
- ingress.yaml