Skip to content

Commit

Permalink
make queue-processor mode replicas configurable (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwagner5 authored May 28, 2021
1 parent 8eceda9 commit c477c67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/helm/aws-node-termination-handler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ Parameter | Description | Default
`checkASGTagBeforeDraining` | If true, check that the instance is tagged with "aws-node-termination-handler/managed" as the key before draining the node | `true`
`managedAsgTag` | The tag to ensure is on a node if checkASGTagBeforeDraining is true | `aws-node-termination-handler/managed`
`workers` | The maximum amount of parallel event processors | `10`
`replicas` | The number of replicas in the NTH deployment when using queue-processor mode (NOTE: increasing replicas may cause duplicate webhooks since NTH pods are stateless)
| `1`

### AWS Node Termination Handler - IMDS Mode Configuration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
{{ include "aws-node-termination-handler.labels" . | indent 4 }}
spec:
replicas: 1
replicas: {{ .Values.replicas }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "aws-node-termination-handler.name" . }}
Expand Down
3 changes: 3 additions & 0 deletions config/helm/aws-node-termination-handler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,6 @@ useHostNetwork: true

# The maximal amount of parallel event processors to handle concurrent events
workers: 10

# The number of replicas in the NTH deployment when using queue-processor mode (NOTE: increasing this may cause duplicate webhooks since NTH pods are stateless)
replicas: 1

0 comments on commit c477c67

Please sign in to comment.