Git Product home page Git Product logo

Comments (2)

jlamillan avatar jlamillan commented on July 19, 2024 1

One way to upgrade your cluster is by incrementally changing the value of the k8s_ver input variable on your master and then worker nodes.

For example, the command terraform apply -var k8s_ver=1.7.5 -target=module.instances-k8sworker-ad1 would (1) drain all worker nodes in AD1 to your nodes in AD2 and AD3 (2) then destroy all worker nodes in AD1, (3) re-create worker nodes in AD1 using Kubernetes 1.7.5, and finally (4) have them re-join the cluster.

If you have more than one worker in an AD, you can upgrade worker nodes individually using the subscript operator e.g. terraform plan -var k8s_ver=1.7.5 -target=module.instances-k8smaster-ad1.oci_core_instance.TFInstanceK8sMaster[1]

Depending on your tolerance for failure, I would smoke test this approach on a stand-by cluster to weed out pitfalls and ensure our scripts are compatible with the version of Kubernetes you are trying to use - we have also not tested other versions of Kubernetes other than the the default version (1.7.4).

from terraform-kubernetes-installer.

zjmtlab avatar zjmtlab commented on July 19, 2024

Hi jlamilan,
Do you have a recommaned proposal for the k8s upgrade? especially for master node.
Don't need formal document, just briefly describe the steps can help a lot.
Thanks!

from terraform-kubernetes-installer.

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.