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

BUG: 安装单节点失败 #1659

Closed
openstack-test opened this issue Aug 30, 2022 · 1 comment
Closed

BUG: 安装单节点失败 #1659

openstack-test opened this issue Aug 30, 2022 · 1 comment

Comments

@openstack-test
Copy link

问题
按照官网文档,执行命令安装单节点k8s

 sealos run labring/kuberentes:v1.25.0 --single

文档地址,https://www.sealos.io/zh-Hans/docs/getting-started/kuberentes-life-cycle

报如下错误

Error: unknown flag: --single
Usage:
  sealos run [flags]

Examples:

create cluster to your baremetal server, appoint the iplist:
	sealos run labring/kubernetes:v1.24.0 --masters 192.168.0.2,192.168.0.3,192.168.0.4 \
		--nodes 192.168.0.5,192.168.0.6,192.168.0.7 --passwd xxx
  multi image:
    sealos run labring/kubernetes:v1.24.0 calico:v3.22.1 \
        --masters 192.168.64.2,192.168.64.22,192.168.64.20 --nodes 192.168.64.21,192.168.64.19
  Specify server InfraSSH port :
  All servers use the same InfraSSH port (default port: 22):
	sealos run labring/kubernetes:v1.24.0 --masters 192.168.0.2,192.168.0.3,192.168.0.4 \
	--nodes 192.168.0.5,192.168.0.6,192.168.0.7 --port 24 --passwd xxx
  Different InfraSSH port numbers exist:
	sealos run labring/kubernetes:v1.24.0 --masters 192.168.0.2,192.168.0.3:23,192.168.0.4:24 \
	--nodes 192.168.0.5:25,192.168.0.6:25,192.168.0.7:27 --passwd xxx

create a cluster with custom environment variables:
	sealos run -e DashBoardPort=8443 mydashboard:latest  --masters 192.168.0.2,192.168.0.3,192.168.0.4 \
	--nodes 192.168.0.5,192.168.0.6,192.168.0.7 --passwd xxx


Flags:
      --cmd strings        set cmd for image cmd instruction
  -e, --env strings        set custom environment variables
  -f, --force              we also can input an --force flag to run app in this cluster by force
  -h, --help               help for run
  -m, --masters string     set Count or IPList to masters
      --name string        set cluster name variables (default "default")
  -n, --nodes string       set Count or IPList to nodes
  -p, --passwd string      set cloud provider or baremetal server password
      --pk string          set baremetal server private key (default "/root/.ssh/id_rsa")
      --pk-passwd string   set baremetal server private key password
      --port uint16        set the sshd service port number for the server (default 22)
  -u, --user string        set baremetal server username (default "root")

Global Flags:
      --cluster-root string   cluster root directory (default "/var/lib/sealos")
      --debug                 enable debug logger

unknown flag: --single

请问怎么解决呢,谢谢。

@openstack-test openstack-test changed the title BUG: brief description of the bug BUG: 安装单节点失败 Aug 30, 2022
@fanux
Copy link
Member

fanux commented Aug 30, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants