Skip to content

Commit c477c67

Browse files
authored
make queue-processor mode replicas configurable (#443)
1 parent 8eceda9 commit c477c67

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

config/helm/aws-node-termination-handler/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ Parameter | Description | Default
9898
`checkASGTagBeforeDraining` | If true, check that the instance is tagged with "aws-node-termination-handler/managed" as the key before draining the node | `true`
9999
`managedAsgTag` | The tag to ensure is on a node if checkASGTagBeforeDraining is true | `aws-node-termination-handler/managed`
100100
`workers` | The maximum amount of parallel event processors | `10`
101+
`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)
102+
| `1`
101103

102104
### AWS Node Termination Handler - IMDS Mode Configuration
103105

config/helm/aws-node-termination-handler/templates/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
labels:
88
{{ include "aws-node-termination-handler.labels" . | indent 4 }}
99
spec:
10-
replicas: 1
10+
replicas: {{ .Values.replicas }}
1111
selector:
1212
matchLabels:
1313
app.kubernetes.io/name: {{ include "aws-node-termination-handler.name" . }}

config/helm/aws-node-termination-handler/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,6 @@ useHostNetwork: true
216216

217217
# The maximal amount of parallel event processors to handle concurrent events
218218
workers: 10
219+
220+
# 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)
221+
replicas: 1

0 commit comments

Comments
 (0)