-
Notifications
You must be signed in to change notification settings - Fork 834
New issue
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
Airgap install throws token must not be empty #361
Comments
You always have to provide a token in the inventory.yaml, PR #356 didn't change that requirement. What exactly is the error you are seeing. |
I provided the token in the |
I tested this out, and I'm still not seeing the issue as you described. My setup was a airgapped cluster of pi4s with my inventory.yml looking like:
Additionally, my airgap folder contains |
This is my inventory, I try to setup the kubernetes cluster in my raspberry pi cm4 cluster k3s_cluster:
children:
server:
hosts:
rpicm404:
agent:
hosts:
rpicm401:
rpicm402:
rpicm403:
# Required Vars
vars:
ansible_port: 22
k3s_version: v1.31.0+k3s1
token: "<The-token>"
api_endpoint: "{{ hostvars[groups['server'][0]]['ansible_host'] | default(groups['server'][0]) }}"
extra_server_args: "--flannel-backend=none --disable-network-policy --disable-helm-controller --disable-cloud-controller --disable=servicelb --disable=traefik"
extra_agent_args: ""
airgap_dir: /<the-base-dir>/k3s-airgap/v1.31.0+k3s1 |
I did find a minor issue with the agent airgap setup (fix was previously only written in the server code), I have a PR to fix that. However, I am still unable to replicate your issue (using as close to your inventory as possible). I will note that your What is the exact wording of the failure you are seeing? Can you post some of the actual ansible logs? You might try the latest master commit and see it the issue is still there. |
Yes, I install cilium as CNI by helm chart (Also used as Gateway API component), and nginx ingress controller as my ingress controller (Not familiar with traefik). I already provisioned the cluster by adding the token variable to the previous location, so I don't have environment to test it now, I'll find other SBCs to test it again, will let you know the result, thanks. |
Closing this for now, feel free to add more info if you hit it again, I will reopen. |
Airgap install throws token must not be empty
Seems the latest security fix by "using K3S_TOKEN environment variable " commit caused this issue Security exposure related to the token (https://github.com/k3s-io/k3s-ansible/pull/356)
The text was updated successfully, but these errors were encountered: