Peter Rifel
1faeb36d37
Address feedback and test failures
2020-07-22 22:19:00 -05:00
John Gardiner Myers
a45b07c156
Reduce the lifetime of exported kubecfg credentials
2020-07-17 22:39:01 -07:00
Kubernetes Prow Robot
022fec8606
Merge pull request #9471 from johngmyers/ig-per-zone
...
Create one nodes instance group per zone
2020-07-17 12:34:54 -07:00
John Gardiner Myers
e9b8e4e39a
Create zero-node IGs if more zones than nodes
2020-07-17 11:26:09 -07:00
John Gardiner Myers
fbc235a3fe
Create one nodes IG per zone
2020-07-17 11:26:09 -07:00
John Gardiner Myers
3201cc4dd8
Require extra flag when updating cluster with downgraded kops version
2020-07-17 11:11:12 -07:00
Kubernetes Prow Robot
6f3c067e5e
Merge pull request #9280 from olemarkus/no-admin
...
Specify user on export kubecfg
2020-07-17 11:00:51 -07:00
Ole Markus With
aab5054ffc
Add networking provider for using etcd-manager for cilium
...
This is the only feasible way of adding the additional etcd cluster for a cilium e2e test
2020-07-07 21:06:21 +02:00
Peter Rifel
7582109b23
Update AWS VPC CNI docs to use --networking amazonvpc
2020-07-06 17:40:21 -05:00
Ole Markus With
72fd007acf
Don't export admin user by default. Allow specifying existing user when exporting context
2020-06-24 19:54:25 +02:00
John Gardiner Myers
a76a1cd127
Remove unused model options
2020-06-21 22:37:16 -07:00
Ciprian Hacman
279fd313ec
Address review comments
...
Co-authored-by: Peter Rifel <rifelpet@users.noreply.github.com>
2020-06-20 19:33:42 +03:00
Ciprian Hacman
fa9b4ac217
Add master and node image options when creating a cluster
2020-06-19 22:23:05 +03:00
John Gardiner Myers
0d74344a43
Remove the baremetal cloud provider
2020-06-14 10:38:29 -07:00
Ole Markus With
2abded190a
Update cmd help text
2020-06-11 08:37:10 +02:00
John Gardiner Myers
f9b0415093
Update generated files
2020-06-04 12:13:49 -07:00
Kubernetes Prow Robot
c6dcaa8199
Merge pull request #9154 from MoShitrit/issue-9031
...
Add support for encryption in Cilium
2020-06-04 03:11:15 -07:00
Zhou Hao
deb90e4ea4
Add example for describe secret
...
Signed-off-by: Zhou Hao <zhouhao@cn.fujitsu.com>
2020-06-02 10:38:34 +08:00
Ole Markus With
7342525872
Remove vsphere from kops files
2020-05-30 13:36:55 +02:00
Zhou Hao
6f1fcf1944
Add example for delete secret
...
Signed-off-by: Zhou Hao <zhouhao@cn.fujitsu.com>
2020-05-29 08:40:29 +08:00
MoShitrit
316a0e2b00
Adding encryption support for Cilium
...
Adding support for 'secret-name' flag
Adding instructions to enable encryption
Updating docs for cli
Addressing comments
Adding ciliumpassword subcommand to 'kops create secret'
Updating command to generate ciliumpassword secret
2020-05-25 01:54:24 -04:00
Ole Markus With
6e04586361
Docs fixes
2020-05-22 08:08:58 +02:00
Ole Markus With
95d2170fa6
Update networking in kops create
...
* Remove classic from cli docs. Add missing providers
* Use cilium instead of weave in example since we don't consider weave stable
2020-05-22 08:08:58 +02:00
Jesse Haka
11eaacd53e
validationtimes -> validationcount
2020-04-08 13:55:29 +03:00
Jesse Haka
e1e79790ef
validate cluster n times in rolling update
2020-04-08 13:55:24 +03:00
eric-hole
b3d65ffce0
Adds a gce-service-account flag so you BYO service-account
...
Generated code and some cleanup
Not sure where that code went
Tests for service account
fixes case on gceserviceaccount
2020-04-04 21:15:56 -07:00
Kubernetes Prow Robot
51e8563bd5
Merge pull request #8515 from hakman/validate-wait-consecutive
...
Wait for validation to succeed N consecutive times
2020-03-20 05:02:35 -07:00
John Gardiner Myers
2e920d75c1
Fix command descriptions to match new cluster validation behavior
2020-03-15 17:25:13 -07:00
John Gardiner Myers
33e23166e4
Support the kops.k8s.io/needs-update annotation on nodes
2020-03-09 22:43:09 -07:00
John Gardiner Myers
b098e4c4c2
Fix punctuation
2020-03-02 19:11:12 -08:00
Ciprian Hacman
ad247a9c75
Wait for validation to succeed N consecutive times
2020-02-21 16:18:04 +02:00
Justin Santa Barbara
adf2a5c681
Update cli docs
...
klog added a flag (add_dir_header).
2020-01-17 06:35:22 -05:00
Kubernetes Prow Robot
6978d68e87
Merge pull request #8179 from vvbogdanov87/add-all-export-config
...
Add all flag to export cluster command
2019-12-27 09:30:15 -08:00
Ciprian Hacman
8b15e5b03a
Add --container-runtime cli flag
2019-12-22 22:16:04 +02:00
vvbogdanov87
526cdce3c7
Add all flag to export cluster command
2019-12-22 19:46:04 +08:00
Kubernetes Prow Robot
db11481e37
Merge pull request #8110 from vvbogdanov87/validate-cluster-kubeconfig
...
Add kubeconfig flag to validate cluster command
2019-12-17 06:41:59 -08:00
eric-hole
4d280e44a6
update gnerated CLI docs as per Pete's typo fix
2019-12-16 20:10:16 -08:00
Eric Hole
8d1d0f6f15
Update docs/cli/kops_create_cluster.md
...
Co-Authored-By: Peter Rifel <rifelpet@users.noreply.github.com>
2019-12-16 16:16:34 -08:00
vvbogdanov87
9befa17496
Generate cli documentation
2019-12-16 19:53:41 +08:00
eric-hole
723abce4e5
Generated code: kops_create_cluster
2019-12-15 23:54:39 -08:00
Josh Branham
ff5364b59a
Fix gen docs
2019-11-23 19:50:25 -05:00
Jesse Haka
5e3b94ae17
use existing network and subnet
2019-10-27 08:21:25 +02:00
Kubernetes Prow Robot
927094fcda
Merge pull request #7371 from justinsb/kops_validate_now_supports_wait
...
Add --wait argument to kops validate
2019-09-19 11:57:00 -07:00
Jesse Haka
d9da911457
run gen docs
2019-08-30 08:22:50 +03:00
Justin SB
eb4fe3f8ff
Generate docs
...
https://github.com/kubernetes/kubernetes/pull/72137 appears to have
introduced spurious spaces, but I think we can live with it for now.
2019-08-26 07:54:30 -07:00
Justin SB
6a6bd7d8a0
Add --wait argument to kops validate
...
With this argument, kops validate will poll until the timeout expires,
waiting for readiness. On readiness or on timer expiration, it exits
as if wait was not present.
2019-08-16 09:50:29 -04:00
Justin SB
9df2e4bbfb
Speed up rolling-update - longer timeout on validation, less scheduled holds
...
We reduce the amount of time we wait on a purely scheduled basis
during a rolling-update, and instead increase the timeout on the
validation.
This will be a behavioural change - particularly for `--cloudonly`
mode, but that mode seems more useful when things are going wrong
anyway, when people will likely set _even lower_ timeouts.
2019-05-16 03:37:35 -07:00
Justin SB
547b5bbbb9
Update CLI docs
2019-05-06 13:44:41 -04:00
Adam Yang
40a1461a1d
fix documentation
2019-02-19 22:26:59 -05:00
Kubernetes Prow Robot
70484c009a
Merge pull request #6232 from justinsb/ask_kops_for_its_version
...
kops version: Add --short flag, use it to get version in scripts
2019-01-27 13:50:37 -08:00
Justin SB
b40c9034bd
kops version: Add --short flag, use it to get version in scripts
...
We upload to a location that includes the version, but we need to
specify the version in KOPS_BASE_URL. We expose an option to make
`kops version` more amenable to this scripting.
2019-01-22 22:27:33 -05:00
Derek Lemon -T (delemon - AEROTEK INC at Cisco)
e0a16a9252
Docs for openstack addition
2019-01-20 00:10:11 -07:00
Justin SB
26bd75aecb
Bulk spelling fixes
...
Experimenting with my own spelling checker, these are the typos it caught.
2018-12-20 17:43:56 -05:00
Peter Rifel
f66a2abc40
Add --post-drain-delay to rolling-update cluster command
2018-12-14 21:09:55 -08:00
Kubernetes Prow Robot
1f38ac53b8
Merge pull request #6185 from rdrgmnzs/cluster-rotation-validation-timeout
...
Let a user specify the validation timeout when rotating a cluster.
2018-12-09 17:48:54 -08:00
Rodrigo Menezes
a6116381c9
add docs
2018-12-08 17:45:51 -08:00
mikesplain
3c7756a4e5
Add -y for upgrade command
2018-12-06 12:56:48 -05:00
Kenjiro Nakayama
4489d86aff
Add cni to usage network option for kops create cluster
2018-12-01 11:53:48 +09:00
k8s-ci-robot
5dce6b1e6f
Merge pull request #5875 from seanson/5700_add_flag_for_no_subnet_tags
...
#5700 : Add command line flag for disabling Subnet ELB tags
2018-11-09 13:05:48 -08:00
Ian Hoegen
312813e4c5
Add stdin input for secrets
2018-10-23 11:38:45 -07:00
Sean Johnson
737a7a2cb8
5700: Add command line flag for disabling Subnet ELB tags
2018-10-10 12:48:06 +11:00
k8s-ci-robot
87808fb489
Merge pull request #5854 from posquit0/patch-2
...
Fix mis-typing in CLI command documentations
2018-10-08 22:40:34 -07:00
Justin Santa Barbara
01d188af38
Sync up CLI args help
...
Follow on to #5425 ; another flag and we need to update the source code
as well as the output.
Follow on also to #5721 and #4687
2018-10-08 17:03:00 -07:00
Justin Santa Barbara
4039ae8a42
Merge pull request #5721 from AdamDang/patch-8
...
Small typo fix
2018-10-08 19:52:00 -04:00
Justin Santa Barbara
b1db2f362b
Merge pull request #5425 from marceliwac/patch-1
...
Fixed duplicate info
2018-10-08 19:15:19 -04:00
Byungjin Park
543d12bd22
Fix mis-typing in CLI command documentations
2018-10-04 11:33:33 +09:00
Rodrigo Menezes
ac38ecde6e
fix typos
2018-10-03 16:04:36 -07:00
AdamDang
20cdb50fd5
Update kops_create.md
2018-08-30 14:34:20 +08:00
AdamDang
fc7f068ae4
Update kops_create_secret.md
2018-08-30 14:33:15 +08:00
AdamDang
31d772390a
Update kops_create_secret_dockerconfig.md
2018-08-30 14:31:29 +08:00
AdamDang
2b50a1c11f
Update kops_create_secret_sshpublickey.md
2018-08-30 14:30:03 +08:00
Justin Santa Barbara
2d76046f85
kops set: fix example
...
The example included an incorrect field specifier.
2018-07-24 23:22:42 -04:00
k8s-ci-robot
9d7b2d17b0
Merge pull request #5108 from usabilla/set-values
...
Adds ability to set template context values on command line
2018-07-19 13:11:17 -07:00
k8s-ci-robot
54cbe492cb
Merge pull request #5414 from Raffo/master
...
[WIP] Initial implementation of ACM certificate for API server ELB
2018-07-19 08:34:54 -07:00
Christian Kampka
ed08820909
Generate random weave password it none is supplied
2018-07-18 19:41:57 +02:00
Christian Kampka
3bf8a8fcd2
Add weave network encryption secret
2018-07-13 16:57:48 +02:00
Gijs Kunze
0ccaf4fd8e
Fixes complex --set parsing
2018-07-11 16:46:32 +02:00
Gijs Kunze
381c30ea4a
Added the ability to set individual values for the toolbox template command
2018-07-11 16:45:26 +02:00
Marceli-Wac
8ebfef3f5c
Fixed duplicate info
...
Fixed duplicate info about default value for --topology flag
2018-07-10 10:01:50 +02:00
Raffaele Di Fazio
b5ea3359a9
Added new flag doc to kops_create_cluster documentation
2018-07-08 16:23:23 +02:00
Kashif Saadat
7b5cb2dc33
Update rolling update ig roles flag to be case insensitive
2018-06-27 10:26:48 +01:00
k8s-ci-robot
127e031948
Merge pull request #5256 from justinsb/dont_autoload_key_on_gce
...
Don't autoload SSH key on GCE
2018-06-17 08:38:29 -07:00
Justin Santa Barbara
1549b6e961
Don't autoload SSH key on GCE
...
This lets us merge #5056
2018-06-17 09:11:06 -04:00
Justin Santa Barbara
b334650c68
Merge branch 'master' into feature-2435-s3configfile
2018-06-11 11:53:23 -04:00
Justin Santa Barbara
ef5936d8b5
Support overlay2 in docker
...
We also have to stop passing the flag on ContainerOS, because it's set
in /etc/docker/default.json and it's now an error to pass the flag.
That in turn means we move those options to code, which are the last of
those legacy config options. (We still have a few tasks declaratively
defined though)
2018-06-07 17:11:11 -04:00
k8s-ci-robot
0afac24a4f
Merge pull request #5284 from noinarisak/kops_edit_instancegroup_correction
...
Update kops_edit_instancegroup.go and kops_edit_instancegroup.md
2018-06-06 14:28:24 -07:00
Noi Narisak
4bc3155edb
Update kops_edit_instancegroup.go and kops_edit_instancegroup.md
...
Update the Example section. Was trying to use command example and discovered that `node` gave any error. Changing it `node` to `nodes` resolve it.
2018-06-06 15:02:57 -05:00
Rodrigo Menezes
11b3da7a87
Clarify the usage of the --state flag.
2018-06-05 09:48:14 -07:00
Ian Hoegen
ae8bdf08c5
Add stdin support for create -f and replace -f
2018-05-14 13:29:37 -07:00
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
Julien SENON
1db9691901
Update after make gen-cli-docs
2018-04-25 00:10:30 +02:00
Julien SENON
9829245f3f
Generate make gen-cli-docs
2018-04-22 16:50:14 +02: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
Justin Santa Barbara
f463a8e30e
Add docs for flannel-vxlan option
2017-09-12 20:53:00 -04:00
Rohith
aaf6143a98
Toolbox Templating
...
Extending the current implementation of toolbox template to include multiple files and snippets. Note, i've removed the requirements for defaults as I think people should be forced to specifically pass them.
- fixing the vetting iseues to the method YamlToJson -> YAMLToJSON
- adding a safety check to ensure templates don't reference an unknown value
- extending the unit test to ensure the above works on main and snippets
- include the ability to specify multiple configuration files, useful for common.yaml and prod.yaml etc
Requested Changes - Toolbox Templating
Added the requested changes
- moved the templater into it's own package rather than using base util
- moved to using the sprig library for additional template function
- @note: i couldn't find a native way in sprig to do snippets, also the i've overloaded the indent as it appears to do the indent on all lines rather than on the newline, meaning i'd have to shift my first line back by the indent to get it to work, which seems ugly
2017-09-08 20:30:21 +01:00
Justin Santa Barbara
6d2185a6cd
Fix space in rolling-update cluster help
...
When we use pretty.Bash, we must use pretty.LongDesc to stop the spacing
being mangled.
2017-08-26 07:39:17 -04:00
Kubernetes Submit Queue
1e3eef37bf
Merge pull request #3245 from mad01/sshsecret
...
Automatic merge from submit-queue
Adding support for adding ssh public key from file
MVP implementation of adding secret from file related to #2195
```bash
cat > secret.yaml <<EOF
apiVersion: kops/v1alpha2
kind: SSHSecret
metadata:
labels:
kops.k8s.io/cluster: dev.k8s.example.com
spec:
username: "admin"
sshPublicKey: "ssh-rsa AAAAB3NzaC1yc2EEEAADA dev@devbox"
EOF
```
`kops create -f secret.yaml`
2017-08-24 20:18:48 -07:00
chrislovecnm
6071ce7383
refactoring for tracking via assets container registry
2017-08-21 17:29:16 -06:00
Alexander Brandstedt
1eceb788e6
implementation of adding ssh public key using sshsecret spec
2017-08-21 17:18:00 +02:00
lichuqiang
90ed63465b
fix typo
2017-08-17 19:16:13 +08:00
Kubernetes Submit Queue
74d0e211f4
Merge pull request #3193 from orrchen/master
...
Automatic merge from submit-queue
resolve #3169
2017-08-14 06:14:00 -07:00
Orr Chen
43020af959
resolve #3169
2017-08-13 19:16:22 +03:00
Quentin Nerden
5491f179d1
Clarify docs: rename spec to desired conf
...
In the S3 bucket, the file cluster.spec is not actually the spec, but the
actual configuration. The file config is the spec. To avoid confusion,
this commit changes spec/specification into 'desired configuration' in
the documentation, to avoid associating cluster.spec with a cluster
'specification' that the users should use.
2017-08-10 18:50:45 +02:00
asifdxtreme
65e48b553a
Update the docs
2017-08-08 11:03:38 +08:00
Rohith
3599e64205
- fixing up the flag name from --create to --force to make it align to the kubectl syntax
2017-08-04 20:44:49 +01:00
Rohith
70144d1b88
- updated the generated documentation with the new cli option
2017-08-04 20:44:49 +01:00
Kubernetes Submit Queue
10ce978b64
Merge pull request #3040 from mad01/templating
...
Automatic merge from submit-queue
MVP of templating
MVP implementation of templating to generate cluster.yaml file: related to #2404 implementation is using the `text/template`
```bash
cat > values.yaml <<EOF
clusterName: eu1
kubernetesVersion: 1.7.1
dnsZone: k8s.example.com
awsRegion: eu-west-1
EOF
```
```bash
cat > cluster.tmpl.yaml <<EOF
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: {{.clusterName}}.{{.dnsZone}}
name: nodes
spec:
image: coreos.com/CoreOS-stable-1409.6.0-hvm
machineType: m4.large
maxPrice: "0.5"
maxSize: 2
minSize: 15
role: Node
rootVolumeSize: 100
subnets:
- {{.awsRegion}}a
- {{.awsRegion}}b
- {{.awsRegion}}c
EOF
```
running the templating command
```bash
kops toolbox template \
--values values.yaml \
--template cluster.tmpl.yaml \
--output cluster.yaml
```
output
```bash
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: eu1.k8s.example.com
name: nodes
spec:
image: coreos.com/CoreOS-stable-1409.6.0-hvm
machineType: m4.large
maxPrice: "0.5"
maxSize: 2
minSize: 15
role: Node
rootVolumeSize: 100
subnets:
- eu-west-1a
- eu-west-1b
- eu-west-1c
```
2017-08-04 09:26:41 -07:00
Blake
4f95fe473f
Incorporate review feedback
...
- Rename to just DockerConfig / dockerconfig everywhere for consistency
- Check if the config is valid JSON
- Update docs
2017-08-01 13:15:19 -07:00
Blake
4d9c69c167
Add documentation and update text fixture
2017-07-29 13:29:28 -07:00
craigmonson
b58109bf33
fix "dederation"
2017-07-25 15:33:04 -04:00
craigmonson
60a2a0c85f
fix "dederation"
2017-07-25 15:31:00 -04:00
Alexander Brandstedt
3dc91aff1c
remove old docs file
2017-07-25 10:36:29 +02:00
Alexander Brandstedt
89150391c1
remove inline example file with eof
2017-07-25 10:23:59 +02:00
Alexander Brandstedt
b0cf65ceca
correct squash
2017-07-25 10:23:59 +02:00
Alexander Brandstedt
21d43e3187
MPV implementation of templating to generate cluster.yaml file: related to #2404
...
rename command templating to template
2017-07-25 10:23:59 +02:00
Kubernetes Submit Queue
14a8c9ae89
Merge pull request #3014 from BradErz/adding-ssh-access
...
Automatic merge from submit-queue
Adding ssh access flag
Adding --ssh-access flag to seperate from --admin-access
Addresses: https://github.com/kubernetes/kops/issues/3013
2017-07-21 22:43:02 -07:00
Kubernetes Submit Queue
62d702a22b
Merge pull request #2763 from justinsb/lifecycle
...
Automatic merge from submit-queue
Support for lifecycles
2017-07-21 09:59:00 -07:00
Bradley
fa755127a7
Fixing docs
2017-07-20 22:01:47 +01:00
Frederik Nordahl Jul Sabroe
76cec3940c
Fix for the instructions about using KOPS_FEATURE_FLAGS for drain and validate.
2017-07-20 16:19:24 +02:00
Justin Santa Barbara
7a870f65b9
Example of how to do bash in our CLI help
...
* Use the pretty.LongDesc function (which doesn't pipe it through
markdown -> ascii)
* Use pretty.Bash helper to avoid problems with backticks in
go-backtick-quoted-strings
* Make sure indentation is consistent
2017-07-15 22:09:48 -04:00
Justin Santa Barbara
ebc97af7cf
autogen
2017-07-15 22:04:01 -04:00
Justin Santa Barbara
17b3fa36eb
Try adding header to generated CLI docs
...
Fix #2834
2017-07-15 13:14:21 -04:00
Benedict Hartley
c45ba71c0b
Build new docs
2017-07-14 19:53:13 +01:00
Giancarlo Rubio
cbe8742699
review doc on creating instance group
2017-07-06 16:02:21 +02:00
Arve Knudsen
bb776c6ca3
Fix typos in upgrade cluster docs
2017-07-04 00:50:47 +02:00
chrislovecnm
ed5ef173ee
Fixing typo and grammar
2017-06-20 11:37:33 -06:00
chrislovecnm
26224ce371
Work on deletes; no error without "--yes", fixed delete.go deleting ig that does not exist, doc updates.
2017-06-17 22:19:35 -06:00
Justin Santa Barbara
8fb99a87e2
Merge pull request #2680 from murali-reddy/kube-router
...
add support for kube-router as CNI networking provider
2017-06-16 10:37:49 -04:00
Matt Marchetti
c847bd1fa3
Initial commit to add option to set volume size at creation
2017-06-09 10:53:25 -04:00
Murali Reddy
e872dbcb86
add support for kube-router as CNI networking provider
...
fixes #2606
Most part of the changes are similar to current supported CNI networking
provider. Kube-router also support IPVS bassed service proxy which can
be used as replacement for kube-proxy. So the manifest for kube-router
included with this patch enables kube-router to provide pod-to-pod
networking, IPVS based service proxy and ingress pod firewall.
2017-06-09 17:01:31 +05:30
Eric Hole
fb75bdcd31
get now gets a cluster
2017-05-19 17:29:05 -06:00
Willem Mali
cf7d9c71c9
Clarified --image paramater applies to all cluster instances
2017-05-19 14:20:51 +02:00
Willem Mali
1fffc13a22
removed deprecated secrets command subtree from CLI and docs
2017-05-18 14:52:14 +02:00
Mike Splain
3c02a412be
Fix ci failure of 'make gen-cli-docs'
2017-05-16 09:44:30 -04:00
Mike Splain
bd0f18d413
Rename api-loadbalancer to api-loadbalancer-type and cleanup
2017-05-16 09:42:52 -04:00
Mike Splain
bb30f51fc4
Add api-loadbalancer option to force public or internal loadbalancer for the masters
2017-05-16 09:42:52 -04:00
Chris Love
e1cbf82072
Merge pull request #2566 from gianrubio/fix-rolling-upgrade
...
Review rolling-update command
2017-05-15 14:47:58 -06:00
Chris Love
12e4305998
Merge pull request #2565 from gianrubio/fix-completion-command
...
review completion command
2017-05-15 09:59:08 -06:00
Giancarlo Rubio
44ea396832
review rolling-update command
...
export var KOPS_FEATURE_FLAGS in the docs
2017-05-15 16:26:14 +02:00
Justin Santa Barbara
c94373fe88
Merge pull request #2550 from rdtr/accept_kopeio_as_network_spec
...
#2514 support 'kopeio' as networking argument
2017-05-15 10:22:00 -04:00
Giancarlo Rubio
76e40a88d9
review completion command
2017-05-15 12:30:56 +02:00
Norio Akagi
f480ac9a12
fixed #2514 : support 'kopeio' as networking argument
2017-05-12 09:08:53 -07:00
Laurent Crisci
cf6654e60c
Fixed some typos, s/resrouces/resources/
2017-05-11 17:05:50 +01:00
Stefano Vozza
cb53eb3518
mention cloudformation as target in update cluster help
2017-05-08 22:04:24 +01:00
chrislovecnm
53848f1f7f
Work on cli documentation
2017-05-07 21:03:29 -06:00
chrislovecnm
7487b0d756
updating docs, adding verify-gendocs and more build tweaks
2017-05-04 18:58:10 -06:00
chrislovecnm
3d3e03cfab
docs are out of date
2017-04-22 12:56:33 -06:00
chrislovecnm
3b03fe6864
zsh autocompletion and updating docs
2017-04-22 11:55:51 -06:00
Justin Santa Barbara
8bc48ef10a
Merge pull request #2305 from caarlos0/patch-1
...
Fixed typos: clusteres -> cluster
2017-04-06 21:13:36 -04:00
Chris Love
bd564cf7fd
Merge pull request #2240 from MrTrustor/delete-f
...
Implement --filename option for kops delete
2017-04-06 15:41:11 -06:00
Carlos Alexandro Becker
6d9d21b149
fixed typo on kops_rolling-update_cluster
2017-04-06 17:49:25 -03:00
Théo Chamley
d1ff517441
Update documentation for kops delete -f
2017-03-30 18:15:36 +02:00