Skip to content
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

Read token from file or string #98

Closed
ibuildthecloud opened this Issue Feb 28, 2019 · 2 comments

Comments

4 participants
@ibuildthecloud
Copy link
Member

ibuildthecloud commented Feb 28, 2019

You should be able to pass a file to --token-file that is read for the token value.

@ibuildthecloud

This comment has been minimized.

Copy link
Member Author

ibuildthecloud commented Mar 4, 2019

This has been added in v0.2.0-rc3

@ibuildthecloud ibuildthecloud added this to Reviewer approved in K3S Development Mar 4, 2019

@cjellick cjellick added this to the v0.2.0 milestone Mar 8, 2019

@cjellick cjellick moved this from Reviewer approved to Testing in K3S Development Mar 8, 2019

@cjellick cjellick added the kind/bug label Mar 8, 2019

@dnoland1

This comment has been minimized.

Copy link
Contributor

dnoland1 commented Mar 8, 2019

Verified:

ubuntu@k3s-node2:~$ sudo ./k3s agent --server https://192.168.0.3:6443 --token-file token.txt
INFO[2019-03-08T06:28:29.341790729Z] Starting k3s agent v0.2.0-rc6 (2771ae1)
INFO[2019-03-08T06:28:29.455829097Z] Logging containerd to /var/lib/rancher/k3s/agent/containerd/containerd.log
...
root@k3s-node1:~# /home/ubuntu/k3s kubectl get nodes
NAME        STATUS   ROLES    AGE    VERSION
k3s-node1   Ready    <none>   111m   v1.13.4-k3s.1
k3s-node2   Ready    <none>   9s     v1.13.4-k3s.1

@erikwilson erikwilson closed this Mar 8, 2019

K3S Development automation moved this from Testing to Done Mar 8, 2019

@cjellick cjellick added kind/enhancement and removed kind/bug labels Mar 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.