Commit Graph

864 Commits

Author SHA1 Message Date
Justin Santa Barbara 49e2f03308 Release docs update git push command
The command to push to the release branch was wrong, which meant the
release branch wasn't getting updated.
2017-10-10 06:30:33 -04:00
Justin Santa Barbara 08dc649fde Docs tweak - specify flag, not kube-up env var
ENABLE_CUSTOM_METRICS is a kube-up artifact; the flags are the truth.
2017-10-10 06:23:09 -04:00
Kubernetes Submit Queue 2bc9df1973 Merge pull request #3582 from enxebre/gce-tuto
Automatic merge from submit-queue.

Update gce storage url
2017-10-10 03:12:44 -07:00
Alberto be4c4eb644 Update gce.md 2017-10-10 11:14:36 +02:00
Rahul Mahale bb017bc33f Merge branch 'master' into update-cluster-spec-document-with-custom-metrics-flag 2017-10-10 14:09:30 +05:30
Rahul Mahale b0bb54a08b Add link to kubernetes documentation 2017-10-10 14:07:43 +05:30
chrislovecnm 97d0305fdf tweaks 2017-10-09 20:59:36 -06:00
chrislovecnm fdb4670d61 updating cve advisory for kops-1.7.1 release 2017-10-09 20:52:27 -06:00
Manatsawin Hanmongkolchai a06fbbac79 Added documentation that PolicyConfigMap should not be used during cluster creation 2017-10-10 09:33:48 +07:00
Manatsawin Hanmongkolchai be8aa9fecc Added docs on policyConfigMap 2017-10-10 09:10:05 +07:00
Mike Splain 44b503ee25 1.7.1 Release notes first pass
We'll need to move the current release notes in master for 1.7.1 to 1.8.0 since
they were not included in this release at this time and cherry-pick
these notes into master.
2017-10-09 11:09:56 -04:00
Mike Splain 563938c813 Move old 1.7.1 release notes to 1.8.0 to expedite hotfix release 2017-10-09 09:54:34 -04:00
Rahul Mahale 5d3adf0164 Document enabling custom metrics using kops
- Tested it with kops version 1.7 and k8s v1.7.2
2017-10-09 13:43:24 +05:30
Kubernetes Submit Queue 4440001355 Merge pull request #3514 from gambol99/etcd3
Automatic merge from submit-queue.

Etcd V3 & TLS Support
2017-10-08 22:53:38 -07:00
Chris Love 6d0cefcec8 Fixed table 2017-10-08 15:12:03 -06:00
chrislovecnm ed3651d688 CVE-2017-14491 Documentation Hot Fixes and kops fixes 2017-10-08 14:53:55 -06:00
Kubernetes Submit Queue 079102759f Merge pull request #3528 from justinsb/tutorial
Automatic merge from submit-queue.

First tutorial page: getting started with GCE
2017-10-06 16:31:42 -07:00
Kubernetes Submit Queue 70274617f0 Merge pull request #3540 from electronicarts/create-cluster-doc-update
Automatic merge from submit-queue.

Added documentation on best practices for creating clusters with HA m…

Fix #3389
2017-10-05 00:08:50 -07:00
jatan28 5340f865e1 moved documentation from cli to high_availability.md 2017-10-04 23:27:07 -07:00
jatan28 e8600f7021 Added documentation on best practices for creating clusters with HA masters in regions with 2 AZ 2017-10-04 17:34:16 -07:00
Justin Santa Barbara 0402909689 First tutorial page: getting started with GCE 2017-10-04 11:46:47 -04:00
Rohith 7c2ce19196 Etcd V3 & TLS Support
- adding documentation for the etcd v3 and tls options
2017-10-03 10:10:56 +01:00
Kubernetes Submit Queue 518e97d97b Merge pull request #3510 from justinsb/bazel
Automatic merge from submit-queue.

Initial bazel support

Builds on the 1.8 version bump

The "trick" is to strip the BUILD & BUILD.bazel files from the vendor-ed deps.

Will rebase after 1.8 version bump merges.
2017-10-03 01:19:27 -07:00
Justin Santa Barbara 8b6e2eb8ad docs: clean up installation instructions 2017-10-03 00:37:51 -04:00
Justin Santa Barbara 87b6ba6b19 Initial bazel support 2017-10-02 14:27:20 -04:00
Justin Santa Barbara 424b5b41d7 Regenerated docs/apireference 2017-10-01 21:13:25 -04:00
Justin Santa Barbara 95d4f3eb59 More code updates for 1.8 2017-10-01 21:13:00 -04:00
Justin Santa Barbara 5332ce5fe6 Add docs that debian 9 images should work 2017-09-30 15:57:49 -04: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
Kubernetes Submit Queue fc3716677a Merge pull request #3345 from andreychernih/enable-critical-feature-gate
Automatic merge from submit-queue. .

Enable ExperimentalCriticalPodAnnotation feature gate

