48 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
apiVersion: gateway.networking.k8s.io/v1
 | 
						|
kind: HTTPRoute
 | 
						|
metadata:
 | 
						|
  name: http-route-n8n
 | 
						|
  namespace: {{ .Release.Namespace }}
 | 
						|
  labels:
 | 
						|
    app.kubernetes.io/name: http-route-n8n
 | 
						|
    app.kubernetes.io/instance: {{ .Release.Name }}
 | 
						|
    app.kubernetes.io/part-of: {{ .Release.Name }}
 | 
						|
spec:
 | 
						|
  parentRefs:
 | 
						|
    - group: gateway.networking.k8s.io
 | 
						|
      kind: Gateway
 | 
						|
      name: traefik-gateway
 | 
						|
      namespace: traefik
 | 
						|
  hostnames:
 | 
						|
    - n8n.alexlebens.net
 | 
						|
  rules:
 | 
						|
    - matches:
 | 
						|
      - path:
 | 
						|
          type: PathPrefix
 | 
						|
          value: /
 | 
						|
      - path:
 | 
						|
          type: PathPrefix
 | 
						|
          value: /webhook-test/
 | 
						|
      backendRefs:
 | 
						|
        - group: ''
 | 
						|
          kind: Service
 | 
						|
          name: n8n-main
 | 
						|
          port: 80
 | 
						|
          weight: 100
 | 
						|
    - matches:
 | 
						|
      - path:
 | 
						|
          type: PathPrefix
 | 
						|
          value: /webhook/
 | 
						|
      - path:
 | 
						|
          type: PathPrefix
 | 
						|
          value: /webhook-waiting/
 | 
						|
      - path:
 | 
						|
          type: PathPrefix
 | 
						|
          value: /form/
 | 
						|
      backendRefs:
 | 
						|
        - group: ''
 | 
						|
          kind: Service
 | 
						|
          name: n8n-webhook
 | 
						|
          port: 80
 | 
						|
          weight: 100
 |