Lets try some ingress

This commit is contained in:
2024-08-04 22:27:05 +01:00
parent 0bd04bdc72
commit 24e90c69a7
5 changed files with 34 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
apiVersion: traefik.io/v1alpha1 apiVersion: traefik.io/v1alpha1
kind: IngressRoute kind: IngressRoute
metadata: metadata:
name: podinfo-host name: podinfo
spec: spec:
entryPoints: entryPoints:
- web - web

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -2,4 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: kube-system namespace: kube-system
resources: resources:
- helmconfig.yaml - ingress.yaml