Coder Social home page Coder Social logo

Comments (11)

remche avatar remche commented on June 12, 2024

As stated in documentation, you need to manually drain and remove node before downscaling a pool nodes.
I did not find a clean way to do it, using ssh on server node was leading to chaotic behavior.
I will be really happy if a clean implementation is proposed though ;)

from terraform-openstack-rke2.

zifeo avatar zifeo commented on June 12, 2024

@remche Yes, I've seen this. The issue is that even upgrades are not stable if there is no volume on agent nodes. Is there a reason/use case to use a non volume server or node?

from terraform-openstack-rke2.

remche avatar remche commented on June 12, 2024

@zifeo I did not manage to reproduce this issue. Can you provide a sanitized configuration ?

Is there a reason/use case to use a non volume server or node?

In my use case I only use ephemeral volume for VM w/o any problem.

from terraform-openstack-rke2.

zifeo avatar zifeo commented on June 12, 2024

@remche I have experimenting based on a different setup here, I will update if I find something stable and portable.

from terraform-openstack-rke2.

remche avatar remche commented on June 12, 2024

@zifeo Nice, do not hesitate to contribute back ;)
Would be very happy to find a clean autoscaling method !

from terraform-openstack-rke2.

zifeo avatar zifeo commented on June 12, 2024

As stated in documentation, you need to manually drain and remove node before downscaling a pool nodes.

This seems related to k3s-io/k3s#1264.

As for autoscaling, I would suggest something like orchestration_stack_v1 to keep a coherent Terraform state. This should work for simple autoscaling behaviours, but a custom/vanilla cloud provider could be written for advanced use cases.

from terraform-openstack-rke2.

remche avatar remche commented on June 12, 2024

As for autoscaling, I would suggest something like orchestration_stack_v1 to keep a coherent Terraform state. This should work for simple autoscaling behaviours, but a custom/vanilla cloud provider could be written for advanced use cases.

I came to the same conclusions. Using Heat stack seems pretty hacky to me, I would prefer a custom cluster-autoscaler but it's more work :)

from terraform-openstack-rke2.

zifeo avatar zifeo commented on June 12, 2024

@remche I will build a poc later to see how stable it could be. The issue with a custom autoscaler is the compatibility with the TF state. A remote & shared backend maybe but this seems even more hacky.

from terraform-openstack-rke2.

remche avatar remche commented on June 12, 2024

My first though would be to use a remote state supporting locking. But I'm not sure there is a way to retrieve current backend configuration in data sources...

from terraform-openstack-rke2.

stale avatar stale commented on June 12, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from terraform-openstack-rke2.

zifeo avatar zifeo commented on June 12, 2024

@zifeo Nice, do not hesitate to contribute back ;)
Would be very happy to find a clean autoscaling method !

Node deletion seems stable so far. I am happy to bring https://github.com/zifeo/terraform-openstack-rke2 over (merge all here), but the expose module interface is rather different. What is your point of view on this? This is why I chose to start from scratch originally.

from terraform-openstack-rke2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.