mirror of https://github.com/kubernetes/kops.git
Replace --vpc flag with --network-id
This commit is contained in:
parent
21c63111a2
commit
b193a3d35c
|
|
@ -278,8 +278,11 @@ func NewCmdCreateCluster(f *util.Factory, out io.Writer) *cobra.Command {
|
|||
cmd.Flags().Int32Var(&options.MasterVolumeSize, "master-volume-size", options.MasterVolumeSize, "Instance volume size (in GB) for masters")
|
||||
cmd.Flags().Int32Var(&options.NodeVolumeSize, "node-volume-size", options.NodeVolumeSize, "Instance volume size (in GB) for worker nodes")
|
||||
|
||||
cmd.Flags().StringVar(&options.NetworkID, "vpc", options.NetworkID, "Shared VPC to use")
|
||||
cmd.Flags().StringVar(&options.NetworkID, "vpc", options.NetworkID, "Shared Network or VPC to use")
|
||||
cmd.Flags().MarkDeprecated("vpc", "use --network-id instead")
|
||||
cmd.RegisterFlagCompletionFunc("vpc", completeNetworkID)
|
||||
cmd.Flags().StringVar(&options.NetworkID, "network-id", options.NetworkID, "Shared Network or VPC to use")
|
||||
cmd.RegisterFlagCompletionFunc("network-id", completeNetworkID)
|
||||
cmd.Flags().StringSliceVar(&options.SubnetIDs, "subnets", options.SubnetIDs, "Shared subnets to use")
|
||||
cmd.RegisterFlagCompletionFunc("subnets", completeSubnetID(options))
|
||||
cmd.Flags().StringSliceVar(&options.UtilitySubnetIDs, "utility-subnets", options.UtilitySubnetIDs, "Shared utility subnets to use")
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ kops create cluster [CLUSTER] [flags]
|
|||
--master-volume-size int32 Instance volume size (in GB) for masters
|
||||
--master-zones strings Zones in which to run masters (must be an odd number)
|
||||
--network-cidr string Network CIDR to use
|
||||
--network-id string Shared Network or VPC to use
|
||||
--networking string Networking mode. kubenet, external, weave, flannel-vxlan (or flannel), flannel-udp, calico, canal, kube-router, amazonvpc, cilium, cilium-etcd, cni. (default "kubenet")
|
||||
--node-count int32 Total number of worker nodes. Defaults to one node per zone
|
||||
--node-image string Machine image for worker nodes. Takes precedence over --image
|
||||
|
|
@ -123,7 +124,6 @@ kops create cluster [CLUSTER] [flags]
|
|||
-t, --topology string Network topology for the cluster: public or private (default "public")
|
||||
--unset strings Directly unset values in the spec
|
||||
--utility-subnets strings Shared utility subnets to use
|
||||
--vpc string Shared VPC to use
|
||||
-y, --yes Specify --yes to immediately create the cluster
|
||||
--zones strings Zones in which to run the cluster
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue