Go to file
Dustin cd920418aa
dustin/dynk8s-provisioner/pipeline/head This commit looks good Details
events: Delete Node on instance termination
The Cluster Autoscaler does not delete the Node resource in Kubernetes
after it terminates an instance:

> It does not delete the Node object from Kubernetes. Cleaning up Node
> objects corresponding to terminated instances is the responsibility of
> the cloud node controller, which can run as part of
> kube-controller-manager or cloud-controller-manager.

On-premises clusters are probably not running the Cloud Controller
Manager, so Node resources are liable to be left behind after a
scale-down event.

To keep unused Node resources from accumulating, the
*dynk8s-provisioner* will now delete the Node resource associated with
an EC2 instance when it receives a state-change event indicating the
instance has been terminated.  To identify the correct Node, it compares
the value of the `providerID` field of each existing node with the
instance ID mentioned in the event.  An exact match is not possible,
since the provider ID includes the availability zone of the instance,
which is not included in the event, however, instances IDs are unique
enough that this "should" never be an issue.
2022-10-11 20:00:24 -05:00
ci tests: Begin integration tests 2022-10-07 07:37:20 -05:00
src events: Delete Node on instance termination 2022-10-11 20:00:24 -05:00
terraform terraform: Begin AWS configuration 2022-09-27 12:58:51 -05:00
tests tests: Begin integration tests 2022-10-07 07:37:20 -05:00
.dockerignore ci: Begin Jenkins build pipeline 2022-09-10 10:30:54 -05:00
.editorconfig ci: Begin Jenkins build pipeline 2022-09-10 10:30:54 -05:00
.gitattributes Initial commit 2022-08-31 21:02:17 -05:00
.gitignore sns: Save messages to disk 2022-09-05 09:45:44 -05:00
Cargo.lock routes: Add kubeadm kubeconfig resource 2022-10-07 06:52:06 -05:00
Cargo.toml routes: Add kubeadm kubeconfig resource 2022-10-07 06:52:06 -05:00
Containerfile container: Rebase on Fedora 35 2022-09-11 13:17:54 -05:00
rustfmt.toml Initial commit 2022-08-31 21:02:17 -05:00