Skip to content

Commit

Permalink
Configuring no target pods session timeout (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
Razz4780 authored Oct 8, 2024
1 parent a78b6e7 commit 2b07413
Show file tree
Hide file tree
Showing 3 changed files with 8 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.9.1
version: 1.9.2

# 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 @@ -88,6 +88,10 @@ spec:
- name: OPERATOR_AGENT_CONNECTION_TLS
value: "true"
{{- end }}
{{- if .Values.operator.noPodTargetsSessionTimeoutMillis }}
- name: OPERATOR_NO_POD_TARGETS_SESSION_TIMEOUT_MILLIS
value: {{ .Values.operator.noPodTargetsSessionTimeoutMillis | quote }}
{{- end }}
envFrom:
- secretRef:
name: {{ .Values.license.file.secret }}
Expand Down
3 changes: 3 additions & 0 deletions mirrord-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ operator:
## Controls how long (in seconds) a session is allowed to live for.
# maxSessionTimeSeconds: 3600

## Controls how long (in milliseconds) a session can live when there are no pods ready to be targeted.
# noPodTargetsSessionTimeoutMillis: 6000

## This should be enough for around 200~ concurrent sessions.
limits:
cpu: 200m
Expand Down

0 comments on commit 2b07413

Please sign in to comment.