Coder Social home page Coder Social logo

Comments (3)

herbrandson avatar herbrandson commented on July 4, 2024

Thanks for the feedback @linuxshokunin! There are a couple of ways to possibly do this today.

First, the last item in the menu is "Apply" which might work for this. It's intended to be similar to kubectl apply (though I did recently realize that it's doing a PUT instead of a PATCH if the item already exists, so do be aware of that).

Second, there is an "Edit" button in the Deployments UI that will bring up your existing YAML and let you edit/save. That might be the easiest way to replicate what you're doing with the kubectl patch command.

Third, if you don't have too many pods you could try going to them one-by-one and using the "Delete" button in the UI. In this case, the Deployment will automatically start a new pod for you (which should pick up your changes I believe).

Fourth, you could try using the Deployment UI to scale the deployment down to 0 and then back up.

Would any of these work for you? Alternatively, I've been thinking about the idea of adding a "Restart" button to things like Deployments to automate this process. Would that be helpful? Is there a better way that K8Dash could achieve what you're looking for?

from skooner.

linuxshokunin avatar linuxshokunin commented on July 4, 2024

Hi @herbrandson

  1. I need to manully edit/update the yaml file and the paste it to the bowser. It does the job I want but just one click to trigger rolling update is much simpler for me.

  2. The same as first one. I need to manually edit/update yaml file.

  3. I don't have many pods in dev environment yet but it will increase the number soon.

  4. kubectl scale --replica=0 and then --replica=1 causes service down. So ideally I want to trigger rolling update.

I can trigger rolling update with kubectl but "Restart" (or redeploy?) button to trigger rolling update would be nice to have in dashboard.

from skooner.

linuxshokunin avatar linuxshokunin commented on July 4, 2024

In addition, we don't have standalone pods but other people might want to have "redeploy" button for pods as well.
e.g.
kubectl get po nginx -o yaml | kubectl replace -f - --force

The similar command above would be nice if you can trigger that in dashboard, too?

What do you think?

from skooner.

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.