terraform-kubernetes-ebs-csi-driver icon indicating copy to clipboard operation
terraform-kubernetes-ebs-csi-driver copied to clipboard

Configurable pre-stop hooks for node daemonset

Open Rakoth opened this issue 1 year ago • 0 comments

Here are a few changes needed to deal with volume multi-attach error when using karpenter with ebs-csi-driver in eks cluster.

  1. Actualize node cluster-role permissions
  2. Allow empty tolerations for node daemonset, so karpenter will evict it on node shutdown
  3. Make preStop hooks for node containers configurable. Firstly, I added aws-ebs-csi-driver pre-stop-hook by deafult in ebs-plugin container, secondly it is now possible to make sleep pre-stop hook for node-driver-registrar container to give time for others pods to unmount volumes. I did not add this pre-stop hook in defaults because default image is distroless and does not have sleep available (also for this reason current pre-stop hook is always failing)

Rakoth avatar May 20 '24 07:05 Rakoth