Commit Graph

130 Commits

Author SHA1 Message Date
k8s-ci-robot cbf7b0886e
Merge pull request #5122 from justinsb/rolling_update_by_role
Allow rolling-update to filter on roles
2018-05-11 10:50:30 -07:00
Justin Santa Barbara ffd57062aa Allow rolling-update to filter on roles
This is important for the e2e upgrade tests
2018-05-09 12:00:12 -04:00
AdamDang bb623dbc92
Update kops_validate_cluster.md 2018-05-09 23:35:51 +08:00
AdamDang 7aaf10273a
Update kops_validate.md 2018-05-09 23:35:11 +08:00
Justin Santa Barbara 738cadb45a Update generated docs 2018-04-18 21:02:22 -04:00
sunlintong e735414448 add 2018-04-03 16:46:09 +08:00
k8s-ci-robot fc1bed4353
Merge pull request #4224 from nebril/cilium-support
Add Cilium as CNI plugin
2018-03-26 07:49:02 -07:00
Przemysław Dąbek a94eee33c8 cluser => cluster 2018-03-21 07:35:12 +01:00
Maciej Kwiek bca52dede9 Add Cilium as CNI plugin
Signed-off-by: Maciej Kwiek <maciej@covalent.io>
2018-03-20 13:07:26 +01:00
Kyle Rockman 8382cbbe57 redo documenation generation after PR changes 2018-03-09 10:21:24 -06:00
Kyle Rockman 148655da1f recompile documentation 2018-03-09 10:14:00 -06:00
k8s-ci-robot 1c75f47510
Merge pull request #4526 from mad01/custom-ca
custom ca new implementation of #2924
2018-03-01 12:52:28 -08:00
Alexander Brandstedt 62ab65e8e3 implementation custom ca cert and key #2924
- implementing as new subcommand keypair to secret
- rename of LoadPEMCertificate to ParsePEMCertificate to have
  the same naming of parsing of certificate/private key bytes in
  the same package result is
    pki.ParsePEMPrivateKey(privateKeyBytes)
    pki.ParsePEMCertificate(certBytes)
2018-03-01 09:50:04 +01:00
Justin Santa Barbara 6f52996c2a Experimental kops set cluster command
Introduce an experimental kops set cluster command, for setting
individual fields in the same style as the kops create cluster
--override flags.

For now, feature flag gated by the same SpecOverrideFlag feature flag.

Also split out pkg/commands package to facilitate testing.
2018-02-26 09:33:16 -05:00
chrislovecnm 64439b4846 updating cli documentation for override-lifecycles 2018-02-19 13:27:08 -07:00
klaus993 4ea6623933 Add clarification in instance group deletion
It can happen that, if one is accustomed to target the configuration to
terraform (for example), one does not expect it to be applied automatically,
but perform a `kops update cluster --target=terraform` followed by a `terraform
apply`. It's a disruption of common flow and it should be clarified.
2018-02-14 16:31:01 -03:00
klaus993 43251fbb60 Change example in create ig --help
Add another subnet to the first example to show how to pass multiple subnets.

