Comments (7)
@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.
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.
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.
Sounds good to me.
@doddatpivotal ?
from tkg-lab.
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.
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.
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)
- Upgrade Harbor Lab to 1.2
- Remove helm deploy option as it is no longer matching TKG 1.2 HOT 1
- Data Protection Still Needs Work
- tmc delete requires -m and -p options
- Dex fails with custom Okta endpoints with Let's Encrypt certificates
- Harbor OIDC login fails with custom Okta enpoint using Let's Encrypt certificate
- kubeapps to use tac.bitnami instead of charts.bitnami
- Runaway Contour App Changes
- Support Google CloudDNS via external-dns
- AWS Install references v1.1 method for cloudformation HOT 1
- Use FQDN and trusted CA for AVI Controller
- Add License instructions to AVI lab
- Add registry pull secrets for OSS software that pulls from dockerhub HOT 1
- Add ability to specify machine type per cluster type
- Deploys c5.xlarge for workload cluster even though I configured for something else HOT 1
- confirm if kubeapps is to be installed on SS or WL cluster HOT 1
- Minimal doc/readme update needed
- Add optional cluster autoscaler capability for shared services and workload clusters
- Contour fails to reconcile (step-by-step / management cluster / step 6) HOT 3
- Create overlay to support custom registry credentials.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tkg-lab.