Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ main:
service:
type: NodePort
port: 5678
nodePort: 30678 # available range is 30000-32767
```

# Values File
Expand Down
7 changes: 7 additions & 0 deletions charts/n8n/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@ metadata:
spec:
type: {{ default "ClusterIP_" .Values.main.service.type }}
ports:
{{- if eq .Values.main.service.type "NodePort" }}
- port: {{ default 80 .Values.main.service.port }}
targetPort: {{ default 80 .Values.main.service.port }}
nodePort: {{ default 30080 .Values.main.service.nodePort }}
name: http
{{- else }}
- port: {{ default 80 .Values.main.service.port }}
targetPort: http
protocol: TCP
name: http
{{- end }}
selector:
{{- include "n8n.selectorLabels" . | nindent 4 }}
app.kubernetes.io/type: master
Expand Down
1 change: 1 addition & 0 deletions examples/values_small.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ main:
service:
type: NodePort
port: 5678
nodePort: 30678 # available range is 30000-32767
Loading