fixup! wip: r/k8s-worker: Use K8s API to create join token

Dustin 2025-06-30 16:46:16 -05:00
parent 5488c52169
commit 0df1a4d92d
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,6 @@
- name: flush handlers
meta: flush_handlers
- name: stat /var/lib/kubelet/config.yaml - name: stat /var/lib/kubelet/config.yaml
stat: stat:
path: /var/lib/kubelet/config.yaml path: /var/lib/kubelet/config.yaml
@ -31,6 +34,7 @@
bootstrap_token_secret: >- bootstrap_token_secret: >-
{{ lookup("password", "/dev/null length=16 chars=ascii_lowercase,digits") }} {{ lookup("password", "/dev/null length=16 chars=ascii_lowercase,digits") }}
cacheable: false cacheable: false
no_log: true
tags: tags:
- bootstrap-token - bootstrap-token
@ -57,6 +61,7 @@
usage-bootstrap-authentication: 'true' usage-bootstrap-authentication: 'true'
usage-bootstrap-signing: 'true' usage-bootstrap-signing: 'true'
auth-extra-groups: 'system:bootstrappers:kubeadm:default-node-token' auth-extra-groups: 'system:bootstrappers:kubeadm:default-node-token'
no_log: true
tags: tags:
- bootstrap-token - bootstrap-token