You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| CLUSTER_NAME | Name of the eks-cluster, used in place of `AUTODISCOVERRY_TAGS` and `AUTO_SCALING_GROUP_NAMES`. Checks for `k8s.io/cluster-autoscaler/<CLUSTER_NAME>: owned` and `k8s.io/cluster-autoscaler/enabled: true` tags on ASG | yes |`""`|
46
-
| AUTODISCOVERY_TAGS | Comma separated key value string with tags to autodiscover ASGs, used in place of `CLUSTER_NAME` and `AUTO_SCALING_GROUP_NAMES`. | yes |`""`|
47
-
| AUTO_SCALING_GROUP_NAMES | Comma-separated list of ASGs, CLUSTER_NAME takes priority. | yes |`""`|
48
-
| IGNORE_DAEMON_SETS | Whether to ignore DaemonSets when draining the nodes | no |`true`|
49
-
| DELETE_EMPTY_DIR_DATA | Whether to delete empty dir data when draining the nodes | no |`true`|
50
-
| AWS_REGION | Self-explanatory | no |`us-west-2`|
51
-
| ENVIRONMENT | If set to `dev`, will try to create the Kubernetes client using your local kubeconfig. Any other values will use the in-cluster configuration | no |`""`|
52
-
| EXECUTION_INTERVAL | Duration to sleep between each execution in seconds | no |`20`|
53
-
| EXECUTION_TIMEOUT | Maximum execution duration before timing out in seconds | no |`900`|
54
-
| METRICS_PORT | Port to bind metrics server to | no |`8080`|
55
-
| METRICS | Expose metrics in Promtheus format at `:${METRICS_PORT}/metrics`| no |`""`|
| CLUSTER_NAME | Name of the eks-cluster, used in place of `AUTODISCOVERRY_TAGS` and `AUTO_SCALING_GROUP_NAMES`. Checks for `k8s.io/cluster-autoscaler/<CLUSTER_NAME>: owned` and `k8s.io/cluster-autoscaler/enabled: true` tags on ASG | yes |`""`|
46
+
| AUTODISCOVERY_TAGS | Comma separated key value string with tags to autodiscover ASGs, used in place of `CLUSTER_NAME` and `AUTO_SCALING_GROUP_NAMES`. | yes |`""`|
47
+
| AUTO_SCALING_GROUP_NAMES | Comma-separated list of ASGs, CLUSTER_NAME takes priority. | yes |`""`|
48
+
| IGNORE_DAEMON_SETS | Whether to ignore DaemonSets when draining the nodes | no |`true`|
49
+
| DELETE_EMPTY_DIR_DATA | Whether to delete empty dir data when draining the nodes | no |`true`|
50
+
| AWS_REGION | Self-explanatory | no |`us-west-2`|
51
+
| ENVIRONMENT | If set to `dev`, will try to create the Kubernetes client using your local kubeconfig. Any other values will use the in-cluster configuration | no |`""`|
52
+
| EXECUTION_INTERVAL | Duration to sleep between each execution in seconds | no |`20`|
53
+
| EXECUTION_TIMEOUT | Maximum execution duration before timing out in seconds | no |`900`|
54
+
| POD_TERMINATION_GRACE_PERIOD | How long to wait for a pod to terminate in seconds; 0 means "delete immediately"; set to a negative value to use the pod's terminationGracePeriodSeconds. | no |`-1`|
55
+
| METRICS_PORT | Port to bind metrics server to | no |`8080`|
56
+
| METRICS | Expose metrics in Promtheus format at `:${METRICS_PORT}/metrics`| no |`""`|
log.Printf("[%s][%s] Skipping because ran into error while draining node: %v", aws.StringValue(autoScalingGroup.AutoScalingGroupName), aws.StringValue(outdatedInstance.InstanceId), err.Error())
0 commit comments