Skip to content

Commit de7e14a

Browse files
committed
feat: expose radsec-agent agent-check port via NodePort service
Adds agentCheck.nodePort to values and the freeradius Service so HAProxy can reach the agent-check TCP listener from outside the cluster.
1 parent 9d59c63 commit de7e14a

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

chart/templates/freeradius-service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,10 @@ spec:
2727
name: status
2828
nodePort: {{ .Values.freeradius.statusServer.nodePort }}
2929
{{- end }}
30+
{{- if and .Values.freeradius.agentCheck.enabled .Values.freeradius.agentCheck.nodePort }}
31+
- port: {{ .Values.freeradius.agentCheck.port }}
32+
targetPort: agent-check
33+
name: agent-check
34+
nodePort: {{ .Values.freeradius.agentCheck.nodePort }}
35+
{{- end }}
3036
{{- end }}

chart/values-dev.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ freeradius:
3131
enabled: true
3232
clientCIDR: "0.0.0.0/0"
3333
nodePort: 31181
34+
agentCheck:
35+
nodePort: 32084
3436
securityContext:
3537
runAsNonRoot: true
3638
runAsUser: 101

chart/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ freeradius:
9696
# making raw RadSec connections that produce "unknown client" errors.
9797
agentCheck:
9898
enabled: true
99-
port: 2084 # must match agent-port in the HAProxy backend config
99+
port: 2084 # must match agent-port in the HAProxy backend config
100+
nodePort: null # set to expose agent-check port via NodePort (required for HAProxy to reach it)
100101
securityContext:
101102
runAsNonRoot: true
102103
allowPrivilegeEscalation: false

0 commit comments

Comments
 (0)