Update AWS VPC CNI docs to use --networking amazonvpc

This commit is contained in:
Peter Rifel 2020-07-06 17:40:21 -05:00
parent de757c56c9
commit 7582109b23
No known key found for this signature in database
GPG Key ID: BC6469E5B16DB2B6
3 changed files with 4 additions and 4 deletions

View File

@ -279,7 +279,7 @@ func NewCmdCreateCluster(f *util.Factory, out io.Writer) *cobra.Command {
cmd.Flags().BoolVar(&options.EncryptEtcdStorage, "encrypt-etcd-storage", options.EncryptEtcdStorage, "Generate key in aws kms and use it for encrypt etcd volumes")
cmd.Flags().StringVar(&options.EtcdStorageType, "etcd-storage-type", options.EtcdStorageType, "The default storage type for etc members")
cmd.Flags().StringVar(&options.Networking, "networking", options.Networking, "Networking mode to use. kubenet, external, weave, flannel-vxlan (or flannel), flannel-udp, calico, canal, kube-router, amazon-vpc-routed-eni, cilium, cni, lyftvpc.")
cmd.Flags().StringVar(&options.Networking, "networking", options.Networking, "Networking mode to use. kubenet, external, weave, flannel-vxlan (or flannel), flannel-udp, calico, canal, kube-router, amazonvpc, cilium, cni, lyftvpc.")
cmd.Flags().StringVar(&options.DNSZone, "dns-zone", options.DNSZone, "DNS hosted zone to use (defaults to longest matching zone)")
cmd.Flags().StringVar(&options.OutDir, "out", options.OutDir, "Path to write any local output")

View File

@ -94,7 +94,7 @@ kops create cluster [flags]
--master-volume-size int32 Set instance volume size (in GB) for masters
--master-zones strings Zones in which to run masters (must be an odd number)
--network-cidr string Set to override the default network CIDR
--networking string Networking mode to use. kubenet, external, weave, flannel-vxlan (or flannel), flannel-udp, calico, canal, kube-router, amazon-vpc-routed-eni, cilium, cni, lyftvpc. (default "kubenet")
--networking string Networking mode to use. kubenet, external, weave, flannel-vxlan (or flannel), flannel-udp, calico, canal, kube-router, amazonvpc, cilium, cni, lyftvpc. (default "kubenet")
--node-count int32 Set number of nodes
--node-image string Set image for nodes. Takes precedence over --image
--node-security-groups strings Add precreated additional security groups to nodes.

View File

@ -11,13 +11,13 @@ To use Amazon VPC, specify the following in the cluster spec:
amazonvpc: {}
```
in the cluster spec file or pass the `--networking amazon-vpc-routed-eni` option on the command line to kops:
in the cluster spec file or pass the `--networking amazonvpc` option on the command line to kops:
```sh
export ZONES=<mylistofzones>
kops create cluster \
--zones $ZONES \
--networking amazon-vpc-routed-eni \
--networking amazonvpc \
--yes \
--name myclustername.mydns.io
```