Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seautil token used join node and join master logic #1263

Open
cuisongliu opened this issue Mar 21, 2022 · 0 comments
Open

seautil token used join node and join master logic #1263

cuisongliu opened this issue Mar 21, 2022 · 0 comments
Assignees
Labels
kind/feature Category issues or PRs related to feature request

Comments

@cuisongliu
Copy link
Collaborator

Issue Description

Type: feature request

Describe what feature you want

process kubeadm joinToken,discoveryTokenCaCertHash,certificateKey

type Token struct {
	JoinToken                string   `json:"joinToken,omitempty"`
	DiscoveryTokenCaCertHash []string `json:"discoveryTokenCaCertHash,omitempty"`
	CertificateKey           string   `json:"certificateKey,omitempty"`
}
  1. use code generator 'CertificateKey' out struct 'CertificateKey'
  2. at master0 exec 'kubeadm init phase upload-certs --upload-certs --certificate-key %s'
  3. at master0 exec 'kubeadm token list -o yaml' get current all token -- before tokens
  4. at master0 exec 'kubeadm token create --print-join-command --certificate-key %s'
  5. at master0 exec 'kubeadm token list -o yaml' get all token -- after tokens
  6. get diff one token (after tokens diff before tokens ) out struct 'JoinToken'
  7. from admin.conf generator discoveryTokenCaCertHash out struct 'DiscoveryTokenCaCertHash'

Additional context

Add any other context or screenshots about the feature request here.

@cuisongliu cuisongliu added the kind/feature Category issues or PRs related to feature request label Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Category issues or PRs related to feature request
Projects
None yet
Development

No branches or pull requests

3 participants