Skip to content

Instantly share code, notes, and snippets.

@91pavan
Created September 26, 2022 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 91pavan/069440863f46376c86c853647c7d84dd to your computer and use it in GitHub Desktop.
Save 91pavan/069440863f46376c86c853647c7d84dd to your computer and use it in GitHub Desktop.
# deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: n8n
namespace: n8n
labels:
app: n8n
spec:
replicas: 1
selector:
matchLabels:
app: n8n
version: v1
template:
metadata:
labels:
app: n8n
version: v1
annotations:
sidecar.istio.io/inject: "false"
spec:
containers:
- name: n8n
image: docker.io/n8nio/n8n:0.195.5
imagePullPolicy: IfNotPresent
env:
- name: N8N_ENDPOINT_WEBHOOK
value: n8n.example.com
- name: N8N_ENDPOINT_WEBHOOK_TEST
value: n8n.example.com
- name: N8N_ENDPOINT_REST
value: n8n.example.com
- name: N8N_PORT
value: "5678"
- name: N8N_HOST
value: "n8n.example.com"
- name: N8N_PROTOCOL
value: "http"
ports:
- containerPort: 5678
---
# service.yaml
apiVersion: v1
kind: Service
metadata:
name: n8n
namespace: n8n
labels:
app: n8n
spec:
ports:
- port: 5678
name: http
selector:
app: n8n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment