Skip to content

Commit

Permalink
hostNetwork flag for webhook. Allows deployment in EKS clusters that …
Browse files Browse the repository at this point in the history
…have a custom CNI (#888)

Co-authored-by: Tiago Posse <tiago.posse@hi.health>
  • Loading branch information
tiagoposse and Tiago Posse committed Dec 1, 2021
1 parent 065f69a commit 2efa750
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/karpenter/templates/webhook/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
- key: karpenter.sh/provisioner-name
operator: DoesNotExist
{{- end }}
{{- if .Values.webhook.hostNetwork }}
hostNetwork: true
{{- end }}
{{- with .Values.webhook.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/karpenter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ webhook:
tolerations: []
affinity: {}
image: "public.ecr.aws/karpenter/webhook:v0.5.0@sha256:bc639160d55a15e1f9362a06d42e4133e692d3c81e96d87e2672bd9c53c98958"
# set to true if using custom CNI on EKS
hostNetwork: false

0 comments on commit 2efa750

Please sign in to comment.