And run `make gen-cli-docs`.
2018-02-13 19:12:31 -03:00
Justin Santa Barbara 7dfca05c09 Remove federation support
As it has been removed from upstream kubernetes, in favor of the
multicluster revamp.
2018-02-03 16:53:39 -05:00
k8s-ci-robot dbc81d2be1
Merge pull request #4199 from dictvm/patch-1
Extend examples of subnet parameter
2018-02-02 02:27:24 -08:00
Daniel Heitmann 3a34895e71 Improve Instance Group subnet creation CLI parameter description
Make it more obvious which input is expected.
2018-01-29 14:20:56 +01:00
k8s-ci-robot 923118eee0
Merge pull request #4166 from mrballcb/interactive_cli_opt
Interactive cli opt
2018-01-26 12:25:33 -08:00
k8s-ci-robot b02a73fa2c
Merge pull request #4184 from chrislovecnm/rbac-default
Switching the default for kops to create a cluster with RBAC enabled.
2018-01-26 10:52:33 -08:00
Peter Rifel 9b3f0c17ea Fix typo in --target description 2018-01-08 12:10:03 -08:00
k8s-ci-robot b8a701b2da
Merge pull request #4107 from chrislovecnm/validate-ouput
kops validate cluster can output YAML or JSON
2018-01-08 02:47:11 -08:00
Justin Santa Barbara ec8db8b78c Initial implementation of bundle command
The bundle command will support enrollment of a machine via SSH.
2018-01-04 18:55:28 -05:00
chrislovecnm 120cd93c26 Switching the default for kops to create a cluster with RBAC enabled.
When kops creates a cluster RBAC is enabled by default.
2018-01-03 00:31:05 -07:00
Todd Lyons c3c7f31cb1 Doc addition from make gen-cli-docs 2017-12-28 15:56:18 -08:00
chrislovecnm ab4058d37d updating docs 2017-12-19 23:07:55 -07:00
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
Manuel de Brito Fontes 2e05dd17aa Add support for Amazon VPC CNI plugin 2017-12-17 18:08:24 -03:00
Henry Muru Paenga 48d4a7cb1a Add --subnets and --utility-subnets to kops create cluster 2017-12-14 13:57:54 +13:00
Justin Santa Barbara 33b7432d6a Fix segfault when updating non-existent object
Fix #3935
2017-12-01 11:00:46 -05:00
Kashif Saadat 79eef3cc6c Support replacing kops secrets via force flag 2017-11-21 11:47:03 +00:00
Justin Santa Barbara 3ab71d19ab Tweak kops create ig flag to edit, not editor
As EDITOR is the env var used to configure the editor, which will be
confusing.
2017-11-14 03:17:19 -05:00
Julio Chana 9ca5f9ac98
Change no-edit flag to edit 2017-11-13 11:32:24 +01:00
Julio Chana a32da0748d
Generate cli docs 2017-11-10 14:06:38 +01:00
Justin Santa Barbara 07c221bf6b
Merge branch 'master' into feature/kops-add-master-public-name 2017-11-06 22:58:57 -05:00
chrislovecnm a25b5d7364 adding -y to various commands that use --yes. kops create,
rolling-update and update now include -y.
2017-11-05 17:33:24 -07:00
chrislovecnm 4c82a6d5d4 Fixing YAML and JSON output across multiple cli functions. Also
Added --dry-run for create_ig and create_cluster
2017-11-04 17:04:44 -06:00
Rohith 0e2e20bc15 Kops Templating
Adding an extra option to the toolbox templating to format the YAML before writing out; which is usefull to cleanup formating issues and as detecting errors in the template

- added a formating options --format-yaml to the toolbox template which cleans up the yaml before writing out
- updated the cli documentation
- added the --config-value used to grab the configuration
2017-10-30 12:05:11 +00:00
chrislovecnm ceafc684f2 updating documenation for new phases name 2017-10-26 12:37:55 -06:00
chrislovecnm 384c74d66c Refactoring IAM phase to Security Phase 2017-10-26 12:28:50 -06:00
Rohith 9958d333ae Kops Toolbox Template
The current implementation fails on template which reference unset variables, it is however useful at times to permit overriding this behavior and using sprig default() for example methods to handle it

- added a new command line option --fail-on-missing (defaults to true, so keeps the current behaviour)
- updated the unit test to reflect the changes
- updated the cli docs
2017-10-22 14:29:23 +00:00
John Laswell a6dbc73502
docs updates to clarify and fix typos
Helps with https://github.com/kubernetes/kops/issues/3441.
2017-09-26 19:50:38 -04:00
chrislovecnm 9ed7c5537d cli docs updated 2017-09-23 18:14:45 -06:00
chrislovecnm acb5e8b5a6 promoting drain and validate by setting feature flag to true 2017-09-23 16:48:01 -06:00
georgebuckerfield da36425dfb Enable support for encryption-at-rest
- add a new kops secret command to store encryption config
- add the experimential-encryption-provider-config flag to the kube-apiserver
- add functionality to nodeup to create the stored encryption config in the correct path
2017-09-22 17:14:51 +01:00
Marius Davidsen 34cbbd20db Adds --master-public-name argument to create_cluster. 2017-09-15 13:20:20 +02:00
Caleb Gilmour 79d331e590 Add support for Romana as a networking option 2017-09-13 22:48:18 +00:00
Kubernetes Submit Queue 26e1cb06bf Merge pull request #3190 from justinsb/flannel_vlxan
Automatic merge from submit-queue

Flannel: change default backend type

We support udp, which has to the default for backwards-compatibility,
but also new clusters will now use vxlan.
2017-09-12 19:03:17 -07:00