Otherwise, it is possible that critical system components will be evicted

https://github.com/kubernetes/kops/issues/3194
https://github.com/kubernetes/kubernetes/issues/51432
2017-09-24 21:59:49 -07:00
Kubernetes Submit Queue ba42020e09 Merge pull request #3329 from chrislovecnm/promote-drain-validate
Automatic merge from submit-queue. .

promoting drain and validate by setting feature flag to true

I am unable to recreate https://github.com/kubernetes/kops/issues/2407, and frankly, it may be an edge case.  We could warn a user if their wait times are low, but that would be another PR.

This PR moves Drain and Validate functionality for rolling-updates into the default user experience, setting the Feature Flag to true.

Per feedback, I am using the node and master interval times for the validation.
2017-09-23 21:07:26 -07:00
chrislovecnm 9ed7c5537d cli docs updated 2017-09-23 18:14:45 -06:00
Kubernetes Submit Queue 3ca46a29f7 Merge pull request #3429 from orangejulius/patch-1
Automatic merge from submit-queue. .

Fix a few typos and clean up hooks section
2017-09-23 16:53:55 -07:00
chrislovecnm acb5e8b5a6 promoting drain and validate by setting feature flag to true 2017-09-23 16:48:01 -06:00
Julian Simioni 57e9a24c34
Fix a few typos and clean up hooks section
The hooks section in the cluster spec documentation had a few typos and other rough spots. This should make it read a little more smoothly.
2017-09-23 17:13:42 -04:00
Kubernetes Submit Queue 6a238539e0 Merge pull request #3368 from georgebuckerfield/enable-data-encryption
Automatic merge from submit-queue. .

Support encryption-at-rest for the kube-apiserver

This PR adds support for enabling encryption-at-rest for data in etcd, via the kube-apiserver (as per https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data).

I've put the functionality behind a feature flag, `+EnableDataEncryption`. It can then be enabled per-cluster by using `--enable-encryption-config` on the command line, or by adding a `kubeEncryptionConfig` section to the cluster spec. This is passed through to the kube-apiserver by the nodeup process. I'm not sure if this is the best way of doing it right now, but it is working.

Fixes #3356.
2017-09-22 17:56:44 -07:00
Kubernetes Submit Queue 0683db2ea3 Merge pull request #2925 from smelchior/master
Automatic merge from submit-queue. .

improve documentation for secrets

I was struggling on how to change a the api basic auth password for my cluster and found this to be the only way to do it. If there is an easier way, let me know and i can adapt the docs again :)
2017-09-22 13:11:44 -07: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
Kubernetes Submit Queue f887bf6f84 Merge pull request #3422 from timothyjosefik/Change-s3-bucket-creation-doc
Automatic merge from submit-queue. .

Changed the s3 bucket creation command.
2017-09-21 21:30:52 -07:00
Kubernetes Submit Queue 66b9838a8c Merge pull request #3215 from johnzeringue/specify-ssh-key-name
Automatic merge from submit-queue. .

Allow specifying a SSH key name for AWS

Related to #2309, this allows naming an existing key pair using the
cluster spec field `sshKeyName`.

In our use case, kops can now be used without providing the ability to
create EC2 key pairs.
2017-09-20 21:15:43 -07:00
Timothy Josefik 18129f4f9b Changed the s3 bucket creation command. This was done because if someone is following along but wants to use a different region then the original command will not always create the bucket in that region. Here is the issue in the aws-cli that provides more information on the problem. https://github.com/aws/aws-cli/issues/1667 2017-09-20 16:58:39 -05:00
Andrey Chernih 4faa91eda6 Add to release notes for 1.8 2017-09-18 20:07:53 -07:00
Andrey Chernih b3acc4b5f8 Merge branch 'master' into enable-critical-feature-gate 2017-09-18 20:05:22 -07:00
Andrey Falko a683ccd7af Update provisioned iops doc example 2017-09-18 19:01:30 -07:00
Marius Davidsen 34cbbd20db Adds --master-public-name argument to create_cluster. 2017-09-15 13:20:20 +02:00
Kashif Saadat 058fb1e93f Correct typo in Hooks Spec examples 2017-09-15 08:29:05 +01:00
Kubernetes Submit Queue 5cb443d4a9 Merge pull request #3290 from romana/romana-networking-option
Automatic merge from submit-queue

Add romana to built-in CNI options

This PR adds `romana` as a networking option for kops.

It installs the latest "preview" release of Romana v2.0, which provides the expected features in terms of IP allocations and route configuration. Network policy features are being ported to 2.0 and will be in the final release. (We intend to submit a followup PR for kops as part of that rolling out that release.)

Note: in this setup, we're using the etcd cluster that kops deploys for k8s. This isn't ideal, but some possibilities (eg: StatefulSets) aren't practical for the CNI itself, and creating a parallel etcd cluster via manifests seemed to be a more-intrusive approach than using the existing one.
If this is a concern or problem, then I'm very open to discussing and implementing it based on your suggestions.

