Created
September 26, 2022 13:57
-
-
Save 91pavan/069440863f46376c86c853647c7d84dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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