Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Identify the DaemonSet name.
    Run the following command to find the DaemonSet associated with the AWS Node Termination Handler:

    Code Block
    languagebash
    kubectl -n kube-system get daemonset | grep aws-node-termination-handler

    Example output:

    Code Block
    languagebash
    aws-node-termination-handler-exodemo   4         4         4       4            4           kubernetes.io/os=linux   11d
  • Edit the DaemonSet.
    Use the following command to edit the DaemonSet:

    Code Block
    languagebash
    kubectl -n kube-system edit daemonset aws-node-termination-handler-example
  • Update the configuration.
    In the editor, search for the parameter ENABLE_SPOT_INTERRUPTION_DRAINING and ENABLE_REBALANCE_DRAINING, and set it to false:

    Code Block
    languagebash
    - name: ENABLE_SPOT_INTERRUPTION_DRAINING
      value: "false"
    - name: ENABLE_REBALANCE_DRAINING
      value: "false"

...