Commit Graph

4136 Commits

Author SHA1 Message Date
Kubernetes Submit Queue 922fa5ade8 Merge pull request #3622 from justinsb/reduce_protokube_logs
Automatic merge from submit-queue.

Reduce log level in protokube
2017-10-13 17:13:58 -07:00
Kubernetes Submit Queue 184db9a34b Merge pull request #3587 from KashifSaadat/proxy-updates
Automatic merge from submit-queue.

Modified OS detection logic when updating http proxy settings.

Reduce duplication in configuring http proxy settings by writing it to the system-wide `/etc/environment` file and sourcing this in accordingly for the different services (docker, package management).

I have tested and this now correctly covers CoreOS by resolving the following bugs (I don't believe any issues were raised for these):
- Docker config file was located in `/etc/sysconfig/docker` as opposed to `/etc/default/docker`
- The `/etc/lsb-release` file exists for CoreOS, so the bootstrap script was incorrectly attempting to write proxy settings into the apt proxy config file

These changes should cover CoreOS, Debian, Ubuntu, RedHat distributions including CentOS and Fedora.

**NOTE:**  A nodeup image will need to be built for these changes to work as expected, as now we rely on nodeup to update the proxy settings within the docker config (by sourcing in the env vars set within `/etc/environment`.
2017-10-13 16:29:37 -07:00
Kubernetes Submit Queue ee46d7ab90 Merge pull request #3624 from carlossg/autoscaler-rbac
Automatic merge from submit-queue.

Add permissions to cluster autoscaler to get statefulsets

Otherwise getting error

    User system:serviceaccount:kube-system:cluster-autoscaler cannot get statefulsets.apps in the namespace xxx. (get statefulsets.apps yyy)
2017-10-13 13:23:15 -07:00
Kashif Saadat c78790f902 Modified OS detection logic when updating http proxy settings. 2017-10-13 19:08:47 +01:00
Carlos Sanchez febc9d4512 Add permissions to cluster autoscaler to get statefulsets
Otherwise getting error

    User system:serviceaccount:kube-system:cluster-autoscaler cannot get statefulsets.apps in the namespace xxx. (get statefulsets.apps yyy)
2017-10-13 18:17:46 +02:00
Justin Santa Barbara 8c16d05a95 Reduce log level in protokube 2017-10-13 01:44:14 -04:00
Kubernetes Submit Queue 5e1f813e3b Merge pull request #3614 from bboreham/weave-update-205
Automatic merge from submit-queue.

Update Weave Net to version 2.0.5

This PR also adds a manifest with a volume-mount for the iptables lock file, which avoids collisions between Weave components and kube-proxy that can sometimes result in a half-configured Weave network.

Only do this for Kubernetes 1.7 and above because it requires the change in kubernetes/kubernetes#47212

I don't really know what I'm doing in `bootstrapchannelbuilder.go`; I just followed the pattern I saw.

Other relevant updates in Weave Net since version 2.0.1 ([more details](https://github.com/weaveworks/weave/releases)):

* Fix race condition in NetworkPolicy Controller which would intermittently block all traffic for a namespace
* Add comments to each NetworkPolicy iptables rule and ipset, to help when troubleshooting
* Fix netfilter rules to block containers from accessing the Weave Net control endpoint
* Remove code that checked for an outdated fallback address for Kubernetes api-server
2017-10-12 11:51:13 -07:00
Bryan Boreham 88e001f88e Update to Weave Net 2.0.5
including a Weave Net template for Kubernetes 1.7 and above which adds
a volume-mount for the iptables lock file, which avoids collisions
between Weave components and kube-proxy that would result in a
half-configured Weave network.

This is only for version 1.7 and above because it requires the change
in https://github.com/kubernetes/kubernetes/issues/47212
2017-10-12 11:08:44 +00:00
Kubernetes Submit Queue e1c2bb1cd2 Merge pull request #3610 from erickt/kops-get
Automatic merge from submit-queue.

`kops get ...` should exit with non-zero if the resource don't exist

Without this change, `kops get --name non-existing-cluster` will exit with a status of `0`, which makes it difficult to check if a cluster (and other resources) exist in a shell script.

cc @chrislovecnm, who I think originally wrote this code.
2017-10-12 00:13:00 -07:00
Erick Tryzelaar 5a89dd113c `kops get ...` should exit with non-zero if the resource don't exist
Without this change, `kops get --name non-existing-cluster` will
exit with a status of `0`, which makes it difficult to check if
a cluster (and other resources) exist in a shell script.
2017-10-11 16:11:16 -07:00
Kubernetes Submit Queue f14b5a564a Merge pull request #3580 from chrislovecnm/kops-1.7.1-advisory-update
Automatic merge from submit-queue.

updating cve advisory for kops-1.7.1 release

- fixed line wrap
- fixed typos
- added updates for kops 1.7.1 release
2017-10-11 14:23:28 -07:00
Kubernetes Submit Queue ca2c80987b Merge pull request #3586 from justinsb/channel_bump
Automatic merge from submit-queue.

Promote alpha channel to stable, update alpha channel with latest
2017-10-10 23:02:29 -07:00
Kubernetes Submit Queue 4c4f12b262 Merge pull request #3588 from justinsb/sort_tf_literals
Automatic merge from submit-queue.

Sort terraform literals in ELB task
2017-10-10 22:24:59 -07:00
Kubernetes Submit Queue 5b6a8ecc05 Merge pull request #3593 from justinsb/limit_gce_task_length
Automatic merge from submit-queue.

GCE: Limit length of InstanceTemplate names
2017-10-10 21:49:23 -07:00
Justin Santa Barbara e063af8d5a Sort terraform literals in ELB task
Fixes #3578
2017-10-11 00:01:11 -04:00
Kubernetes Submit Queue 961a68e4a5 Merge pull request #3598 from mikesplain/fix_bazel_phony
Automatic merge from submit-queue.

Fix .PHONY
2017-10-10 13:37:11 -07:00
Kubernetes Submit Queue 90254df51e Merge pull request #3591 from justinsb/bazel_push_run_tasks
Automatic merge from submit-queue.

bazel versions of test, build, push-aws-run & push-gce-run
2017-10-10 11:48:43 -07:00
chrislovecnm 8792823ad9 Fixing english per PR review 2017-10-10 12:20:19 -06:00
Kubernetes Submit Queue 59735b8957 Merge pull request #3585 from justinsb/fix_old_custom_build
Automatic merge from submit-queue.

Fix old custom build instructions
2017-10-10 11:10:53 -07:00
Kubernetes Submit Queue 658287d9ad Merge pull request #3596 from mikesplain/update_homebrew_docs
Automatic merge from submit-queue.

Update homebrew release docs.

`brew bump-formula-pr` has simplified the process for updating brew
forumla

* Added `brew bump-formula-pr` as prefered method
* Cleaned up line wrap
2017-10-10 11:10:48 -07:00
Kubernetes Submit Queue 007438844c Merge pull request #3594 from justinsb/mock_kops_version_in_tests
Automatic merge from submit-queue.

Mock kops version in tests
2017-10-10 11:10:43 -07:00
Mike Splain dfc1b043d8 Fix .PHONY
For https://github.com/kubernetes/kops/pull/3591
2017-10-10 13:41:32 -04:00
Mike Splain b4de894ea8 Update homebrew release docs.
`brew bump-formula-pr` has simplified the process for updating brew
forumla
2017-10-10 13:32:43 -04:00
Kubernetes Submit Queue 7b65c5449d Merge pull request #3590 from justinsb/logrotate_service
Automatic merge from submit-queue.

Create logrotate service where not installed by default
2017-10-10 09:55:52 -07:00
Kubernetes Submit Queue 4798a670ed Merge pull request #3584 from justinsb/release_branch_docs
Automatic merge from submit-queue.

Release docs update git push command
2017-10-10 09:22:57 -07:00
Kubernetes Submit Queue 9e04fb0110 Merge pull request #3583 from justinsb/docs_custom_metrics_2
Automatic merge from submit-queue.

Docs tweak - specify flag, not kube-up env var
2017-10-10 08:45:32 -07:00
Justin Santa Barbara 19677523c0 Mock kops version in tests
This avoids having to update the tests every time our version changes.
2017-10-10 11:11:57 -04:00
Justin Santa Barbara d71bd09a6c GCE: Limit length of InstanceTemplate
We explicitly set a separate prefix for the names, and we ensure it is
not too long
2017-10-10 09:48:38 -04:00
Justin Santa Barbara 6f370d6678 bazel versions of test, build, push-aws-run & push-gce-run
These are developer-oriented targets, so they seem like a good place
to start.
2017-10-10 09:33:13 -04:00
Justin Santa Barbara f6a995b701 Create logrotate service where not installed by default
Otherwise the logrotate timer has nothing to target.
2017-10-10 09:32:21 -04:00
Justin Santa Barbara be4d3e2238 Bump the alpha channel 2017-10-10 07:38:33 -04:00
Justin Santa Barbara be0afc33cc Promote the alpha channel to stable 2017-10-10 07:38:33 -04:00
Justin Santa Barbara 8fb35963af Fix old custom build instructions
Also we need to explicitly call kops-install now
2017-10-10 07:37:25 -04:00
Kubernetes Submit Queue 35cf4a352e Merge pull request #3459 from zouyee/dashboard
Automatic merge from submit-queue.

update kubernetes-dashboard image version to v1.7.0

@justinsb PTAL!
2017-10-10 03:50:20 -07:00
Kubernetes Submit Queue 2500ee07f8 Merge pull request #3550 from chrislovecnm/protokube-kubectl
Automatic merge from submit-queue.

mounting kubectl from the host instead to installing in protokube

So this will fix our protokube kubectl versioning issue.  Kubectl is in on host, if we are on a master, and is always the right version, so let's use it!  Refactored a bit to get the distro path for kubectl.  Need to test on gossip.  Set the path on protokube and mounted kubectl in `/opt/kops/bin`.

/approve

TODO

- [ ] test gossip

Fixes https://github.com/kubernetes/kops/issues/3518
2017-10-10 03:50:15 -07:00
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
Kubernetes Submit Queue 59b96218ba Merge pull request #3568 from julianvmodesto/logrotate-coreos
Automatic merge from submit-queue.

Replace logrotate crontab with systemd timer

Related to #2710, minor improvement mentioned in https://github.com/kubernetes/kops/pull/3488#issuecomment-333340885.

This change replaces the logrotate crontab with a systemd timer. Any existing systemd timer for logrotate will be overridden.
2017-10-10 03:12:38 -07:00
Kubernetes Submit Queue c42b4ac225 Merge pull request #3570 from RahulMahale/update-cluster-spec-document-with-custom-metrics-flag
Automatic merge from submit-queue.

Document Enabling custom metrics API using kops
2017-10-10 02:33:36 -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
Kubernetes Submit Queue d7d62b800b Merge pull request #3546 from wongnai/master
Automatic merge from submit-queue.

Added PolicyConfigMap and PolicyConfigMapNamespace to KubeSchedulerConfig
2017-10-09 20:41:52 -07:00
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 c00f5ea9a7 Added error when trying to use kube-scheduler policyConfigMap before Kube 1.7.x 2017-10-10 09:10:05 +07:00
Manatsawin Hanmongkolchai be8aa9fecc Added docs on policyConfigMap 2017-10-10 09:10:05 +07:00
Manatsawin Hanmongkolchai 78023ba0df Updated PolicyConfigMap comment 2017-10-10 09:10:05 +07:00