kops/docs
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
..
advisories Added example output from a 1.4.12 cluster 2017-10-19 15:15:46 -07:00
api-server Adding docs on running kops with helm 2017-03-28 07:18:15 +02:00
apireference openapi doc updates 2017-11-28 11:37:49 -07:00
asciicast Ascii cast! 2016-12-29 04:23:54 -07:00
calico_cidr_migration Fix migration script to take ipip mode into account 2017-07-24 12:21:56 -07:00
cli Merge pull request #4061 from meringu/create-subnets 2017-12-18 21:12:59 -08:00
development Add list of PRs for 1.8.0 release 2017-12-03 02:04:01 -05:00
examples Fixed the broken link for aws doc. 2017-11-11 19:04:54 +05:30
img Resize k8s logo 2016-12-01 22:42:56 -07:00
releases Fixed minor typo in 1.8-NOTES.md file 2017-12-05 14:49:04 -05:00
tutorial Update gce.md 2017-10-10 11:14:36 +02:00
work_in_progress Documentation updates 2017-06-30 15:33:37 -06:00
README.md Add kops toolbox template docs 2017-10-17 20:33:14 +02:00
addon_manager.md Add docs for addon manager 2017-04-08 12:21:22 -04:00
addons.md Bump kubernetes-dashboard to v1.7.1 2017-10-16 23:38:11 -07:00
arguments.md Documentation updates 2017-06-30 15:33:37 -06:00
authentication.md Add initial docs on the kops side of authentication 2017-11-26 23:28:33 -05:00
aws-china.md Add a doc to describe how to use kops in AWS China 2017-09-15 08:26:44 +08:00
aws.md docs/aws.md: minor grammar fix 2017-12-04 15:52:00 -05:00
bastion.md fix typo in bastion.md 2017-08-17 01:14:46 +08:00
boot-sequence.md fix typo 2017-08-16 21:25:20 +08:00
changing_configuration.md Doc updates 2017-03-01 11:39:56 -07:00
cluster_spec.md Support for OIDC 'username-prefix' and 'groups-prefix' flags 2017-12-18 15:34:37 +00:00
cluster_template.md fix: paths in cluster_template.md 2017-11-21 06:25:54 +02:00
cluster_upgrades_and_migrations.md Add makefile target to check markdown links 2017-11-02 19:19:15 -03:00
commands.md Work on cli documentation 2017-05-07 21:03:29 -06:00
creating_subdomain.md Update creating_subdomain.md 2017-05-30 13:23:29 +08:00
download_config.md Fix small typo 2017-07-31 15:57:47 -04:00
etcd_backup.md Fix typo "snapshot" in etcd_backup.md 2017-02-28 15:41:55 +01:00
etcd_volume_encryption.md Remove docs regarding manual IAM modification 2017-02-12 01:28:57 -05:00
experimental.md add EnableExternalDNS feature flag 2017-05-28 19:20:06 -04:00
gpu.md Experimental nvidia driver installation via a hook 2017-04-19 00:43:59 -04:00
high_availability.md moved documentation from cli to high_availability.md 2017-10-04 23:27:07 -07:00
http_proxy.md Add support for cluster using http forward proxy 2017-08-07 14:30:42 -04:00
iam_roles.md Update IAM roles documentation based on recent changes. 2017-10-30 16:41:55 +00:00
images.md Add docs that debian 9 images should work 2017-09-30 15:57:49 -04:00
install.md Add homebrew devel/HEAD notes to docs and cleanup 2017-11-16 16:29:09 -05:00
instance_groups.md Reload bot 2017-11-16 14:06:21 -05:00
kubectl.md added documentation index 2017-06-14 16:05:52 +02:00
labels.md Fix a documentation instance group doc typo 2017-07-11 15:49:50 -07:00
manifests_and_customizing_via_api.md Fix typo in link (lables.md -> labels.md) 2017-08-16 09:32:10 -04:00
mfa.md Fix minor typo 2017-12-14 14:18:14 +00:00
networking.md Add support for Amazon VPC CNI plugin 2017-12-17 18:08:24 -03:00
node_resource_handling.md fix typo 2017-08-18 08:42:47 +00:00
ns.md Make cmd1 populate the var for cmd2 2017-09-13 15:32:41 -04:00
philosophy.md Schema v1alpha2 2016-12-18 21:56:57 -05:00
releases.md 1 -> Majority for testing apres release 2016-12-05 08:41:16 -07:00
rotate-secrets.md Add initial docs for how to rotate a CA keypair 2017-10-29 20:52:54 -04:00
run_in_existing_vpc.md Merge pull request #4061 from meringu/create-subnets 2017-12-18 21:12:59 -08:00
secrets.md improve documentation for secrets 2017-08-28 16:42:47 +02:00
security.md Requested Changes 2017-08-08 13:47:08 +01:00
single-to-multi-master.md Create all master instance groups at first 2017-06-19 18:36:56 +09:00
state.md
terraform.md Fixes #2535. 2017-05-11 01:17:14 -07:00
topology.md docs/topology - Fix the rolling-update command 2017-07-31 14:01:44 +05:30
update_kops.md Add homebrew devel/HEAD notes to docs and cleanup 2017-11-16 16:29:09 -05:00
upgrade.md Update upgrade.md 2017-04-23 12:00:14 -04:00
upgrade_from_k8s_12.md Fixes for import from kube-up 2016-12-27 00:18:18 -05:00
upgrade_from_kops_1.6_to_1.7_calico_cidr_migration.md added missing command 2017-08-02 16:08:38 +02:00
upgrade_from_kubeup.md Fixes for import from kube-up 2016-12-27 00:18:18 -05:00
vsphere-dev.md Added documentation for vSphere support status. 2017-07-01 14:08:53 -04:00
vsphere-development-status.md Added documentation for vSphere support status. 2017-07-01 14:08:53 -04:00

README.md

Documentation Index

Quick start

Overview

Command-line interface

Advanced / Detailed List of Configurations

API / Configuration References

API Usage Guides

Operations

Networking

kops design documents

Security

Inspection

Development