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

--disable-agent flag poblem #978

Closed
mordredz opened this issue Oct 28, 2019 · 2 comments
Closed

--disable-agent flag poblem #978

mordredz opened this issue Oct 28, 2019 · 2 comments
Labels
kind/question No code change, just asking/answering a question

Comments

@mordredz
Copy link

mordredz commented Oct 28, 2019

Hi,

Some time ago I installed version 0.8.0 and with the single installation command without other flags in the same host, both the master node and an agent node were executed and if the agent was not wanted in the same host I had used the appropriate flag --disable-agent.

Installing k3s (v0.9.1) again without flag only the master appears and if I use the flag to disable the agent (which does not start) the master node is not visible, as if it did not exist but k3s is correctly running..

I tried to install earlier versions too, thinking that maybe it was a version problem but nothing even for example with version 0.8.0 I get the same result.

@ShylajaDevadiga
Copy link
Contributor

@Salvocll This is expected behavior when --disable-agent flag is passed. Its documented in this issue. #891

@davidnuzik
Copy link
Contributor

Let us know if there are any other questions/concerns. --disable-agent is no longer advertised in the cli and docs and we do not recommend it as the kubelet won't be running and thus the node won't be listed via kubectl, etc.

You can run k3s without --disable-agent and if you don't want anything to schedule on the master nodes you can taint them with something like this: --node-taint key=value:NoExecute

@davidnuzik davidnuzik added the kind/question No code change, just asking/answering a question label Nov 12, 2019
dweomer pushed a commit to rancher/k3os that referenced this issue Oct 27, 2021
Removed ```--disable-agent``` flag in sample *config.yaml*. Refer to [this](k3s-io/k3s#978 (comment)) issue.

Added ```--cluster-init``` flag in sample *config.yaml*.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question No code change, just asking/answering a question
Projects
None yet
Development

No branches or pull requests

3 participants