Skip to content

support kubelet bootstrap TLS #1

Description

@tangxusc

目前kubelet的证书签发机制存在以下问题:

  • 安全性不高
  • 非最佳实践
  • 多节点使用相同证书
  • 无法处理证书轮换

期望改进如下:

kubectl create clusterrolebinding kubelet-bootstrap --clusterrole=system:node-bootstrapper --user=kubelet-bootstrap
  • 配置bootstrap-kubelet.conf(--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf)
kubectl config set-cluster kubernetes --certificate-authority=ca.pem --embed-certs=true --server=https://${api-server}:6443 --kubeconfig=bootstrap-kubelet.conf
kubectl config set-credentials kubelet-bootstrap --token=${BOOTSTRAP_TOKEN} --kubeconfig=bootstrap-kubelet.conf
kubectl config set-context default --cluster=kubernetes --user=kubelet-bootstrap --kubeconfig=bootstrap-kubelet.conf
kubectl config use-context default --kubeconfig=bootstrap-kubelet.conf

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions