Kubernets 生成永不过期的token

[root@k8s-master-01 ~]# kubeadm token create --ttl 0
m3g8ci.usn0m7xw6xp266xe
[root@k8s-master-01 ~]# kubeadm token create --ttl 0
c5g3ke.7tcrrnkq6nrov9gk
[root@k8s-master-01 ~]# kubeadm token list
TOKEN                     TTL         EXPIRES   USAGES                   DESCRIPTION                                                EXTRA GROUPS
c5g3ke.7tcrrnkq6nrov9gk   <forever>   <never>   authentication,signing   <none>                                                     system:bootstrappers:kubeadm:default-node-token
m3g8ci.usn0m7xw6xp266xe   <forever>   <never>   authentication,signing   <none>                                                     system:bootstrappers:kubeadm:default-node-token
[root@k8s-master-01 ~]# 
posted @ 2024-10-15 16:30  一毛丶丶  阅读(13)  评论(0编辑  收藏  举报