Skip to content

Commit

Permalink
Config option for agent port (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
Razz4780 authored Feb 3, 2025
1 parent 2aea69d commit b2d1d48
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mirrord-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.18.0
version: 1.19.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 4 additions & 0 deletions mirrord-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ spec:
- name: OPERATOR_AGENT_CONNECTION_TLS
value: "true"
{{- end }}
{{- if .Values.agent.port }}
- name: OPERATOR_AGENT_PORT
value: {{ .Values.agent.port | quote }}
{{- end }}
{{- if .Values.operator.noPodTargetsSessionTimeoutMillis }}
- name: OPERATOR_NO_POD_TARGETS_SESSION_TIMEOUT_MILLIS
value: {{ .Values.operator.noPodTargetsSessionTimeoutMillis | quote }}
Expand Down
5 changes: 5 additions & 0 deletions mirrord-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ agent:
# If you want the operator to secure agent connections with TLS, set this value to true.
# This option requires agent version at least 3.97.0.
tls: false

# If you want the agents to accept operator connections on some predefined port,
# you can set it here. If you don't set anything, each agent will be assigned with a random high port.
# port: 9999

## use this if you want to add settings that aren't covered by the values.yaml
## see possible settings here: https://mirrord.dev/docs/reference/configuration/#root-agent
extraConfig:
Expand Down

0 comments on commit b2d1d48

Please sign in to comment.