Also, some functionality is exclusive to AWS environments. Other cloud platforms are on Romana's roadmap but not developed yet. Let me know that restriction needs to be enforced in code or directly documented.
2017-09-14 20:43:05 -07:00
Kubernetes Submit Queue 4b5d6e4588 Merge pull request #3360 from qqshfox/patch-1
Automatic merge from submit-queue

Add a doc to describe how to use kops in AWS China

Closes #2933, closes #3282.

@wangycc, @mgyong, @hb404 This doc might be helpful for you guys to deploy a cluster in AWS China Region.

@chrislovecnm, @justinsb Please help to review. Thanks.
2017-09-14 18:17:46 -07:00
Kubernetes Submit Queue a582fbf68f Merge pull request #3377 from RichardBronosky/patch-1
Automatic merge from submit-queue

small docs improvement

Make cmd1 populate the var for cmd2

Using `tee /dev/stderr` allows the user to still get output if they copy-pasta the first command. The other changes prepare the HZC variable so it can be used if they copy-pasta the second command.
2017-09-14 17:43:57 -07:00
Hanfei Shen e9b1648e9f Add a doc to describe how to use kops in AWS China
Closes #2933, #3282.
2017-09-15 08:26:44 +08:00
Kubernetes Submit Queue 893217fea0 Merge pull request #3333 from robinpercy/node-port-range
Automatic merge from submit-queue

Added ability to set --service-node-port-range

Addresses: #3052 and #3326 

From what I can tell, `--service-node-port-range` has been a valid option forever, so I haven't worried about k8s versions.

@justinsb @chrislovecnm let me know if any changes are required.
2017-09-14 17:11:15 -07:00
Kubernetes Submit Queue 159a21c4d0 Merge pull request #3372 from fvasco/patch-1
Automatic merge from submit-queue

switch monitoring-standalone to v1.7.0
2017-09-14 16:32:18 -07:00
Reen Lokum f3feeb5062 Other regions require LocationConstraint
When not in the us-east-1 region the LocationConstraint configuration is required for the s3api.
2017-09-14 14:06:10 +02:00
Caleb Gilmour 79d331e590 Add support for Romana as a networking option 2017-09-13 22:48:18 +00:00
Bruno Bronosky 7d6b61a645 Make cmd1 populate the var for cmd2
Using `tee /dev/stderr` allows the user to still get output if they copy-pasta the first command. The other changes prepare the HZC variable so it can be used if they copy-pasta the second command.
2017-09-13 15:32:41 -04: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
Francesco Vasco ffffba4848 switch monitoring-standalone to v1.7.0 2017-09-12 10:38:51 +02:00
Kubernetes Submit Queue 27a6193c6c Merge pull request #3361 from PI-Victor/minor_fix_link
Automatic merge from submit-queue

docs: fix broken vSphere doc link
2017-09-10 14:06:07 -07:00
Victor Palade c38f2b6aa3
docs: fix broken vSphere doc link 2017-09-10 19:44:20 +02: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
Robin Percy e1b20c0217 Added ability to set --service-node-port-range on kube-apiserver 2017-09-07 17:01:15 -07:00
John Zeringue 13d22fdd1a Allow specifying a SSH key name for AWS
Related to #2309, this allows naming an existing key pair using the
cluster spec field `sshKeyName`.

In our use case, kops can now be used without providing the ability to
create EC2 key pairs.
2017-09-07 08:24:13 -04:00
Andrey Chernih fcf78ebcd2 Document that ExperimentalCriticalPodAnnotation is enabled by default 2017-09-05 22:04:04 -07:00
Steven Santos Erenst a7d2907a52 Fix broken link in aws.md
aws.md linked to advanced_create.md which was deleted in
https://github.com/kubernetes/kops/pull/2725. Its contents were added to
high_availability.md. Update the link to point to the relevant section in
high_availability.md.

Signed-off-by: Steven Santos Erenst <stevenerenst@gmail.com>
2017-08-31 18:27:07 -07:00
Kubernetes Submit Queue 155650eb82 Merge pull request #2504 from reactiveops/flag-watch-ingress
Automatic merge from submit-queue

Adds DNSControllerSpec and WatchIngress flag

This PR is in reference to #2496, #2468 and the issues referenced in there relating to use of the watch-ingress flag. 

This PR attempts to rectify this situation and gives users who want it, the option to turn on watch-ingress without forcing it on them. Also spits out a warning to the logs about potential side effects.

Includes notes in `docs/cluster_spec.md` to explain.
2017-08-29 23:31:57 -07:00
Krishna m-Kumar 30a23fcdcd Update aws.md
pointing links to the k8s slack directly.
2017-08-29 15:21:21 +05:30
Eric Hole 673cdf6b5f Fixes merge conflicts 2017-08-28 19:10:21 -07:00
Sebastian Melchior 6e29638724 improve documentation for secrets 2017-08-28 16:42:47 +02: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 325047c0ca Merge pull request #3266 from Rajadeepan/Rajadeepan-patch-2
Automatic merge from submit-queue

