Giter VIP home page Giter VIP logo

Comments (7)

doddatpivotal avatar doddatpivotal commented on August 11, 2024

@agregory999 do you think we should just add tkg get cluster.. followed by kubectl config use-context ... after the tkg create cluster

from tkg-lab.

jaimegag avatar jaimegag commented on August 11, 2024

I think this probably needs to be checked & corrected in more places.
On TKG 1.0.0 I experienced the TKG CLI was creating the new context and setting it as the active one after a tkg create cluster. That's no longer the case with TKG 1.1

Now every time we create a cluster we need to manually run tkg get credentials and then set the active context (via kubectl)

from tkg-lab.

agregory999 avatar agregory999 commented on August 11, 2024

Agreed - I don't recall facing any issues with the lab until I changed to 1.1. I'm wondering if each lab should do a use-context and fail if that context isn't there. That way we avoid running any workload in the wrong cluster. Should we make a generic script?

from tkg-lab.

jaimegag avatar jaimegag commented on August 11, 2024

Sounds good to me.
@doddatpivotal ?

from tkg-lab.

doddatpivotal avatar doddatpivotal commented on August 11, 2024

I went to add the kubectl config use-context ... commands to the deploy-workload-cluster.sh script and it looks like it is already in place. If this is the case, can this issue be closed? @jaimegag @agregory999

from tkg-lab.

jaimegag avatar jaimegag commented on August 11, 2024

Yeah deploy-workload-cluster.sh seems to be all set. And I realize now that it is used for both shared-services and workload-clusters. So we are good to go.

What I can't remember is:
What happens after tkg init now. I know we get the credentials in kubeconfig, but I'm not 100% if the context is set.
Anyhow, the problem reported in this issue is solved

from tkg-lab.

doddatpivotal avatar doddatpivotal commented on August 11, 2024

tkg init does not set the context to the newly created management cluster. However, the 03-post-deploy-mgmt-cluster.sh does set the context.

from tkg-lab.

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.