Commit ad4ea681 authored by Erik Wilson's avatar Erik Wilson

Hide the --disable-agent flag

parent a47cb20e
...@@ -7,8 +7,8 @@ set -e ...@@ -7,8 +7,8 @@ set -e
# ENV_VAR=... ./install.sh # ENV_VAR=... ./install.sh
# #
# Example: # Example:
# Installing a server without an agent: # Installing a server without traefik:
# curl ... | INSTALL_K3S_EXEC="--disable-agent" sh - # curl ... | INSTALL_K3S_EXEC="--no-deploy=traefik" sh -
# Installing an agent to point at a server: # Installing an agent to point at a server:
# curl ... | K3S_TOKEN=xxx K3S_URL=https://server-url:6443 sh - # curl ... | K3S_TOKEN=xxx K3S_URL=https://server-url:6443 sh -
# #
...@@ -52,11 +52,11 @@ set -e ...@@ -52,11 +52,11 @@ set -e
# of EXEC and script args ($@). # of EXEC and script args ($@).
# #
# The following commands result in the same behavior: # The following commands result in the same behavior:
# curl ... | INSTALL_K3S_EXEC="--disable-agent" sh -s - # curl ... | INSTALL_K3S_EXEC="--no-deploy=traefik" sh -s -
# curl ... | INSTALL_K3S_EXEC="server --disable-agent" sh -s - # curl ... | INSTALL_K3S_EXEC="server --no-deploy=traefik" sh -s -
# curl ... | INSTALL_K3S_EXEC="server" sh -s - --disable-agent # curl ... | INSTALL_K3S_EXEC="server" sh -s - --no-deploy=traefik
# curl ... | sh -s - server --disable-agent # curl ... | sh -s - server --no-deploy=traefik
# curl ... | sh -s - --disable-agent # curl ... | sh -s - --no-deploy=traefik
# #
# - INSTALL_K3S_NAME # - INSTALL_K3S_NAME
# Name of systemd service to create, will default from the k3s exec command # Name of systemd service to create, will default from the k3s exec command
......
...@@ -78,6 +78,7 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command { ...@@ -78,6 +78,7 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command {
cli.BoolFlag{ cli.BoolFlag{
Name: "disable-agent", Name: "disable-agent",
Usage: "Do not run a local agent and register a local kubelet", Usage: "Do not run a local agent and register a local kubelet",
Hidden: true,
Destination: &ServerConfig.DisableAgent, Destination: &ServerConfig.DisableAgent,
}, },
cli.StringFlag{ cli.StringFlag{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment