Describe the problem/error/question
Hi there n8n team! I have set up n8n within kubernetes and wanted to make it work with subpath but it is not working. What I mean is that n8n is working with example.com but it is not working with example.com/n8n? is there anyone who can help me to configure it on subpath? is it possible?
What is the error message (if any)?
Please share your workflow
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: n8n
component: deployment
name: n8n-deployment
namespace: n8n-polaris
spec:
replicas: 1
selector:
matchLabels:
app: n8n
component: deployment
template:
metadata:
labels:
app: n8n
component: deployment
spec:
containers:
- name: n8n # Container name is missing in your original YAML.
envFrom:
- configMapRef:
name: n8n-configmap
- secretRef:
name: n8n-secrets
env:
- name: N8N_HOST
value: dev.120428826052.realhandsonlabs.net/n8n
- name: N8N_PATH
value: /n8n/
image: “n8nio/n8n:1.3.1”
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /healthz
port: 5678
scheme: HTTP
# name: n8n
ports:
- containerPort: 5678
name: http
protocol: TCP
readinessProbe:
httpGet:
path: /healthz
port: 5678
scheme: HTTP
resources:
limits:
cpu: “400m”
memory: “400Mi”
requests:
cpu: “400m”
memory: “400Mi”
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: n8n-service-ing
namespace: n8n-polaris
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/listen-ports: ‘[{“HTTP”:5678},{“HTTP”:8080},{“HTTPS”:443}]’
alb.ingress.kubernetes.io/actions.ssl-redirect: ‘{“Type”: “redirect”, “RedirectConfig”: { “Protocol”: “HTTPS”, “Port”: “443”, “StatusCode”: “HTTP_301”}}’
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-1:120428826052:certificate/xxxxxxxx
alb.ingress.kubernetes.io/healthcheck-protocol: HTTP
alb.ingress.kubernetes.io/healthcheck-path: /healthz
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/group.name: n8n-polaris
spec:
rules:
- host: example.com
- http:
paths:
- path: /n8n
pathType: Prefix
backend:
service:
name: n8n-service-lb
port:
number: 80
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: