Giter Club home page Giter Club logo

Comments (5)

russellb avatar russellb commented on July 29, 2024

Thanks for the report.

This is actually the expected behavior. make run runs the component in the foreground so that you can follow the log output in the terminal and quickly kill and restart as needed. You will need to interact with the cluster from another terminal.

Let me know if you have any other questions about this!

from metal3-dev-env.

kashifest avatar kashifest commented on July 29, 2024

Thanks @russellb.

Indeed you are right. Since, I am new to this environment, I still have one more question.

As mentioned, in my report, I followed the steps mentioned in README. At first, I scaled down the custom Machine controller manager first using the following command

kubectl scale statefulset cluster-api-provider-baremetal-controller-manager -n metal3 --replicas=0.

I added few lines of log prints in my local cluster-api-provider-baremetal-controller-manager repository(in actuator .go) and did the make run. And then when I made changes in the cluster (I was trying to delete a machine object), I saw the new log prints in the console.

However, what I expected is that make run will scale up with the newly compiled cluster-api-provider-baremetal-controller-manager and that shall be reflected when I list the pods. Which is not the case here. So, where is the newly compiled cluster-api-provider-baremetal-controller-manager running since I cannot see this when I list the pods in the cluster ?

Thanks in advance.
Kashif

Thanks for the report.

This is actually the expected behavior. make run runs the component in the foreground so that you can follow the log output in the terminal and quickly kill and restart as needed. You will need to interact with the cluster from another terminal.

Let me know if you have any other questions about this!

from metal3-dev-env.

russellb avatar russellb commented on July 29, 2024

When you use make run, you are no longer running the component in the cluster, so you won't see it when you list pods. To run a custom image that way, you'd have to build a custom image, push it to a container registry, edit the image in the appropriate manifest under the config/ directory, and then run make deploy. It's a lot easier to test custom changes with make run, just at the expense of it no longer running in the cluster.

from metal3-dev-env.

russellb avatar russellb commented on July 29, 2024

(sorry, didn't mean to click close)

from metal3-dev-env.

kashifest avatar kashifest commented on July 29, 2024

Thanks @russellb. This is clear now.

from metal3-dev-env.

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.