k3s-io / k3s-ansible

Apache License 2.0
2.09k stars 824 forks source link

Airgap install tasks #342

Closed npapapietro closed 4 months ago

npapapietro commented 5 months ago

Having issues with airgap install, not sure if it is my lack of understanding but in the task below the agent and server are both installed https://github.com/k3s-io/k3s-ansible/blob/91ee70ee17d765df0dd42b0f92a7fbc75193bc63/roles/airgap/tasks/main.yml#L112

I don't think this is the case with the curl ... | sh - installer. Because of this I get random issues on restarting the node (use case) where the agent tries to consume the server args such as flag provided but not defined -write-kubeconfig-mode

dereknola commented 4 months ago

@npapapietro Thanks for finding this. When I wrote the airgap feature, I never tested reboots of the nodes.