PyratLabs / ansible-role-k3s

Ansible role for installing k3s as either a standalone server or HA cluster.
BSD 3-Clause "New" or "Revised" License
627 stars 135 forks source link

Adding tasks to download admin kubeconfig #195

Closed vkamlov closed 1 year ago

vkamlov commented 1 year ago

Download admin kubeconfig after installing a cluster

Summary

It's nice to have the possibility to download admin kubeconfig at the end of the installation process. There aren't a lot of changes. Only 2 tasks and 3 help vars If you think that some tasks or include should be in another place, move it

Issue type

Test instructions

Run a playbook with the next vars:

    k3s_download_kubeconf: true
    k3s_download_kubeconf_file_name: name_of_config.yaml # Optional
    k3s_download_kubeconf_path: /path/to/config/folder # Optional

Additional Information

Also works with - "k3s_registration_address" variable. If set, IP or FQDN, the replace task takes data from it for the kubeconfig server address directive

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.