Skip to content

Commit

Permalink
stack: directly expose smee when relay is disabled (#116)
Browse files Browse the repository at this point in the history
## Description

If dhrelay is disabled, smee needs to be exposed directly via loadbalancer instead.

## Why is this needed

Currently, if dhrelay is disabled, smee can't be accessed.
  • Loading branch information
mergify[bot] authored Oct 24, 2024
2 parents 7b28867 + e824bfc commit 42acdee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tinkerbell/stack/templates/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ spec:
- containerPort: {{ .Values.stack.hook.port }}
protocol: TCP
name: hook-http
{{- if or (not .Values.smee.hostNetwork) (not .Values.smee.deploy) }}
{{- if and (not .Values.smee.hostNetwork) (.Values.smee.deploy) }}
- containerPort: {{ .Values.smee.http.port }}
protocol: TCP
name: {{ .Values.smee.http.name }}
Expand Down Expand Up @@ -192,6 +192,7 @@ spec:
- name: {{ .Values.stack.hook.name }}
port: {{ .Values.stack.hook.port }}
protocol: TCP
{{- if and (not .Values.smee.hostNetwork) (.Values.smee.deploy) }}
- port: {{ .Values.smee.http.port }}
protocol: TCP
name: {{ .Values.smee.http.name }}
Expand All @@ -201,9 +202,12 @@ spec:
- port: {{ .Values.smee.syslog.port }}
protocol: UDP
name: {{ .Values.smee.syslog.name }}
{{- end }}
{{- if .Values.stack.relay.enabled }}
- port: 67
protocol: UDP
name: dhcp
{{- end }}
selector:
{{- with .Values.stack.selector }}
{{- toYaml . | nindent 4 }}
Expand Down

0 comments on commit 42acdee

Please sign in to comment.