We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
kubeadm suports this https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/blob/main/templates/cluster-template.yaml#L184
users: - name: capv sshAuthorizedKeys: - '${VSPHERE_SSH_AUTHORIZED_KEY}' sudo: ALL=(ALL) NOPASSWD:ALL
it would be nice to have something similar in the KThreesControlPlane
KThreesControlPlane
see: https://github.com/kubernetes-sigs/cluster-api/blob/b587ff982f33a7d22d32991ebbeb9ea20e3be888/bootstrap/kubeadm/api/v1beta1/kubeadmconfig_types.go#L533
The text was updated successfully, but these errors were encountered:
Hi. I bumped into the same issue as you, so posting here a workaround.
In either preK3sCommands: or postK3sCommands: block, put something like this
preK3sCommands:
postK3sCommands:
- useradd -m metal3 - echo 'metal3:password' | chpasswd - usermod -aG sudo metal3 - echo 'metal3 ALL=(ALL) NOPASSWD:ALL' | EDITOR='tee -a' visudo - mkdir -p /home/metal3/.ssh - chown metal3:metal3 /home/metal3/.ssh - chmod 700 /home/metal3/.ssh - echo '${SSH_AUTHORIZED_KEY}' > /home/metal3/.ssh/authorized_keys - chown metal3:metal3 /home/metal3/.ssh/authorized_keys - chmod 600 /home/metal3/.ssh/authorized_keys
I hope it helps!
Sorry, something went wrong.
Yeah, that's what I used as well but it would be nice to have a more native way of doing it like the kubeadm provider supports.
No branches or pull requests
kubeadm suports this https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/blob/main/templates/cluster-template.yaml#L184
it would be nice to have something similar in the
KThreesControlPlane
see: https://github.com/kubernetes-sigs/cluster-api/blob/b587ff982f33a7d22d32991ebbeb9ea20e3be888/bootstrap/kubeadm/api/v1beta1/kubeadmconfig_types.go#L533
The text was updated successfully, but these errors were encountered: