Comments (4)
We've discussed it in the past and decided against it. The admin kubeconfig really shouldn't be used for much other that locally interacting with the server. If you're managing multiple clusters to the point where you want to give their contexts unique names in your kubeconfig, you should be using more advanced tooling for that - and not using the default admin kubeconfig and admin RBAC.
from k3s.
This is a duplicate of #4610
Clusters don't know their own name, there is no field within the cluster itself to store that data. If you want the kubeconfig to reflect a different name, your best option is to make that edit when collecting the admin kubeconfig off the server nodes, or (preferably) when generating unique kubeconfigs for your users with distinct users and RBAC.
from k3s.
Thank you @brandond for providing the clarifications. I was simply trying to understand how the default
value is assigned when the cluster is deployed and if there is a way to define it with a switch, during deployment. I still believe this could be an useful feature.
from k3s.
Thank you, it makes sense now.
from k3s.
Related Issues (20)
- [Release-1.28] - Support containerd config_path for stargz snapshotter
- [Release-1.27] - Support containerd config_path for stargz snapshotter
- [Release-1.29] - Bump containerd to >= v1.7.17
- [Release-1.28] - Bump containerd to >= v1.7.17 HOT 1
- [Release-1.27] - Bump containerd to >= v1.7.17 HOT 1
- [Release-1.29] - Bump etcd to >= v3.5.13
- [Release-1.28] - Bump etcd to >= v3.5.13
- [Release-1.27] - Bump etcd to >= v3.5.13
- [Release-1.29] - Spegel mirror returns 500 instead of 404 on unavailable images
- [Release-1.28] - Spegel mirror returns 500 instead of 404 on unavailable images
- [Release-1.27] - Spegel mirror returns 500 instead of 404 on unavailable images
- [Release-1.29] - LoadBalancers crashing after updating from 1.27.3 to 1.29.3
- [Release-1.28] - LoadBalancers crashing after updating from 1.27.3 to 1.29.3
- [Release-1.27] - LoadBalancers crashing after updating from 1.27.3 to 1.29.3
- [Release-1.29] - local path provisioner helper script does not support `-a` flag
- [Release-1.28] - local path provisioner helper script does not support `-a` flag
- [Release-1.27] - local path provisioner helper script does not support `-a` flag
- [Release-1.29] - Allow setting `priorityClassName` on ServiceLB daemonset.
- [Release-1.28] - Allow setting `priorityClassName` on ServiceLB daemonset.
- [Release-1.27] - Allow setting `priorityClassName` on ServiceLB daemonset.
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 k3s.