Fix Broken Link
2017-08-24 23:58:50 -07: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
Justin Santa Barbara c9c621e03e Merge pull request #3261 from tmjd/calico-upgrade-release-note
Started release notes for 1.7.1
2017-08-24 20:46:02 -04:00
Rajadeepan D Ramesh ffc3aa5c8d Fix Broken Link
Fix Broken Link
2017-08-25 02:14:35 +05:30
Justin Santa Barbara b61b74408b Update images in CI tests 2017-08-24 10:27:27 -04:00
Erik Stidham a0782b0e4f Started release notes for 1.7.1 2017-08-24 09:05:12 -05:00
Kubernetes Submit Queue 73c2ea8f8f Merge pull request #3262 from murali-reddy/kube-router-docs
Automatic merge from submit-queue

Add documentaion to kube-router section of docs/networking

Adding couple of sentences to kube-router documentation.
2017-08-24 00:37:41 -07:00
Kubernetes Submit Queue 5b76cd3833 Merge pull request #3237 from justinsb/17_is_released
Automatic merge from submit-queue

Fix heading on 1.7 notes
2017-08-23 23:36:33 -07:00
Murali Reddy af8d0f6917 Add documentaion to kube-router section of docs/networking 2017-08-24 10:35:07 +05:30
Dave Powell f82bbbcde0 Fix README.md fragment links 2017-08-23 12:19:26 -04:00
Alexander Brandstedt 66d4c4ed67 change PulicKey to lower p as in publicKey in json 2017-08-23 12:38:27 +02:00
Alexander Brandstedt 5705885d02 rename sshsecret to sshcredential and update files to reflect change. 2017-08-23 12:18:10 +02:00
Kubernetes Submit Queue 4edc267fb8 Merge pull request #3090 from gambol99/file_assets
Automatic merge from submit-queue

Cluster / InstanceGroup File Assets

@chrislovecnm @justinsb ... 

The current implementation does not make it ease to fully customize nodes before kube install. This PR adds the ability to include file assets in the cluster and instaneGroup spec which can be consumed by nodeup. Allowing those whom need (i.e. me :-)) greater flexibilty around their nodes. @Note, nothing is enforced, so unless you've specified anything everything is as the same

- updated the cluster_spec.md to reflect the changes
- permit users to place inline files into the cluster and instance group specs
- added the ability to template the files, the Cluster and InstanceGroup specs are passed into context
- cleaned up and missed comment, unordered imports etc along the journey

notes: In addition to this; need to look at the detecting the changes in the cluster and instance group spec. Think out loud perhaps using a last_known_configuration annotation, similar to kubernetes
2017-08-22 19:49:48 -07:00
Kubernetes Submit Queue 2d7fb51c2a Merge pull request #3025 from chrislovecnm/mapping-and-uploading-kubernetes-assets
Automatic merge from submit-queue

inventory assets - mapping and uploading kubernetes containers
2017-08-22 19:15:31 -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
Rajadeepan D Ramesh 1237694efe Fix minor typo 2017-08-21 03:37:25 +05:30
Justin Santa Barbara 365d7a83a0 Fix heading on 1.7 notes
1.7 is released, so docs should reflect that!
2017-08-20 09:45:05 -04:00
Rohith 494671eaaf Request Changes - File Assets
- removed the Mode field from the FileAsset spec
- removed the ability to template the content
- removed the need to specify the Path and instead default to /srv/kubernetes/assets/<name>
- change the FileAssets from []*FileAssets to []FileAssets
2017-08-18 18:06:45 +01:00
Rohith c15221c872 - adding a Roles filter to the file assets to choose who gets the asset 2017-08-18 18:06:44 +01:00
Rohith aa1a92c60e Cluster / InstanceGroup File Assets
The current implementation does not make it ease to fully customize nodes before kube install. This PR adds the ability to include file assets in the cluster and instaneGroup spec which can be consumed by nodeup. Allowing those whom need (i.e. me :-)) greater flexibilty around their nodes. @Note, nothing is enforced, so unless you've specified anything everything is as the same

- updated the cluster_spec.md to reflect the changes
- permit users to place inline files into the cluster and instance group specs
- added the ability to template the files, the Cluster and InstanceGroup specs are passed into context
- cleaned up and missed comment, unordered imports etc along the journey
2017-08-18 18:06:44 +01:00
lichuqiang b581e8144b fix typo 2017-08-18 08:42:47 +00:00
Kubernetes Submit Queue 7274b60631 Merge pull request #3205 from tigerlinux/master
Automatic merge from submit-queue

Changes on CoreOS related documentation.

- Changed "experimental" to "production-ready" status on CoreOS
  images.
- Added a complete tutorial/exercise using a multi-master setup
  with CoreOS
