Skip to content

Commit

Permalink
Add support for nodePort
Browse files Browse the repository at this point in the history
  • Loading branch information
morganchristiansson committed Apr 4, 2021
1 parent 30326ae commit 9313537
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions charts/k8s-gateway/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ metadata:
spec:
selector:
{{- include "k8s-gateway.selectorLabels" . | nindent 6 }}
type: {{ .Values.service.type }}
ports:
- {port: 53, protocol: UDP, name: udp-53}
type: LoadBalancer
- port: {{ .Values.service.port }}
protocol: UDP
name: udp-53
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/k8s-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ serviceAccount:
create: true
name:

service:
type: LoadBalancer
port: 53

nodeSelector: {}

affinity: {}

0 comments on commit 9313537

Please sign in to comment.