From 8050e7bb5f8b3464ae68d4c4503bbe309a18b419 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 22 Sep 2024 05:48:34 +0100 Subject: [PATCH] add ingress --- infrastructure/kube-sphere/ingress.yml | 21 +++++++++++++++++++ infrastructure/kube-sphere/kustomization.yaml | 1 + 2 files changed, 22 insertions(+) create mode 100644 infrastructure/kube-sphere/ingress.yml diff --git a/infrastructure/kube-sphere/ingress.yml b/infrastructure/kube-sphere/ingress.yml new file mode 100644 index 0000000..5c05894 --- /dev/null +++ b/infrastructure/kube-sphere/ingress.yml @@ -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 diff --git a/infrastructure/kube-sphere/kustomization.yaml b/infrastructure/kube-sphere/kustomization.yaml index 5f50469..922996c 100644 --- a/infrastructure/kube-sphere/kustomization.yaml +++ b/infrastructure/kube-sphere/kustomization.yaml @@ -6,3 +6,4 @@ resources: - namespace.yaml - config.yaml - installer.yaml + - ingress.yaml