如果我运行jx create cluster aws
->它会在aws上创建群集,而不会出现任何问题,但是如果我不指定某些选项,例如:
jx create cluster aws --zones us-east-2b --nodes=2 --node-size=t2.micro --master-size=t2.micro
然后,无论我尝试更改什么,它都会不断失败,几乎所有选项都出现此类错误:
Error: unknown flag: - -node-size and the same for other options. Options were taken from here https://jenkins-x.io/commands/jx_create_cluster_aws/
使用kops设置集群,无论选择哪种选项都没有问题
最佳答案
我在评论中询问了此问题,但实际答案似乎是您使用的jx
版本与文档不匹配。因为这是我使用新下载的二进制文件的经验:
$ ./jx create cluster aws --verbose=true --zones=us-west-2a,us-west-2b,us-west-2c --cluster-name=sample --node-size=5 --master-size=m5.large
kops not found
kubectl not found
helm not found
? Missing required dependencies, deselect to avoid auto installing: [Use arrows to move, type to filter]
❯ ◉ kops
◉ kubectl
◉ helm
? nodes [? for help] (3)
^C
$ ./jx --version
1.3.90
关于kubernetes - 指定--nodes,master-size等选项时,Jenkins-x集群设置失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51297876/