2017-08-17 08:02:13 -07:00
lichuqiang 90ed63465b fix typo 2017-08-17 19:16:13 +08:00
Kubernetes Submit Queue 16f6fe4bbb Merge pull request #3217 from lichuqiang/master
Automatic merge from submit-queue

fix typo in bastion.md
2017-08-17 02:20:28 -07:00
Kubernetes Submit Queue 52e004710d Merge pull request #3113 from justinsb/docs_api_access
Automatic merge from submit-queue

Fix docs to reference kubernetesApiAccess, not apiAccess
2017-08-16 10:56:03 -07:00
Kubernetes Submit Queue 32c641844c Merge pull request #3213 from lsowen/patch-1
Automatic merge from submit-queue

Fix typo in link (lables.md -> labels.md)
2017-08-16 10:25:18 -07:00
lichuqiang 089e12d095 fix typo in bastion.md 2017-08-17 01:14:46 +08:00
Reinaldo Martinez 865755e79e Changed all CoreOS related documentation 2017-08-16 11:54:57 -04:00
lsowen c561bdc52f Fix typo in link (lables.md -> labels.md) 2017-08-16 09:32:10 -04:00
lichuqiang 4942ccdf74 fix typo 2017-08-16 21:25:20 +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
Kubernetes Submit Queue b7331ac23e Merge pull request #2992 from itskingori/node_resource_handling
Automatic merge from submit-queue

Add documentation on handling node resources

At a minimum, this is meant to give more context on why the feature in https://github.com/kubernetes/kops/pull/2982 was added and attempts to give some recommendations of what to consider when evaluating node system resources.

I hope this spurs some discussion and that the recommendations I make maybe be assessed further. For example ... in one of the links I referenced, we're advised to set `system-reserved` **only if we know what we are doing** (which I can't say I do 💯% ... 🤷‍♂️) and we're even warned to only set it if you really need to.
2017-08-14 05:28:28 -07:00
Orr Chen 43020af959 resolve #3169 2017-08-13 19:16:22 +03:00
King'ori Maina 1bd329ad93
Avoid fuzzy language 2017-08-12 21:18:16 +02:00
King'ori Maina 14359657c0
Prefer to wrap text
Line-breaks makes it easier for reviews, especially Github commenting.
2017-08-12 21:17:10 +02:00
Rohith 7f5c83e417 Requests Changes - Hooks Enhancement
- switched to using an array of roles rather than boolean flags for node selection
- fixed up the README to reflect the changes
- added the docker.service as a Requires to all docker exec hooks
2017-08-11 12:41:08 +01:00
Rohith 0bfc2f1b24 Hooks in InstanceGroups
- extending the hooks to permit adding hooks per instancegroup as well
- @note, instanceGroup are permitted to override the cluster wide one for ease of testing
- updated the documentation to reflect the changes
- on the journey tried to fix an go idioms such as import ordering, comments for global export etc
- @question: v1alpha1 doesn't appear to have Subnet fields, are these different version being used anywhere?
2017-08-11 12:40:10 +01:00
Rohith 153db84df1 Custom Manifests via Hooks
The present implementation of hooks only perform for docker exec, which isn't that flexible. This PR permits the user to greater customize systemd units on the instances

- cleaned up the manifest code, added tests and permit setting a section raw
- added the ability to filter hooks via master and node roles
- updated the documentation to reflect the changes
- cleaned up some of the vetting issues
2017-08-11 12:40:10 +01:00
Rohith fe3dd9815c Cluster Hook Ordering
The current implementation does not permit the user to order the hooks. This PR adds optional Requires, Before and Documentation to the HookSpec which is added the systemd unit if specified.
2017-08-11 12:40:10 +01:00
Kubernetes Submit Queue b418c3036d Merge pull request #3125 from gambol99/kubelet_api
Automatic merge from submit-queue

Kubelet API Certificate

