Giter Club home page Giter Club logo

Comments (2)

gecube avatar gecube commented on September 24, 2024

In the original code they are generated not with manifests, but rather with programmatic way: https://github.com/kubernetes/kubernetes/blob/master/cmd/kubeadm/app/phases/bootstraptoken/node/tlsbootstrap.go

It will be very difficult to support updates to tokens as there are no source manifests. Probably it is wiser to leave it as is and use kubeadm. In any case you will need it for generating join tokens...
I'd like to discuss different approach, because we CAN do what you want, but I don't understand the rewrite benefits

from kubernetes-in-kubernetes.

kvaps avatar kvaps commented on September 24, 2024

Hi, bootstrap-token phase perform the two things:

  • Applying cluster-info configmap and RBAC manifests into cluster
  • Generating temporary token: eg executing kubeadm token create (this creates kube-system/bootstrap-token-xxxxxx secret and records a string .data.jws-kubeconfig-xxxxxx into kube-public/cluster-info configmap)

Actually we don't need to generate the token at this time, but the rest manifests are quite static and not changing during the time thus, we can simple template them using Helm. I wanted to replace this part cause we have to apply these manifests every time we update the release, and every time we have a new token generated. That's not a big problem as the temporary tokens are removing by controller-manager after 24 hours, but when you updating your release quite often they might be annoying.

The main reason why I wanted to get rid of any programmatic kubeadm logic is simplicity to inspecting of all applyable manifests.
Ideally the simple rendering of Helm chart using helm template command, should return self-sufficient set of YAML-manifests necessary to set up working Kubernetes control-plane. However, I want to leave support with kubeadm because many tools rely on it. This issue was created for that reason.

from kubernetes-in-kubernetes.

Related Issues (8)

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.