diff --git a/apps/podinfo/ingress.yaml b/apps/podinfo/ingress.yaml index c18af20..26b5344 100644 --- a/apps/podinfo/ingress.yaml +++ b/apps/podinfo/ingress.yaml @@ -1,7 +1,7 @@ apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: - name: podinfo-host + name: podinfo spec: entryPoints: - web diff --git a/clusters/kairos/longhorn/ingress.yaml b/clusters/kairos/longhorn/ingress.yaml new file mode 100644 index 0000000..1020ccd --- /dev/null +++ b/clusters/kairos/longhorn/ingress.yaml @@ -0,0 +1,16 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: longhorn +spec: + entryPoints: + - web + routes: + - match: Host(`longhorn.k3s`) + kind: Rule + services: + - name: longhorn-frontend + namespace: longhorn-system + nativeLB: true + kind: Service + port: 80 \ No newline at end of file diff --git a/clusters/kairos/traefik/helmconfig.yaml b/clusters/kairos/traefik/helmconfig.yaml deleted file mode 100644 index 5bc0b0f..0000000 --- a/clusters/kairos/traefik/helmconfig.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: helm.cattle.io/v1 -kind: HelmChartConfig -metadata: - name: traefik - namespace: kube-system -spec: - valuesContent: |- - additionalArguments: - - "--api" - - "--api.dashboard=true" - - "--api.insecure=true" - ports: - traefik: - expose: true - providers: - kubernetesCRD: - allowCrossNamespace: true \ No newline at end of file diff --git a/clusters/kairos/traefik/ingress.yaml b/clusters/kairos/traefik/ingress.yaml new file mode 100644 index 0000000..388cfe0 --- /dev/null +++ b/clusters/kairos/traefik/ingress.yaml @@ -0,0 +1,16 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: traefik +spec: + entryPoints: + - web + routes: + - match: Host(`traefik.k3s`) + kind: Rule + services: + - name: traefik + namespace: kube-system + nativeLB: true + kind: Service + port: 9000 \ No newline at end of file diff --git a/clusters/kairos/traefik/kustomization.yaml b/clusters/kairos/traefik/kustomization.yaml index 4e4c0dc..0f2d995 100644 --- a/clusters/kairos/traefik/kustomization.yaml +++ b/clusters/kairos/traefik/kustomization.yaml @@ -2,4 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: kube-system resources: -- helmconfig.yaml \ No newline at end of file +- ingress.yaml \ No newline at end of file