A while back options to permit secure kube-apiserver to kubelet api was [PR2381](https://github.com/kubernetes/kops/pull/2831) using the server.cert and server.key as testing grounds. This PR formalizes the options and generates a client certificate on their behalf (note, the server{.cert,key} can no longer be used post 1.7 as the certificate usage is checked i.e. it's not using a client cert). The users now only need to add anonymousAuth: false to enable secure api to kubelet. I'd like to make this default to all new builds i'm not sure where to place it.

- updated the security.md to reflect the changes
- issue a new client kubelet-api certificate used to secure authorize comms between api and kubelet
- fixed any formatting issues i came across on the journey
2017-08-11 02:41:14 -07:00
Kubernetes Submit Queue b1aee7a505 Merge pull request #2542 from kenden/patch-1
Automatic merge from submit-queue

Clarify docs: rename spec/specification into desired configuration 

The cluster state in S3 has (among others) two files: `cluster.spec` and `config`.
When the documentation mentioned "create or update cluster spec" for example, it was confusing what was actually updated. It's not the cluster.spec file.
As I understand, `cluster.spec` should only be created/updated after `kops update --yes` is run.

I changed the docs for `kops get`, `kops create`, `kops replace`, `kops edit`.
I did NOT change those files: `kops_rolling-update.md`, `kops_rolling-update_cluster.md` as I think those actually use `cluster.spec`.
2017-08-10 21:37:29 -07: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
Nathan Smith 3e24cef79f Specify initial period in gossip-based cluster name pattern 2017-08-09 14:26:08 -07:00
Rohith 9873fc1be5 Requested Changes
- fixed the various issues highlighted in https://github.com/kubernetes/kops/pull/3125
- changed the docuementation to make more sense
- changed the logic of the UseSecureKubelet to return early
2017-08-08 13:47:08 +01:00
asifdxtreme 65e48b553a Update the docs 2017-08-08 11:03:38 +08:00
Rohith 2fb60b9b3d Kubelet API Certificate
A while back options to permit secure kube-apiserver to kubelet api was https://github.com/kubernetes/kops/pull/2831 using the server.cert and server.key as testing grouns. This PR formalizes the options and generates a client certificate on their behalf (note, the server{.cert,key} can no longer be used post 1.7 as the certificate usage is checked i.e. it's not using a client cert). The users now only need to add anonymousAuth: false to enable secure api to kubelet. I'd like to make this default to all new builds i'm not sure where to place it.

- updated the security.md to reflect the changes
- issue a new client kubelet-api certificate used to secure authorize comms between api and kubelet
- fixed any formatting issues i came across on the journey
2017-08-08 01:11:09 +01:00
Derek VerLee ffa95b8112 Add support for cluster using http forward proxy 2017-08-07 14:30:42 -04: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
Sathiya Shunmugasundaram d92ea22ecd Update aws.md
SSH key pair must be available before creating the cluster, adding the instructions.
2017-08-04 09:48:42 -04:00
Kubernetes Submit Queue f123a95236 Merge pull request #3075 from Globegitter/patch-2
Automatic merge from submit-queue

Add k8s dashbard v1.6.2
2017-08-03 23:16:30 -07:00
Kubernetes Submit Queue 5153ed5cf7 Merge pull request #3116 from gekart/patch-1
Automatic merge from submit-queue

added missing command in documentation

Documentation correction.
2017-08-03 22:42:18 -07:00
Kubernetes Submit Queue 5577fab602 Merge pull request #3087 from blakebarnett/bdb/add_node_docker_config_secret
Automatic merge from submit-queue

Add `kops create secret dockerconfig` feature

This adds a well-known secret name `dockerconfig` which will automatically
be used if present to create `/root/.docker/config.json` on all nodes. This will
allow private registries to be used for kops hooks as well as any k8s images
without the need to define `imagePullSecrets` in every namespace.

closes https://github.com/kubernetes/kops/issues/2505
2017-08-03 19:33:42 -07:00
Kubernetes Submit Queue bc47b748f2 Merge pull request #3095 from msvbhat/docs-topology-command-fix
Automatic merge from submit-queue

docs/topology - Fix the rolling-update command

This patch updates the `kops rolling-update` command which should be
run after making changes to the API server topology.

Fixes #3093 

Signed-off-by: M S Vishwanath Bhat <msvbhat@gmail.com>
2017-08-02 23:45:29 -07:00
Grischa Ekart 04ffccf60f added missing command 2017-08-02 16:08:38 +02:00
Kubernetes Submit Queue 366f38b1f9 Merge pull request #3107 from murali-reddy/kube-router-doc
Automatic merge from submit-queue

remove source/destination check requirement for kube-router from docs

Kube-router automatically disables source/destination checks for the AWS
EC2 instances now user need not perform explicitly.

Fixed as part of https://github.com/cloudnativelabs/kube-router/issues/35
2017-08-01 22:15:11 -07:00
Kubernetes Submit Queue 58e0074e8d Merge pull request #3108 from DevipriyaSarkar/patch-1
Automatic merge from submit-queue

Update update_kops.md
2017-08-01 21:04:52 -07:00
Justin Santa Barbara f9fbe718c5 Fix docs to reference kubernetesApiAccess, not apiAccess 2017-08-01 19:40:21 -04: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
Kubernetes Submit Queue 576dca6fb7 Merge pull request #3102 from yoz2326/aws_ebs_iops
Automatic merge from submit-queue

AWS: root volume provisioned IOPS support

It is possible to set `rootVolumeType: gp2` so an instance group will use `gp2` as disk type (https://github.com/kubernetes/kops/blob/master/docs/instance_groups.md)

If the option is set to `rootVolumeType: io1` then the below error is thrown when building the cluster:

`W0731 13:44:44.298875    8784 executor.go:109] error running task "LaunchConfiguration/master-eu-west-1a.masters.cluster.name" (9m48s remaining to succeed): error creating AutoscalingLaunchConfiguration: ValidationError: Iops is required for a provisioned IOPS volume.
    status code: 400, request id: 072e23b2-75ee-11e7-968a-191d6f6e9343`

This PR tries to address this so if anyone needs, it can use `io1` as disk type for the root volume.
In order to define the number of Iops set `rootVolumeIops: <number>` (minimum is 100)

If `rootVolumeType: io1` is set and `rootVolumeIops` is not defined, then `rootVolumeIops` defaults to 100.

I am not quite familiar with the Kops codebase and this is my first encounter with Go, so some changes might not be suitable (I also do not have a software developer background so bear with me :) ). Please review and add feed-back.  

I've included a small change to the Makefile as I compiled Kops on a Mac and didn't had $GOPATH set after installing Go. I thought that pulling this via `go env` would be more flexible, but I am not 100% sure as I don't do much development in this area and not sure about possible use cases.
2017-08-01 09:03:50 -07:00
Devipriya Sarkar 58820b8e44 Update update_kops.md
fix heading in the docs
2017-08-01 21:06:26 +05:30
Murali Reddy b7e1b12022 remove source/destination check requirement for kube-router
Kube-router automatically disables source/destination checks for the AWS
EC2 instances now user need not perform explicitly.

Fixed as part of https://github.com/cloudnativelabs/kube-router/issues/35
2017-08-01 19:27:58 +05:30
Markus Padourek 9665bd486c Update usage to 1.6.3 2017-08-01 08:47:33 +02:00
Markus Padourek cce013b1bb Fixed typo 2017-08-01 08:41:42 +02:00
Ionut Craciunescu 4d27d5d93c small docs fixes 2017-08-01 00:28:38 +01:00
Ionut Craciunescu 847bf0c2e1 updates to support aws disks with provisioned iops 2017-08-01 00:28:21 +01:00
Paul Capestany 9bc36e3515 Fix small typo 2017-07-31 15:57:47 -04:00
M S Vishwanath Bhat 2134d10255 docs/topology - Fix the rolling-update command
This patch updates the `kops rolling-update` command which should be
run after making changes to the API server topology.

Signed-off-by: M S Vishwanath Bhat <msvbhat@gmail.com>
2017-07-31 14:01:44 +05:30
Blake 4d9c69c167 Add documentation and update text fixture 2017-07-29 13:29:28 -07:00
AlexB138 e84791a5d2 Striking unnecessary and incorrect conversion-gen instruction 2017-07-28 18:46:47 -04:00
Markus Padourek fa7a4c49e4 Update addons docs 2017-07-28 13:07:00 +02:00
Kubernetes Submit Queue 9668b0fe8a Merge pull request #3059 from justinsb/update_17_relnotes
Automatic merge from submit-queue

Adding remainder of 1.7 relnotes
2017-07-27 00:08:53 -07:00
Justin Santa Barbara 22c39232a1 Adding remainder of 1.7 relnotes 2017-07-26 23:57:10 -04:00
Jean-Pierre Huynh 8e535c44ed Fix typo in the apireference README
Signed-off-by: Jean-Pierre Huynh <jean-pierre.huynh@ounet.fr>
2017-07-26 16:33:33 +01: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
Otto Yiu 085805e354 Fix migration script to take ipip mode into account
Fixes #3018
2017-07-24 12:21:56 -07:00
Kubernetes Submit Queue b462053087 Merge pull request #3004 from justinsb/openapi
Automatic merge from submit-queue

Add gen-api-docs target to makefile

Following instructions in docs/apireference/README.md
2017-07-22 05:43:14 -07: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
Kubernetes Submit Queue 1be561d969 Merge pull request #2934 from FrederikNS/patch-1
Automatic merge from submit-queue

Fix for the instructions about using KOPS_FEATURE_FLAGS for drain and…

… validate.
2017-07-21 08:17:29 -07:00
Justin Santa Barbara 868c3a2bfb Add gen-api-docs target to makefile 2017-07-21 10:51:33 -04:00
Kubernetes Submit Queue b4eaf6b7d3 Merge pull request #3001 from pwittrock/openapi
Automatic merge from submit-queue

Kops apiserver support for openapi and generated API docs
2017-07-20 16:27:16 -07:00
Bradley fa755127a7 Fixing docs 2017-07-20 22:01:47 +01:00
Cole Wagner a65f3eaf47 Test kops submit-queue 2017-07-20 13:51:36 -07:00
Phillip Wittrock 25c4e44544 Generated API reference docs for kops APIs
- Docs generated from the openapi
2017-07-20 08:52:41 -07:00
Phillip Wittrock 760184744b Doc for how to update the openapi and docs 2017-07-20 08:52:33 -07: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
j14s 9beb9a1408 added missing step to pull down template file and correct step 2 wording to reflect the existence of the template file 2017-07-20 08:27:32 -04:00
Chris Love d2e5d2064f Merge pull request #2991 from justinsb/full_relnotes
Add full changelist (so far) for the 1.7 release to the release notes
2017-07-18 14:09:41 -06:00
King'ori Maina f3ef65a04a
Add documentation on handling node resources 2017-07-18 21:46:20 +02:00
Justin Santa Barbara 93054a71eb Add full changelist (so far) for the 1.7 release to the release notes 2017-07-18 14:55:24 -04:00
Chris Love e75e0692c7 Merge pull request #2982 from itskingori/node_allocatable_resources
Add reserve compute resources kubelet flags
2017-07-18 10:10:00 -06:00
Chris Love 43eede3c25 Merge pull request #2968 from justinsb/make_manifest_rewrite_optional
Add a feature flag for formatting assets
2017-07-17 21:40:22 -06:00
Justin Santa Barbara 8b717cfe63 Add a feature flag for formatting assets
Image rewriting involves a yaml format of the manifests, which makes for
a large and hard to read diff.  Add a feature flag to disable it, along
with a workaround to the release notes.
2017-07-17 21:44:56 -04:00
King'ori Maina 38c4d2af5c
Update cluster spec documentation with node reservation flags 2017-07-17 23:36:53 +02:00
Steve Coffman ae1feadd0f Issue #2977: Improve Manifest documentation 2017-07-17 16:44:15 -04:00
Chris Love eb76f2af0c Merge pull request #2911 from ottoyiu/calico_release_notes_1-7
Release notes for Calico Pod CIDR changes made in #2768
2017-07-17 10:11:12 -06:00
Justin Santa Barbara d09dce405a Merge pull request #2549 from rdtr/update_docs_about_s3_terraform_backend
Fixes #2535.
2017-07-16 17:19:59 -04: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
Justin Santa Barbara 64e793b968 Merge pull request #2817 from deinspanjer/patch-1
Typos and add note about need for --dns-zone
2017-07-15 13:02:26 -04:00
Benedict Hartley c45ba71c0b
Build new docs 2017-07-14 19:53:13 +01:00
Chris Love 39ef6433a2 Merge pull request #2931 from mrtyler/doc_fixes
Doc fixes
2017-07-14 12:25:44 -06:00
Eric Hole ff3ef87f51 Merge branch 'master' into flag-watch-ingress 2017-07-13 17:54:32 -06:00
Otto Yiu 919454b66b Release notes for Calico Pod CIDR changes made in #2768
Also document the migration procedure necessary for existing calico
clusters
2017-07-13 16:06:38 -07:00
Eric Hole 66bf3b6de5 Fixes imports && Updates for review 2017-07-13 16:20:47 -06:00
Justin Santa Barbara 750d9b0c31 Merge pull request #2875 from justinsb/start_17_release_notes
Start 1.7 release notes
2017-07-13 01:37:32 -04:00
Justin Santa Barbara be6f75cef1 Merge pull request #2902 from danielbryantuk/master
Add instructions for deleting cluster
2017-07-13 01:36:34 -04:00
Justin Santa Barbara d05813365a Merge pull request #2893 from qqshfox/registry_mirrors
add registryMirrors
2017-07-13 01:35:35 -04:00
Justin Santa Barbara 48f5f27d30 Merge pull request #2884 from chrislovecnm/doc-typo-fix
Fixing wrong brackets on links
2017-07-13 01:26:58 -04:00
Justin Santa Barbara d1ca49d2cb Merge pull request #2910 from erickt/patch-1
Fix a documentation instance group doc typo
2017-07-13 00:32:33 -04:00
Hanfei Shen fee673592c add registryMirrors 2017-07-13 10:26:32 +08:00
Giancarlo Rubio f330b40e1a bump dashboard to v1.6.1
add serviceaccount for kubernetes-dashboard and wrote docs related to rbac
2017-07-12 19:15:15 +02:00
Tyler Roscoe f856fddff4 Update link. 2017-07-11 19:10:56 -06:00
Tyler Roscoe 6119465c6e Clean up wording a bit. 2017-07-11 19:05:01 -06:00
Tyler Roscoe c147517c40 One space after a period. Periods after sentences. 2017-07-11 19:02:53 -06:00
Tyler Roscoe 28363f5d01 Fix link. 2017-07-11 18:49:30 -06:00
Erick Tryzelaar de589df446 Fix a documentation instance group doc typo
Noticed a small typo. This fixes `cloudLables` to `cloudLabels`, and `nodeLables` to `nodeLabels`.
2017-07-11 15:49:50 -07:00
Daniel Bryant 571d686acb Add instructions for deleting cluster 2017-07-11 17:54:30 +01:00
Justin Burnham ef9d2bad8a Corrected spelling of ClusterSpec in README.md. 2017-07-10 14:48:15 -07:00
chrislovecnm b3c714a612 Fixing wrong brackets on links 2017-07-07 16:15:32 -06:00
Chris Love f1f6507fa8 Merge pull request #2808 from alexandrst88/aws-sg-fix
Add SG parameter into AWS cloud-config
2017-07-06 14:20:14 -06:00