kops/docs/cli
Kubernetes Submit Queue e88496a248
Merge pull request #4061 from meringu/create-subnets
Automatic merge from submit-queue.

Add --subnets and --utility-subnets to kops create cluster

This change adds two new options to `kops create cluster`

When specifying `--vpc`, `--subnets` can be specified as an unordered array of subnet ids. Kops will then look up the zones of the subnets to find which zone to add the subnet id to.

If `--topology private` is also specified, `--utility-subnets` can similarly be specified.

~If a zone was specified but a subnet wasn't given that matches the zone, then the subnet will be allocated a CIDR with the current behaviour.~ This case fails validation here 7bd0a6a703/pkg/apis/kops/validation/validation.go (L151)

I can add unit tests and docs changes if required, but I am keen to get feedback before I proceed much further.

I have only added support for AWS.

I have tested this by running a command similar to this:

```bash
kops create cluster \
  --zones=us-east-1a,us-east-1b,us-east-1c \
  --topology private \
  --master-zones=us-east-1a,us-east-1b,us-east-1c  \
  --vpc $vpc_id \
  --subnets subnet-111111,subnet-222222,subnet-333333 \
  --utility-subnets subnet-444444,subnet-555555,subnet-666666 \
  $cluster_hosted_zone_name
```

And the cluster spec was as expected.
2017-12-18 21:12:59 -08:00
..
kops.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_completion.md fix typo 2017-08-17 19:16:13 +08:00
kops_create.md implementation of adding ssh public key using sshsecret spec 2017-08-21 17:18:00 +02:00
kops_create_cluster.md Merge pull request #4061 from meringu/create-subnets 2017-12-18 21:12:59 -08:00
kops_create_instancegroup.md Tweak kops create ig flag to edit, not editor 2017-11-14 03:17:19 -05:00
kops_create_secret.md Enable support for encryption-at-rest 2017-09-22 17:14:51 +01:00
kops_create_secret_dockerconfig.md Support replacing kops secrets via force flag 2017-11-21 11:47:03 +00:00
kops_create_secret_encryptionconfig.md Support replacing kops secrets via force flag 2017-11-21 11:47:03 +00:00
kops_create_secret_sshpublickey.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_delete.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_delete_cluster.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_delete_instancegroup.md Update the docs 2017-08-08 11:03:38 +08:00
kops_delete_secret.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_describe.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_describe_secrets.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_edit.md Clarify docs: rename spec to desired conf 2017-08-10 18:50:45 +02:00
kops_edit_cluster.md Clarify docs: rename spec to desired conf 2017-08-10 18:50:45 +02:00
kops_edit_federation.md Clarify docs: rename spec to desired conf 2017-08-10 18:50:45 +02:00
kops_edit_instancegroup.md Clarify docs: rename spec to desired conf 2017-08-10 18:50:45 +02:00
kops_export.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_export_kubecfg.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_get.md Clarify docs: rename spec to desired conf 2017-08-10 18:50:45 +02:00
kops_get_clusters.md Clarify docs: rename spec to desired conf 2017-08-10 18:50:45 +02:00
kops_get_federations.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_get_instancegroups.md Clarify docs: rename spec to desired conf 2017-08-10 18:50:45 +02:00
kops_get_secrets.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_import.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_import_cluster.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_replace.md Fix segfault when updating non-existent object 2017-12-01 11:00:46 -05:00
kops_rolling-update.md docs updates to clarify and fix typos 2017-09-26 19:50:38 -04:00
kops_rolling-update_cluster.md adding -y to various commands that use --yes. kops create, 2017-11-05 17:33:24 -07:00
kops_toolbox.md correct squash 2017-07-25 10:23:59 +02:00
kops_toolbox_convert-imported.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_toolbox_dump.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_toolbox_template.md Kops Templating 2017-10-30 12:05:11 +00:00
kops_update.md Clarify docs: rename spec to desired conf 2017-08-10 18:50:45 +02:00
kops_update_cluster.md adding -y to various commands that use --yes. kops create, 2017-11-05 17:33:24 -07:00
kops_update_federation.md adding -y to various commands that use --yes. kops create, 2017-11-05 17:33:24 -07:00
kops_upgrade.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_upgrade_cluster.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00
kops_validate.md resolve #3169 2017-08-13 19:16:22 +03:00
kops_validate_cluster.md resolve #3169 2017-08-13 19:16:22 +03:00
kops_version.md Try adding header to generated CLI docs 2017-07-15 13:14:21 -04:00