Giter Site home page Giter Site logo

Comments (8)

jpetazzo avatar jpetazzo commented on May 22, 2024

Not quite! On line 43, we show how to create a namespace, but this is not an exercise; i.e. we don't run it and we don't expect people to run it. It's just to give the command.

So on line 93, the namespace hasn't been created yet (we just point the config file to it); Helm will create it automatically though.

from container.training.

bridgetkromhout avatar bridgetkromhout commented on May 22, 2024

Ah! Do you think we want to clarify on the slide that this isn't an exercise? I know it doesn't have the "exercise" label, but since it's working code, people may try to run it anyhow. Maybe it's worth clarifying the place the namespace gets created?

from container.training.

jpetazzo avatar jpetazzo commented on May 22, 2024

I was relying on the fact that it's idempotent, and it doesn't hurt whether people run it or not.

Likewise, we give a few kubectl get (and other "read" commands) outside of exercise blocks.

But yes .. .Hmm..

Perhaps instead of "the namespace doesn't exist yet" this should say "this doesn't create the namespace" or something like that.

from container.training.

bridgetkromhout avatar bridgetkromhout commented on May 22, 2024

Perhaps instead of "the namespace doesn't exist yet" this should say "this doesn't create the namespace" or something like that.

Right, like, we shouldn't assert that something doesn't exist when we gave a command that could create it. I'm imagining that if the namespace is being created by ✨magic ✨ elsewhere, we should clarify that has happened, when it's happening?

from container.training.

jpetazzo avatar jpetazzo commented on May 22, 2024

The namespace is created automatically by Helm, and it is mentioned there:

https://github.com/jpetazzo/container.training/blob/master/slides/kube/namespaces.md#creating-namespaces

Do you think it needs to be clarified further?

from container.training.

bridgetkromhout avatar bridgetkromhout commented on May 22, 2024

What we have on the slide currently says "if" and yes, that "if" does apply to us. What I think is unclear (and what I still don't fully understand) is exactly which helm command creates that specific "blue" namespace, and when. Like, we tell it to use a context - is it happening then? Without further research/reading, that's not obvious to me, so I also think it won't be obvious to workshop participants.

from container.training.

jpetazzo avatar jpetazzo commented on May 22, 2024

As far as I understand, Helm will use the default kube configuration. Therefore, with our kube config set-context ... commands, we end up instructing Helm to use a specific namespace as well.

Then (still as far as I understand) Helm has some logic like "if you ask me to create a resource in a namespace that doesn't exist, I will create the namespace for you." As a result, helm install ... will create the namespace.

from container.training.

bridgetkromhout avatar bridgetkromhout commented on May 22, 2024

Okay, that makes sense. I will ponder this a little more and see how it works in practice before I raise an issue for any possible re-wording.

from container.training.

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.