Skip to content

Commit

Permalink
Merge pull request #30 from 7knot/feat/can-be-set-timeout-of-drain-po…
Browse files Browse the repository at this point in the history
…ds-and-rolling-update-deployment

feat: can be set timeout for draining pods and rolling update of deployment.
  • Loading branch information
yamagai authored Mar 17, 2022
2 parents c29041b + 885b4fa commit 575dba1
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/panope/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: 0.5.2
version: 0.5.3

# 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
2 changes: 2 additions & 0 deletions charts/panope/templates/agent/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ data:
MAX_PROCESSED_NODE_COUNT: {{ .Values.agent.configMap.maxProcessedNodeCount | quote }}
HEALTH_CHECK_PORT: {{ .Values.agent.configMap.healthCheckPort | quote }}
METRICS_PORT: {{ .Values.agent.configMap.metricsPort | quote }}
ROLLING_UPDATE_TIMEOUT_SEC: {{ .Values.agent.configMap.rollingUpdateTimeoutSec | quote }}
DRAINING_TIMEOUT_SEC: {{ .Values.agent.configMap.drainingTimeoutSec | quote }}
44 changes: 40 additions & 4 deletions charts/panope/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ agent:
annotations: {}

nats:
# configure the NATS credentials for agent to publish/subscribe
credentials:
# credentials: |
# -----BEGIN NATS USER JWT-----
Expand All @@ -116,16 +117,38 @@ agent:
# annotations to add to the config map
annotations: {}

# configure the NATS URI
# currently, the only supported URI schema is `wss`
natsUri: "wss://nats.panope.net:443"

# configure NATS subject for agent to publish
agentSubject: ""

# configure NATS subject for agent to subscribe
controllerSubject: ""
healthCheckPort: "4444"
metricsPort: "2112"

# configure the health check port
# if not set, default value is 4444
healthCheckPort:

# configure the metrics port
# if not set, default value is 2112
metricsPort:

# configure the maximum number of nodes in the cluster as a percentage
clusterNodeMaxSurge: "25%"

# configure the maximum number of nodes to be processed at the same time (cordoned or drained, etc.)
maxProcessedNodeCount: "5"

# configure the timeout for rolling update of deployment
# if not set, default value is 180
rollingUpdateTimeoutSec:

# configure the timeout for draining pods
# if not set, default value is 180
drainingTimeoutSec:

serviceAccount:
name: ""
# labels to add to the service account
Expand Down Expand Up @@ -210,6 +233,7 @@ observer:
annotations: {}

nats:
# configure the NATS credentials for agent to publish/subscribe
credentials:
# credentials: |
# -----BEGIN NATS USER JWT-----
Expand All @@ -231,11 +255,23 @@ observer:
# annotations to add to the config map
annotations: {}

# configure NATS subject for observer to publish
observerSubject: ""

# configure NATS subject for observer to subscribe
controllerSubject: ""

# configure the NATS URI
# currently, the only supported URI schema is `wss`
natsUri: "wss://nats.panope.net:443"
healthCheckPort: "4444"
metricsPort: "2112"

# configure the health check port
# if not set, default value is 4444
healthCheckPort:

# configure the metrics port
# if not set, default value is 2112
metricsPort:

livenessProbe:
failureThreshold: 5
Expand Down

0 comments on commit 575dba1

Please sign in to comment.