Skip to content

Commit

Permalink
Allow controller/webhook replicas to be set using helm values (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordiprats committed Dec 2, 2021
1 parent a156e6d commit 4f3852c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/karpenter/templates/controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
name: karpenter-controller
namespace: {{ .Release.Namespace }}
spec:
replicas: 1
replicas: {{ .Values.controller.replicas }}
strategy:
type: Recreate
selector:
Expand Down
2 changes: 1 addition & 1 deletion charts/karpenter/templates/webhook/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
name: karpenter-webhook
namespace: {{ .Release.Namespace }}
spec:
replicas: 1
replicas: {{ .Values.webhook.replicas }}
strategy:
type: Recreate
selector:
Expand Down
2 changes: 2 additions & 0 deletions charts/karpenter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ controller:
image: "public.ecr.aws/karpenter/controller:v0.5.0@sha256:76fab69a5a2b1f5736c8beea349e60174d8903b26b65c4cc5009c6528f9aea72"
clusterName: ""
clusterEndpoint: ""
replicas: 1
webhook:
env: []
nodeSelector: {}
Expand All @@ -22,3 +23,4 @@ webhook:
image: "public.ecr.aws/karpenter/webhook:v0.5.0@sha256:bc639160d55a15e1f9362a06d42e4133e692d3c81e96d87e2672bd9c53c98958"
# set to true if using custom CNI on EKS
hostNetwork: false
replicas: 1

0 comments on commit 4f3852c

Please sign in to comment.