I create a fresh N8N Deployment on Kubernetes. Traffic enters via K8 Loadbalancer (MetalLB) with SSL offloading at n8n.example.com (Port 443), forwards via ISTIO Ingress-Gateway at Port 80 to N8N-Service and from there via Port 5678 to N8N Pod:
What is the error message (if any)?
There is no error in the log, but google oAuth for connecting Google Drive returns “Error 400: redirect_uri_mismatch” and blocks access.
OAuth Redirect URL is:
https://n8n.example.com/rest/oauth2-credential/callback
it also returns a page, when opened manually:
Kubernetes Deployment
apiVersion: v1
kind: Service
metadata:
name: n8n
namespace: n8n
labels:
app: n8n
spec:
type: ClusterIP
ports:
- name: http
port: 80
targetPort: 5678
selector:
app.kubernetes.io/name: n8n
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: n8n
namespace: n8n
spec:
revisionHistoryLimit: 2
selector:
matchLabels:
app.kubernetes.io/name: n8n
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: n8n
spec:
containers:
- name: n8n
image: docker.n8n.io/n8nio/n8n:latest
imagePullPolicy: "Always"
env:
- name: N8N_LOG_LEVEL
value: "debug"
- name: N8N_EDITOR_BASE_URL
value: "https://n8n.example.com/"
- name: VUE_APP_URL_BASE_API
value: "https://n8n.example.com/"
- name: WEBHOOK_TUNNEL_URL
value: "https://n8n.example.com/"
- name: N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS
value: "true"
- name: N8N_HIRING_BANNER_ENABLED
value: "false"
- name: N8N_PROTOCOL
value: "https"
- name: N8N_HOST
value: "n8n.example.com"
- name: N8N_PORT
value: "5678"
- name: DB_TYPE
value: "postgresdb"
- name: DB_POSTGRESDB_DATABASE
value: "n8n"
- name: DB_POSTGRESDB_HOST
value: "postgres.postgresql.svc.cluster.local"
- name: DB_POSTGRESDB_PORT
value: "5432"
- name: DB_POSTGRESDB_USER
value: "*******"
- name: DB_POSTGRESDB_PASSWORD
value: "*******"
ports:
- name: http
containerPort: 5678
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 100m
memory: 128Mi
volumeMounts:
- mountPath: "/home/node/.n8n"
name: n8n-pvc
volumes:
- name: n8n-pvc
Share the output returned by the last node
no errors in log