Commit Graph

2384 Commits

Author SHA1 Message Date
Jimmi Dyson
e07da97447 Switch to fluentd kubernetes metadata plugin to enrich logs with more searchable kubernetes metadata 2015-09-02 10:33:15 +01:00
Alex Robinson
66ff3c133b Merge pull request #13229 from a-robinson/fluent
Clean up the fluentd images to make them more debuggable
2015-09-01 17:01:04 -07:00
Filip Grzadkowski
1a9b0d6018 Fix mounting volumes in docker based kubernetes setup. 2015-09-01 16:42:23 +02:00
k8s-merge-robot
9379b0b7d9 Merge pull request #13124 from linzichang/master
Auto commit by PR queue bot
2015-08-31 13:39:32 -07:00
huangyuqi
85729403fd Add ubuntu kube-push for upgrading of k8s cluster 2015-08-31 19:15:11 +00:00
Jerzy Szczepkowski
66a644b275 Merge pull request #13237 from andyzheng0831/trusty
Support kube-registry-proxy addon in trusty nodes
2015-08-31 09:21:32 +02:00
Guohua Ouyang
4393116422 Use "kubectl replace" in update-storage-objects.sh
Signed-off-by: Guohua Ouyang <gouyang@redhat.com>
2015-08-31 15:14:27 +08:00
lzc
74601eabbe Add local etcd discovery support for libvirt-coreos 2015-08-29 11:49:35 +08:00
Prashanth B
52f7833cd3 Revert "Revert "LimitRange updates for Resource Requirements Requests"" 2015-08-28 09:26:36 -07:00
He Simei
ffe9bb0e25 upgrade to v1.0.3, refactor the guide 2015-08-28 16:43:01 +08:00
Fred Jean
1305f54645 Booting a Kubernetes cluster on Vagrant
* Using Fedora 21 as the base box
* Discover the active network interfaces in the box to avoid hardcoding
  them in configuration.
* Use the master IP for the certificate.
2015-08-27 21:43:36 -06:00
Tim Hockin
109c3f2b05 Merge pull request #12834 from eldarion-gondor/fix-validate-cluster-on-error
When calling kubectl.sh, allow error due to API server bouncing
2015-08-27 17:21:09 -07:00
Alex Robinson
d02dc64036 Let fluentd-es log by not redirecting to a file within the container
and only using -q (warning logs only) rather than -qq (error logs only).
2015-08-27 21:41:44 +00:00
Alex Robinson
b3154a7815 Remove the garbage log file in the fluentd-gcp that gets filled with
gunk when installing the google-fluentd agent.

Also let it log things by not redirecting to a file within the container
and only using -q (warning logs only) rather than -qq (error logs only).
2015-08-27 21:41:44 +00:00
Alex Robinson
c9a8b2a405 Merge pull request #13230 from a-robinson/maintainer
Transfer maintainer responsibilities for fluentd configs/images.
2015-08-27 14:35:02 -07:00
Mike Danese
c64d0d56dd bump kube-ui to v2 2015-08-27 10:59:33 -07:00
Cameron Brunner
7f76c077b8 Issue #13267: Change -t to --template in kubectrl get call 2015-08-27 11:25:07 -05:00
Andy Zheng
9f28e784dc Support kube-registry-proxy addon in trusty nodes 2015-08-27 07:46:50 -07:00
Kevin
b1ecd645ac ubuntu deploy scripts: change process start failed message in verify-master() and verify-minion() 2015-08-27 14:34:29 +00:00
Kevin
0705ef9495 add time out exit when process not started correctly on master or minion 2015-08-27 14:34:29 +00:00
Piotr Szczesniak
997dd12c2c Merge pull request #13246 from kubernetes/revert-12492-limit_range_api
Revert "LimitRange updates for Resource Requirements Requests"
2015-08-27 11:12:04 +02:00
Piotr Szczesniak
7ad0f96688 Revert "Make MASTER_IP_RANGE master-only" 2015-08-27 10:52:21 +02:00
Piotr Szczesniak
6e05b9e3a3 Revert "LimitRange updates for Resource Requirements Requests" 2015-08-27 10:50:50 +02:00
Alex Robinson
f6f8cb07ae Transfer maintainer responsibilities for fluentd configs/images. 2015-08-26 21:48:51 +00:00
Yu-Ju Hong
1c7ebc4a62 Merge pull request #13213 from mbforbes/removeMasterIpRange
Make MASTER_IP_RANGE master-only
2015-08-26 13:04:04 -07:00
Yu-Ju Hong
1bae2b677d Merge pull request #12492 from derekwaynecarr/limit_range_api
LimitRange updates for Resource Requirements Requests
2015-08-26 13:02:57 -07:00
Yu-Ju Hong
09446c7a49 Merge pull request #13214 from mbforbes/todos
Pass mbforbes TODOs to others.
2015-08-26 13:02:27 -07:00
Max Forbes
8ca0654f94 Pass mbforbes TODOs to others. 2015-08-26 10:05:34 -07:00
Yu-Ju Hong
bcd949b3f5 Merge pull request #13209 from amygdala/utilsfix
fix error in 'rm' path instructions to force restaging
2015-08-26 09:54:23 -07:00
Yu-Ju Hong
781d40c4a3 Merge pull request #13029 from justinsb/aws_config_test_disk
AWS: Add disk size/type defaults to config-test
2015-08-26 09:53:45 -07:00
Max Forbes
48801da130 Make MASTER_IP_RANGE master-only 2015-08-26 09:53:08 -07:00
Amy Unruh
5b6c5823da fix error in 'rm' path instructions to force restaging 2015-08-26 08:10:51 -07:00
root
5f5d97b6e7 Changed SSH_USER to core instead ubuntu, also applied fixes from #11975 2015-08-26 01:29:56 -07:00
Yu-Ju Hong
6071942f98 Merge pull request #13154 from derekwaynecarr/fix_vagrant_warning
Fix typo that caused an error at end of vagrant up
2015-08-25 15:33:14 -07:00
Yu-Ju Hong
df8c189390 Merge pull request #13150 from cjcullen/gce
Add liveness probe for master's etcd pod
2015-08-25 15:26:32 -07:00
Yu-Ju Hong
68a916d1b1 Merge pull request #10637 from marun/conditional-f21-fixup
Vagrant: Make F21 fixup conditional
2015-08-25 14:30:59 -07:00
derekwaynecarr
55a57a0bce Fix typo that caused an error at end of vagrant up 2015-08-25 15:06:31 -04:00
CJ Cullen
c77e800495 Add liveness probe for master's etcd pod 2015-08-25 10:37:00 -07:00
Ed Costello
1916d3bb74 Copy edits for typos (resubmitted) 2015-08-25 10:47:58 -04:00
Justin Santa Barbara
a13a0ac3e8 AWS: Add disk size/type defaults to config-test
Otherwise they needed to be manually specified (for example in the
Jenkins jobs)
2015-08-25 07:54:03 -04:00
Nikhil Jindal
411d78dac3 Merge pull request #13068 from jlowdermilk/no-reuse-auth
Don't reuse credentials on cluster create
2015-08-24 15:56:36 -07:00
derekwaynecarr
d25082250d Update salt deployment for new limit-range 2015-08-24 15:43:32 -04:00
yuqi huang
a20de17d5e Correct the wrong words in shell comments
Correct the wrong words in shell comments
2015-08-24 20:13:38 +08:00
Mikael Hammarin
c82e645f9d Elastic IP need to be assigned after the instance is in running state. Currently always fails with "The pending instance x is not in a valid state for this operation" and defaults to public ip.
Fix: Moved assign-elastic-ip to run after wait-for-instance-running
2015-08-23 13:39:01 +02:00
Jeff Lowdermilk
438216844f Stop reusing basic auth on cluster create 2015-08-22 11:45:46 -07:00
Zach Loafman
5fe7029e68 Merge pull request #13008 from andyzheng0831/node-yaml
Add continuous tests support for trusty nodes
2015-08-21 18:59:21 -07:00
Zach Loafman
cc172af259 Merge pull request #13049 from mesosphere/mesos-docker-lazy-pull
[mesos/docker] Lazily pull images to speed up kube-up
2015-08-21 16:07:27 -07:00
Zach Loafman
9a8eef33fa Merge pull request #12700 from bjlee72/util-sudo-patch
Fix the problem that the script cannot remove existing installations …
2015-08-21 16:03:26 -07:00
Zach Loafman
185b5af26f Merge pull request #12833 from uluyol/insecure-reg
Launch a cluster-local registry.
2015-08-21 14:58:37 -07:00
Andy Zheng
f302130ad9 Add continuous tests support for trusty nodes
Also fix the starting condition of kube-install-additional-packages
upstart job.
2015-08-21 14:39:55 -07:00
Karl Isenberg
47d3d85603 [mesos/docker] Lazily pull images to speed up kube-up 2015-08-21 14:10:00 -07:00
Muhammed Uluyol
3dc10a209b Use gcr.io for proxy image 2015-08-21 13:32:08 -07:00
Jeff Lowdermilk
f0b5c5b7b8 fix mig command for gce 2015-08-21 11:19:46 -07:00
Jerzy Szczepkowski
3a6158f8ad Merge pull request #12985 from mbabker/gke-machine-type
Add ability to specify machine type for GKE
2015-08-21 10:29:01 +02:00
Jerzy Szczepkowski
755287ca3a Merge pull request #12988 from andyzheng0831/bug
Fix some env variable settings in test config.
2015-08-21 08:39:32 +02:00
k8s-merge-robot
44c76d5319 Merge pull request #12957 from smarterclayton/handle_terminating_pods
Auto commit by PR queue bot
2015-08-20 21:47:00 -07:00
Muhammed Uluyol
2fb4e7b7a4 Use quotes more consistently 2015-08-20 18:44:12 -07:00
Muhammed Uluyol
82638f8b29 Add conversion function from GCE storage units to kubernetes units. 2015-08-20 18:44:12 -07:00
Muhammed Uluyol
14b554cef6 Use a persistent volume for the docker registry. 2015-08-20 18:44:11 -07:00
Muhammed Uluyol
7129d477d3 Launch a cluster-local registry.
This registry can be accessed through proxies that run on each node
listening on port 5000. We send the proxy images to the nodes directly
to avoid requests that hit the network during cluster launch. For now,
we continue to pull the registry itself over the network, especially
given its large size (we should be able to dramatically shrink the
image). On GCE we create a PD and use that for storage, otherwise we
use an emptyDir. The registry is not enabled outside of GCE. All
communication is currently plain HTTP. In order to use SSL, we will
need to be able to request a certificate/key from the apiserver signed
by the apiserver's CA cert.
2015-08-20 18:44:05 -07:00
Saad Ali
ebe50ea692 Merge pull request #13001 from jlowdermilk/gke-util
Future-proof detect-minions for gke
2015-08-20 17:44:09 -07:00
Jeff Lowdermilk
30b8802fa6 Future-proof detect-minions for gke 2015-08-20 17:38:45 -07:00
Saad Ali
129a4ceddd Merge pull request #12954 from mesosphere/mesos-docker-cleanup
[mesos/docker] Cleanup cluster scripts
2015-08-20 17:30:32 -07:00
Saad Ali
9b01580946 Merge pull request #12872 from runningwild/master
Fix several problems with using rkt on gce
2015-08-20 15:46:16 -07:00
Saad Ali
e8009e828c Merge pull request #12632 from erictune/conformance-master-2
Add generic master detector; simplify conformance.
2015-08-20 14:32:36 -07:00
Michael Babker
f562a3b471 Add ability to specify machine type for GKE 2015-08-20 17:09:42 -04:00
Andy Zheng
7bdc530822 Fix some env variable settings in test config.
These environmental variables are incorrectly set to string
"TEST_CLUSTER_LOG_LEVEL", instead of the value of the variable
"${TEST_CLUSTER_LOG_LEVL}".
2015-08-20 11:46:12 -07:00
Clayton Coleman
02dbb95447 Add TerminationGracePeriodSeconds to API
Set defaulting for pod spec
2015-08-20 11:03:38 -04:00
Wojciech Tyczynski
a18a07e5cf Merge pull request #12897 from wojtek-t/fix_gcloud_preview
Stop using deprecated gcloud commands
2015-08-20 10:51:52 +02:00
Wojciech Tyczynski
b030f2711b Merge pull request #12933 from andyzheng0831/node-yaml
Use yaml format for trusty node kube-env
2015-08-20 10:51:40 +02:00
Wojciech Tyczynski
04af904cbb Merge pull request #12909 from justinsb/fix_12855
AWS: Always install aufs module & tools
2015-08-20 08:26:47 +02:00
Saad Ali
3fce3433d9 Merge pull request #12949 from satnam6502/fluentd-es
Update Elasticsearch cluster logging to use v1.9 image
2015-08-19 18:48:55 -07:00
Karl Isenberg
55eb982b4c [mesos/docker] Cleanup cluster scripts
- Remove unused MESOS_DOCKER_IMAGE_DIR
  mesos-slave-dind handles recursive mounting internally now
- Extract docker-compose exec to a function.
  Avoids export pollution.
  Avoids compose file path as a global var.
- Localize some function variables.
- Validate existence of docker & docker-compose
- Improve user account creation output
2015-08-19 18:04:46 -07:00
Saad Ali
8a43bd621e Merge pull request #12745 from eparis/even-less-dash-false-positive
verify-flags-underscore.py: Even fewer dash false positives
2015-08-19 17:03:29 -07:00
Satnam Singh
d3a8e5374b Update Elasticsearch cluster logging to use v1.9 image 2015-08-19 15:55:22 -07:00
Saad Ali
0c99a91805 Merge pull request #12503 from mesosphere/mesos-docker-build-images
[mesos/docker] Enhance kube-up to better support running in a container (for CI)
2015-08-19 14:53:42 -07:00
Satnam Singh
278a3911fd Fetch fluentd td agent securely 2015-08-19 13:34:03 -07:00
Eric Tune
29da889bbf Add generic master detector; simplify conformance.
Add detect-master-from-kubeconfig bash function.
Use it to no longer require conformance test user
to specify KUBE_MASTER_IP.
2015-08-19 13:20:22 -07:00
Saad Ali
dcf3dca973 Merge pull request #11459 from erulabs/add_aws_ebs_volume_size_option
Add config option for AWS EBS root volume size
2015-08-19 12:50:21 -07:00
Andy Zheng
ee913b1273 Use yaml format for trusty node kube-env
It uses the same function as Debian to create the yaml format
node kube-env file.
2015-08-19 10:05:44 -07:00
Jonathan Wills
80e799fc0c Allow configuring the rkt binary in a kubelet with a flag.
This is necessary because coreos comes with rkt installed, and if we want to use a different version
we need some way to avoid the default one.
2015-08-19 09:42:13 -04:00
Justin Santa Barbara
fba216c7b3 AWS: Always install aufs module & tools
Clean up the installation of aufs supporting modules & tools, so we
always install both and only install in one place.

Fixes #12855
2015-08-19 07:27:12 -04:00
Wojciech Tyczynski
1feb78be66 Stop using deprecated commands 2015-08-19 12:19:08 +02:00
Robert Bailey
08e6a43c1d Revert "Merge pull request #9165 from smarterclayton/graceful"
This reverts commit 4f856b595d, reversing
changes made to d78525a83b.

Conflicts:
	pkg/kubelet/status_manager.go
2015-08-18 17:34:49 -07:00
Karl Isenberg
053cb26dde [mesos/docker] Expose DOCKER_DAEMON_ARGS 2015-08-18 16:54:05 -07:00
Jonathan Wills
a68e819e60 Fix rkt binary path 2015-08-18 16:15:01 -04:00
Jonathan Wills
bf08da0fdc change coreos node env file from yaml to KEY=VALUE 2015-08-18 16:15:01 -04:00
erulabs
5ee816e905 Add config option for AWS EBS root volume size 2015-08-18 11:03:23 -07:00
Kris Rousey
ae6c64d9bb Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
Robert Bailey
4f856b595d Merge pull request #9165 from smarterclayton/graceful
Enable graceful deletion using reconciliation loops in the Kubelet without TTL
2015-08-18 10:01:40 -07:00
Brian Rosner
b1c418ea20
When calling kubectl.sh, allow error due to API server bouncing 2015-08-18 07:16:18 -06:00
Clayton Coleman
b842a7dd15 Revert "Revert "Gracefully delete pods from the Kubelet""
This reverts commit 98115facfd.
2015-08-18 08:57:02 -04:00
Robert Bailey
6afa0e1f95 Don't register the master node into the cluster by default. 2015-08-17 19:17:17 -07:00
Karl Isenberg
9b5d525e3d [mesos/docker] Upgrade mesos-docker-test image to use docker 1.8.1 2015-08-17 18:37:45 -07:00
Karl Isenberg
87da2ed6de Update mesos-slave-dind to use Docker 1.8.1 2015-08-17 17:20:55 -07:00
Andy Zheng
11c823abd8 Fix some settings of trusty nodes
It fixes kubelet and kube-proxy command line options, fixes a typo,
and adds installation of nsenter package if it is not present.
2015-08-17 14:27:30 -07:00
Karl Isenberg
2ea10ec5b7 [mesos/docker] Replace auth/log dirs with MESOS_DOCKER_WORK_DIR
- Mount mesos slave workspaces in MESOS_DOCKER_WORK_DIR
- Clear mesos slave workspace in kube-up
- Add MESOS_DOCKER_IMAGE_DIR to configure docker-in-docker image storage
- Lazily eval auth/log dirs
- Improve mesos slave missing error in detect-minions
2015-08-17 13:50:50 -07:00
Eric Paris
c560f41a4b Update docs which were incorrectly using _ in flag names
Each of these was verified that the actual flag declaration correctly
used -
2015-08-17 11:18:43 -07:00
Vish Kannan
5ea41906d4 Merge pull request #12793 from piosz/heapster-config
Removed align_stats flag from Heapster config
2015-08-17 11:17:48 -07:00
Piotr Szczesniak
eed7d24c02 Removed align_stats flag from Heapster config
The flag caused inaccuracy in compute cpu/usage_rate metric
2015-08-17 14:40:41 +02:00
Justin Santa Barbara
0ff8dd45ef Fix escaping problem in kube-scheduler manifest
'{{pillar[log_level]}}' was appearing literally in the command line,
instead of being substituted.

Fixes #12787
2015-08-17 08:16:24 -04:00
Eric Paris
13822bceae Fix build breakage due to ubuntu invalid flag usage
In PR #12543 / commit fef1ede240
Flags were used with `_` instead of `-`. This broke the build.
2015-08-16 20:30:59 -05:00
Brendan Burns
6afbaf6bf6 Merge pull request #12543 from andyzheng0831/ubuntu
Add config to run minions on GCE using Ubuntu.
2015-08-14 22:13:38 -07:00
Karl Isenberg
1d16b21dd2 [mesos/docker] Configure controller-manager to advertize its externally accessible IP 2015-08-14 20:17:03 -07:00
Brendan Burns
e759e36b1e Merge pull request #12536 from mesosphere/docker-compose-0.23
Use Mesos 0.23 for both master and slaves
2015-08-14 16:25:08 -07:00
Jerzy Szczepkowski
7296a5bd4a Merge pull request #12708 from Huawei-PaaS/issue_cluster_kubernetes_auth
Replace "~/.kubernetes_auth" with "${KUBECONFIG:-$DEFAULT_KUBECONFIG}" in util.sh
2015-08-14 13:18:53 +02:00
qiaolei
b6d7a1737b Update util.sh
Modify cluster/{vsphere,rackspace,azure,ubuntu}/util.sh, replace "~/.kubernetes_auth" with "${KUBECONFIG:-$DEFAULT_KUBECONFIG}"
2015-08-14 18:47:31 +08:00
Byungjoon Lee
cdc2567787 Fix the problem that the script cannot remove existing installations because sudo keyword is missing. 2015-08-14 12:28:11 +09:00
Andy Zheng
fef1ede240 Add config to run minions on GCE using Ubuntu.
It is for running nodes on Ubuntu image upto 14.04 LTS (Trusty).
The change for running master on Ubuntu will be added later.
The configuration consists of several upstart jobs, which is
passed to node instances through GCE metadata and parsed by cloud-init.
2015-08-13 16:40:09 -07:00
Karl Isenberg
7afa78a2ef [mesos/docker] Enhance kube-up to better support running in a container (for CI)
- Generate CA & API Server SSL key/cert in keygen docker image
  - Refactor SSL generation
  - Generate service account key & user files on local machine
- Enable kube-up to be run in a container (kubernetes-mesos-test)
- Add timeout env vars
- Pull docker images up front to avoid timeouts
- Remove docker image builds from test-setup
- Nuke logs dir before each kube-up
- Make run_in_docker work without KUBECONFIG defined
- Fix temp dir cleanup
- Add auth mount env var
  - Default to $HOME/tmp/kubernetes/auth
  - Outside of repo (which gets docker mounted when using kubernetes-mesos-test)
  - Inside $HOME (which gets vm mounted when using docker-machine or boot2docker)
- Add log dump dir env var
  - Default to $HOME/tmp/kubernetes/logs (for consistancy with auth dir)
- Enable errtrace
- Increase log level to aid CI debugging
2015-08-13 14:38:43 -07:00
Brendan Burns
e8fcee6718 Merge pull request #10876 from jameskyle/develop
Resolves #9773, vmware_fusion can't find component
2015-08-13 14:09:50 -07:00
Brendan Burns
e2773d521d Merge pull request #12490 from olivierlemasle/vagrant-env
In Vagrant, pass environment variables to master
2015-08-13 14:09:30 -07:00
Brendan Burns
db39e5c45d Merge pull request #12667 from preillyme/issues_12666
Remove the "www" and "third-party ui" directories from kubernetes repo
2015-08-13 14:09:11 -07:00
Brendan Burns
beb66a55db Merge pull request #12684 from mbruzek/GoogleCloudPlatform-to-kubernetes-rename
Updated all the references of GoogleCloudPlatform to kubernetes
2015-08-13 14:07:30 -07:00
Maru Newby
4711eff229 Vagrant: Make F21 fixup conditional
The default Fedora 21 image requires some manual networking fixup that
breaks Fedora 22.  This change ensures that the fixup in question is run
only for Fedora 21.
2015-08-13 13:38:54 -07:00
Matt Bruzek
56bd3c756a Updated all the references of GoogleCloudPlatform/kubernetes repo name to the new kubernetes/kubernetes 2015-08-13 15:29:48 -05:00
Brendan Burns
35c22714d1 Merge pull request #7227 from lhuard1A/libvirt-coreos_etcd2
Make the libvirt-coreos cluster use the etcd2 shipped within CoreOS
2015-08-13 11:19:54 -07:00
Patrick Reilly
bf02aaa97d remove other cluster addon references for container build 2015-08-13 10:23:55 -07:00
Mike Danese
f061875840 updating all references in .sh scripts 2015-08-12 14:41:59 -07:00
Byungjoon Lee
5de9094652 Fix the problem that Kubernetes UI is not installed by deployAddons.sh script in Ubuntu environment. 2015-08-12 15:33:07 +09:00
Piotr Szczesniak
5a9b36b703 Merge pull request #12499 from dchen1107/cleanup
Upgrade to Docker 1.7.1 by default
2015-08-12 07:17:34 +02:00
CJ Cullen
9f009df1cb Merge pull request #12541 from dchen1107/fix
Fix kube-push using gcloud compute instance-groups managed set-instance-template
2015-08-11 15:25:40 -07:00
Dawn Chen
1932b48db3 Restore the logic of disable docker upgrade through salt for gce.
Currently it is commented out.
2015-08-11 14:55:58 -07:00
Dawn Chen
3901b225e3 Docker 1.7.1 2015-08-11 14:55:57 -07:00
CJ Cullen
389b9657b2 Merge pull request #12538 from cjcullen/network
Always use the --cluster-version flag for the gke provider.
2015-08-11 11:00:52 -07:00
Dawn Chen
4b99aafc4c Fix kube-push using gcloud compute instance-groups managed set-instance-template` 2015-08-11 10:28:59 -07:00
CJ Cullen
31811de52d Always use the --cluster-version flag for the gke provider. 2015-08-11 09:48:32 -07:00
Dr. Stefan Schimanski
acce49763a Use Mesos 0.23 for both master and slaves 2015-08-11 17:41:10 +02:00
Marek Grabowski
8bec081776 Revert "Fix kube-up for GKE. cluster-version is no more." 2015-08-11 16:29:32 +02:00
gmarek
69f7a71b5d Fix kube-up for GKE. cluster-version is no more. 2015-08-11 11:26:05 +02:00
derekwaynecarr
df0ca1c54c Fix vagrant kube-up 2015-08-11 01:10:34 -04:00
Karl Isenberg
9a415f96c4 [mesos/docker] Dump logs on kube-up error
- Extracted compose_file var to avoid pushd/popd
2015-08-10 14:05:31 -07:00
Alex Robinson
e13b00eddc Merge pull request #12436 from runningwild/PR
Install rkt to a directory that doesn't require environment variables…
2015-08-10 13:30:20 -07:00
Alex Robinson
34f164a470 Merge pull request #12384 from Hokutosei/master
added preemptible flag in gcloud compute instance-templates create
2015-08-10 11:08:11 -07:00
Alex Robinson
a0330fe31a Merge pull request #12371 from a-robinson/logs
Stop collecting monit logs via fluentd
2015-08-10 11:06:21 -07:00
Olivier Lemasle
bdd4d6bb88 In Vagrant, pass environment variables to master
Variables $ENABLE_CLUSTER_MONITORING and $ENABLE_CLUSTER_UI are currently set in cluster/vagrant/config-default.sh but are not passed to the master VM. Therefore, cluster/saltbase/salt/kube-addons/init.sls does not have these variables, and the add-ons cannot be enabled.
2015-08-10 19:29:50 +02:00
Alex Robinson
f80decbf77 Merge pull request #12401 from Huawei-PaaS/issue-azure-install
Modify the salt master's log config file name
2015-08-10 10:28:30 -07:00
Marek Grabowski
5f9cefc1d8 Merge pull request #12441 from vlajos/typofixes-vlajos-20150807
typofix - https://github.com/vlajos/misspell_fixer
2015-08-10 16:33:52 +02:00
Marek Grabowski
4f7d9863f5 Merge pull request #12362 from mbruzek/post-v1-fixes
Post v1 fixes
2015-08-10 14:54:05 +02:00
Lénaïc Huard
35452538f4 Switch to etcd 2 2015-08-10 11:36:48 +02:00
Lénaïc Huard
d2284fee88 Revert "libvirt-coreos cluster: Fix etcd versions incompatibility issue"
This reverts commit 11556dc927.
2015-08-10 10:14:21 +02:00
Marek Grabowski
89e69a010b Merge pull request #12443 from PhilibertDugas/master
Tuned the kube-proxy upstart script
2015-08-10 09:55:47 +02:00
Ed Costello
35a5eda585 Copy edits for typos 2015-08-09 14:18:06 -04:00
Philibert Dugas
02bf08069d Tuned the kube-proxy upstart script to be in line with:
https://github.com/GoogleCloudPlatform/kubernetes/issues/5461

Upstart scripts need to specify explicitely the nofile limit
2015-08-08 23:29:56 -04:00
Veres Lajos
9f77e49109 typofix - https://github.com/vlajos/misspell_fixer 2015-08-08 22:31:48 +01:00
jeanepaul
eaacc1e5c1 refactor coding style 2015-08-09 01:07:12 +09:00
Jonathan Wills
f456e58355 Install rkt to a directory that doesn't require environment variables to find.
Systemd doesn't do variable substitution on the name of the command to run, so we have to install
rkt to a directory with an absolute literal path that we can reference with environment variables.
2015-08-08 11:16:59 -04:00
Satnam Singh
991775e77b Merge pull request #10724 from eparis/convert-underscore-to-dash
Convert underscore to dash
2015-08-07 16:40:05 -07:00
Jian Huang
5606fd5099 Modify the salt master's log config file name
In the salt master's config folder, the file name "log-level-debug.d" change to "log-level-debug.conf" as it's a configure file.
2015-08-08 00:34:29 +08:00
Eric Paris
86ca88be61 convert cluster/ from --flag_name= --flag-name= 2015-08-07 11:00:13 -04:00
hurf
e63d227bdf Use -o template to validate cluster
Instead of using human-oriented output, use -o template to
validate cluster in order to avoid error caused by column change.
2015-08-07 21:18:40 +08:00
Jerzy Szczepkowski
372508cfbb Merge pull request #12117 from davidwalter0/wip
change underscores to dashes to match the command line argument
2015-08-07 12:58:30 +02:00
Hokutosei
a68f0a853f add missing preemptibel var 2015-08-07 10:13:43 +00:00
hokutosei
3bcfdab649 added preemptible flag in gcloud compute instance-templates create 2015-08-07 06:50:28 +00:00
qiaolei
2fd47194bd Initialize global variable MINION_IPS in setClusterInfo function
Initialize global variable MINION_IPS in setClusterInfo function.
MINION_IPS is defined as a global variable, and is concatenated with other nodeIP.
When setClusterInfo is called for many times, this could cause potential problems.
Such as, you will have MINION_IPS=192.168.0.2,192.168.0.3,192.168.0.2,192.168.0.3 which is obviously wrong.

Update util.sh
2015-08-07 11:23:02 +00:00
David Walter
792fc2269b change underscores to dashes to match the command line argument 2015-08-06 22:13:44 -05:00
Alex Robinson
c887ad75b8 Stop collecting monit logs via fluentd. 2015-08-07 00:12:21 +00:00
Dawn Chen
8cd7431b3d Merge pull request #12366 from GoogleCloudPlatform/container-vm-v20150806
Update GCE to container-vm-v20150806
2015-08-06 16:31:52 -07:00
Dawn Chen
2be69e7718 Merge pull request #12325 from brendandburns/supervisord
Add support for supervisord as a monit alternative.
2015-08-06 16:16:35 -07:00
Brendan Burns
15b9d98733 Add support for supervisord as a monit alternative. 2015-08-06 15:48:45 -07:00
Zach Loafman
5ea2bfaa1b Update GCE to container-vm-v20150806
Also changes the node image to default to master image
2015-08-06 15:36:39 -07:00
Dawn Chen
5fff8e935e Merge pull request #12319 from mbforbes/nodesNetworkRedux
Implement 'Nodes Network' test for GKE; add optional verbose SSH.
2015-08-06 15:30:13 -07:00
Dawn Chen
2fa3004500 Merge pull request #12349 from roberthbailey/kubelet-on-master
Register the kubelet on the master node with an apiserver.
2015-08-06 15:20:35 -07:00
Matt Bruzek
b0ee17c41b Found another mention of minion changed to node. 2015-08-06 16:40:55 -05:00
Max Forbes
acef505cfd Implement 'Nodes Network' test for GKE; add optional verbose SSH. 2015-08-06 14:25:53 -07:00
Matt Bruzek
d024013970 Fixing an idempotency problem found in testing. 2015-08-06 15:56:23 -05:00
Robert Bailey
8df33bc1a7 Register the kubelet on the master node with an apiserver. This option is
separated from the apiserver running locally on the master node so that it
can be optionally enabled or disabled as needed.

Also, fix the healthchecking configuration for the master components, which
was previously only working by coincidence:

If a kubelet doesn't register with a master, it never bothers to figure out
what its local address is. In which case it ends up constructing a URL like
http://:8080/healthz for the http probe. This happens to work on the master
because all of the pods are using host networking and explicitly binding to
127.0.0.1. Once the kubelet is registered with the master and it determines
the local node address, it tries to healthcheck on an address where the pod
isn't listening and the kubelet periodically restarts each master component
when the liveness probe fails.
2015-08-06 13:39:32 -07:00
Matt Bruzek
e3579ccb17 Changing "Minion" to "Node" on node registration 2015-08-06 15:29:56 -05:00
Dawn Chen
0d1f2cd227 Merge pull request #12075 from Huawei-PaaS/issue_ubuntu_cluster
Remove legacy files when stop the cluster
2015-08-06 10:54:21 -07:00
Dawn Chen
ed4863f1cf Merge pull request #12264 from Huawei-PaaS/iss_ubuntu_docker_opts
bug fix: DOCKER_OPTS not works when deploying using Ubuntu scripts
2015-08-06 10:18:16 -07:00
Kevin
bc2306d4e9 bug fix: DOCKER_OPTS not works
When deploying the kubernetes using Ubuntu's script, the value of configuration item `DOCKER_OPTS` is not set to `/etc/default/docker`.
This commit is to fix this bug.
2015-08-06 16:50:44 +00:00
Jian Huang
7b5a6e906e Remove kubelet files for a clean teardown
Remove /var/lib/kubelet folder in order to gain a more clean environment
2015-08-06 21:16:13 +08:00
Wojciech Tyczynski
4c42e1302d Merge pull request #12190 from piosz/heapster-version
Bumped Heapster version
2015-08-06 12:00:39 +02:00
Marek Grabowski
77675b052d Merge pull request #12301 from derekwaynecarr/fix_systemd_salt
Fix salt configuration on systemd setups
2015-08-06 11:36:27 +02:00
Mike Danese
fe6b15ba2f rewrite all links to issues to k8s links 2015-08-05 21:11:11 -07:00
Mike Danese
17defc7383 run gofmt on everything we touched 2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00
Alex Robinson
0945c2cfb8 Bump the heapster pod's memory limit from 200MiB to 300MiB. 2015-08-05 16:16:20 -07:00
Dawn Chen
86630a26f3 Merge pull request #12260 from bjlee72/patch-1
Redundant groupadd
2015-08-05 15:34:52 -07:00
Dawn Chen
f66809daef Merge pull request #11559 from PhilibertDugas/master
Fixed ubuntu upstart scripts for etcd
2015-08-05 15:04:14 -07:00
derekwaynecarr
0de0e3e9f1 Fix salt configuration on systemd setups 2015-08-05 17:01:43 -04:00
Karl Isenberg
f5fa688908 Add docker-compose cluster that runs with mesos 2015-08-05 10:48:28 -07:00
Byungjoon Lee
448da93122 Redundant groupadd
util.sh had redundant groupadd, which cause the following error:

groupadd: Permission denied.
groupadd: cannot lock /etc/group; try again later.
2015-08-05 17:45:17 +09:00
Alex Mohr
f75252a6b1 Merge pull request #12130 from mesosphere/validate-cluster
Auto commit by PR queue bot
2015-08-05 00:46:00 -07:00
Alex Mohr
e4fde6d2ca Merge pull request #9583 from eparis/make-cert-path
generate-cert: allow for alternative paths
2015-08-05 00:04:17 -07:00
Alex Robinson
714b39f025 Merge pull request #12240 from a-robinson/logs
Also collect the monit and salt logs in our fluentd configs
2015-08-04 19:56:14 -07:00
Alex Mohr
cab88c6885 Merge pull request #12215 from runningwild/master
Auto commit by PR queue bot
2015-08-04 19:08:44 -07:00
Alex Robinson
cc02e50fc7 Collect more of the VM's log files (monit, salt) in fluentd-es. 2015-08-05 00:22:38 +00:00
Alex Robinson
7430181d65 Collect more of the VM's log files (monit, salt) in fluentd-gcp. 2015-08-05 00:21:47 +00:00
Eric Paris
0753acf2f8 Allow make-ca-cert.sh to run on OS X
Currently make-ca-cert.sh uses (equiv of)

mktemp -d --tmpdir kube.XXXXX

but --tmpdir is not a valid option on OS X. Switch to

mktemp -d -t kube.XXXXX

Which is valid, but subtly different between OS X and Linux. The
directory you get back will be different on each.

Linux:  ${tmpdir}/kube.y5Bsu/
OS X:   ${tmpdir}/kube.XXXXX.VQ81oOui/
2015-08-04 19:03:01 -04:00
Eric Paris
c69b6f5ba7 Respect KUBECTL_BIN in kube-addon-update.sh not just kube-addons.sh 2015-08-04 19:02:31 -04:00
Eric Paris
6b9ef5b2d8 generate-cert: allow for alternative paths
Instead of hard coding kube-cert and /srv/kubernetes allow these to be
overwritten by environment variables.  / is immutable on some systems
and so /srv is not a possible location to store data.
2015-08-04 19:01:16 -04:00
Alex Mohr
ad4086eab1 Merge pull request #11308 from gmarek/pillar
Auto commit by PR queue bot
2015-08-04 12:42:57 -07:00
Jonathan Wills
2fe560ac07 Fix typos in a runtime-generated yaml file 2015-08-04 14:34:21 -04:00
Dr. Stefan Schimanski
8a48a74103 Factor out validate-cluster.sh call from kube-up.sh
Not every cluster can be validated the same way. Factoring out the
validate-cluster call into a kube-util.sh function allows customization.

This allows to proceed with GoogleCloudPlatform/kubernetes#10049 before
the mid/long-term unified cluster validation in GoogleCloudPlatform/kubernetes#11908
is implemented. Otherwise, the later blocks the former.
2015-08-04 16:05:18 +02:00
Piotr Szczesniak
7fef2a9daf Bumped Heapster version 2015-08-04 09:19:30 +02:00
Alex Mohr
edfcbe7feb Merge pull request #12067 from moander/patch-2
Auto commit by PR queue bot
2015-08-03 20:25:50 -07:00
Alex Mohr
a0daf32a56 Merge pull request #12115 from eddiesimeon/patch-1
Auto commit by PR queue bot
2015-08-03 20:06:44 -07:00
Alex Mohr
0f17038f0a Merge pull request #12103 from piosz/heapster-for-autoscaling
Added exporting autoscaling metrics in Heapster config
2015-08-03 17:53:02 -07:00
Alex Mohr
4c5763f28c Merge pull request #11299 from wojtek-t/increase_kubelet_start_timeout
Auto commit by PR queue bot
2015-08-03 16:14:02 -07:00
Alex Mohr
15532a522e Merge pull request #12163 from runningwild/master
Fix minor typo that broke yaml format
2015-08-03 15:26:08 -07:00
Alex Mohr
84af5f0dd1 Merge pull request #11944 from mamikonyana/flannel_net_config
Propagate FLANNEL_NET to reconfDocker.sh
2015-08-03 15:12:23 -07:00
Alex Mohr
6df4d6703b Merge pull request #10787 from mesosphere/kube-ui-liveness
Add liveness probe to kube-ui
2015-08-03 13:24:07 -07:00
Jonathan Wills
12e47667d8 Fix minor typo that broke yaml format 2015-08-03 16:06:23 -04:00
eddiesimeon
dbffa44ed7 No such file or directory error: make-ca-cert
When executing kube-up on a ubuntu cluster I'm getting the following error:
bash: /root/kube/make-ca-cert: No such file or directory
Removed line as it is invalid and is duplicated by another line.
2015-08-03 14:09:06 -04:00
Brendan Burns
2e68002f31 Merge pull request #11692 from wojtek-t/new_api_instance_groups
Auto commit by PR queue bot
2015-08-03 11:07:36 -07:00
Marek Grabowski
0b3f21715f Merge pull request #12124 from justinsb/install_ntpd
AWS: Install ntp daemon on all nodes
2015-08-03 14:38:28 +02:00
Marek Grabowski
8dd1171037 Merge pull request #12125 from justinsb/s3_use_queried_region
AWS: Query for location of S3 bucket, use that
2015-08-03 14:38:13 +02:00
Wojciech Tyczynski
2d95cd454c Swich to new gcloud API for GCE MIGs 2015-08-03 09:56:25 +02:00
Eddie Simeon
e67f8ae05a For the ubuntu cluster, master and minion services should respawn.
This will allow more successful kube-up.sh executions. Since kube-apiserver doesn't start on the first try after etcd first starts up possibly due to the lack of resources on my server.
2015-08-01 23:04:35 -04:00
Justin Santa Barbara
463458bf5f AWS: Install ntp daemon on all nodes
The AWS API requires a signature on method calls, including the
timestamp to prevent replay attacks.  A time drift of up to 5 minutes
between client and server is tolerated.

However, if the client clock drifts by >5 minutes, the server will start
to reject API calls (with the cryptic "AWS was not able to validate the
provided access credentials").

To prevent this happening, we install ntp on all nodes.

Fix #11371
2015-08-01 14:32:08 -04:00
Justin Santa Barbara
230de787be AWS: Query for location of S3 bucket, use that
Previously we would rely on the s3 bucket's region being configured
correctly, at least for the existence check.  By querying for the bucket
region and then going direct to the correct region, we avoid errors and
we avoid potential eventual consistency problems.

May be related to issue: #12109
2015-08-01 14:09:23 -04:00
Arsen Mamikonyan
2916101a99 Propagate FLANNEL_NET to reconfDocker.sh if it was set using environment variable 2015-07-31 22:24:39 -07:00
Mike Danese
066237e62a Merge pull request #12098 from piosz/heapster-config
Revert "Avoid mounting ssl volumes for heapster container."
2015-07-31 12:39:16 -07:00
Piotr Szczesniak
2bf447caae Added exporting autoscaling metrics in Heapster config 2015-07-31 20:54:58 +02:00
Piotr Szczesniak
f251ba5163 Revert "Avoid mounting ssl volumes for heapster container."
This reverts commit c08ad6b7c1.
2015-07-31 20:20:49 +02:00
Jian Huang
45c37b9bd0 Update README.md
There is a bad link in the doc. change ../../docs/salt.md to ../../docs/admin/salt.md
2015-07-31 18:44:06 +08:00
Jian Huang
bb28684f43 Update util.sh
When we deploy the kubernetes using Ubuntu's script. 
1. First we set the roles "ai i i" and NUM_MINIONS=3, it runs as expected.
2. Then we change the roles to "a i i" and NUM_MINIONS=2, we found it will not run successfully.

It's because there are history files left on the previous deployment. 
This commit will delete the files when stop the cluster.
2015-07-31 17:25:13 +08:00
gmarek
5bb7eec5ab Use salt pillars to pass test arguments during cluster creation. 2015-07-31 09:32:01 +02:00
moander
070ede2716 Resolved #9773 by removing vmrun binary test 2015-07-31 07:15:45 +02:00
Mike Danese
bfaa527139 Merge pull request #12045 from a-robinson/logs
Fix fluentd configs to collect etcd logs on the master
2015-07-30 17:36:46 -07:00
Mike Danese
51a7a38f67 Merge pull request #12020 from wojtek-t/move_to_storage
Move storage-related code to pkg/storage
2015-07-30 16:23:03 -07:00
Mike Danese
622bf70f57 Merge pull request #11963 from a-robinson/manifest
Make the kubelet on a GCE master check instance metadata for manifests
2015-07-30 16:21:53 -07:00
Alex Robinson
69ab7026af Update fluentd-es to collect etcd logs and remove merge conflict cruft. 2015-07-30 22:21:01 +00:00
Alex Robinson
9e18c29e9f Make fluentd-gcp collect etcd's logs on the master. 2015-07-30 22:20:57 +00:00
Mike Danese
cdb7d1ec61 Merge pull request #11960 from brendandburns/docker
Update docker instructions to 1.0.1
2015-07-30 14:12:41 -07:00
Alex Robinson
94ae0a9a0d Make the kubelet on a GCE master check instance metadata for manifests.
Primary motivation: enable GKE and other cluster-as-a-service folks to
easily run additional logic on the master without having to modify salt
or SSH to the master after it's been created.
2015-07-30 21:04:34 +00:00
Mike Danese
5747df378d Merge pull request #11946 from mamikonyana/service-node-port-range
Allow settings --service-node-port-range option using a config variable
2015-07-30 13:23:45 -07:00
Brendan Burns
f89c9e3878 Merge pull request #11998 from vishh/update_heapster
Auto commit by PR queue bot
2015-07-30 13:10:02 -07:00
Arsen Mamikonyan
792849251a Allow settings --service-node-port-range option using a config variable 2015-07-30 12:39:32 -07:00
Vishnu Kannan
c08ad6b7c1 Avoid mounting ssl volumes for heapster container. 2015-07-30 10:45:26 -07:00
Mike Danese
01de52e91a Merge pull request #11931 from stensonb/master
minor doc typo
2015-07-30 08:21:04 -07:00
Wojciech Tyczynski
3cbbe72f9f Move etcd storage to pkg/storage/etcd 2015-07-30 15:42:06 +02:00
Wojciech Tyczynski
2c5c1931e5 Revert "Implement 'Nodes Network' test for GKE" 2015-07-30 15:29:01 +02:00
Mike Danese
59a1dd4267 Merge pull request #11789 from mbforbes/nodesNetwork
Implement 'Nodes Network' test for GKE
2015-07-29 17:43:33 -07:00
Vishnu Kannan
b36ae6efba Upgrading heapster to v0.17.0 2015-07-29 16:13:33 -07:00
Brendan Burns
132575bcf8 Update single node docker to 1.0.1 2015-07-29 13:43:27 -07:00
Mike Danese
dcd6537b1b Merge pull request #11104 from gabrielweyer/patch-2
Stop prompting for storage account type
2015-07-29 11:08:37 -07:00
Mike Danese
025d3568bc Merge pull request #11970 from ZJU-SEL/deprecate-outdated-param
deprecate outdated param for deploying k8s on ubuntu
2015-07-29 10:30:20 -07:00
He Simei
a67be8e8ab deprecate outdated param 2015-07-29 13:57:14 +08:00
Jeff Lowdermilk
27ce920c1b Remove unused vars in cluster/gke/config and add warning 2015-07-28 11:58:20 -07:00
Bryan Stenson
85b04f9e6c minor doc typo 2015-07-28 09:24:17 -07:00
Egor Guz
1d12f4604a Added create folder command to avoid situation when apiserver doesn't start fast enough.
kube-apiserver.service has 'ExecStartPre=/usr/bin/mkdir -p /var/lib/kube-apiserver', but if server is not fast enough 'mv /home/core/known_tokens.csv /var/lib/kube-apiserver/known_tokens.csv' will fail.
2015-07-27 16:01:59 -07:00
Janet Kuo
180798cfa4 Use example syncer tags instead of hard-coded examples in doc 2015-07-27 14:48:41 -07:00
Piotr Szczesniak
f48543aba5 Made enabling Kube UI configurable 2015-07-27 08:23:04 +02:00
Mike Danese
5bd82ffe6d Merge pull request #11265 from mbforbes/gkeBashlog
Cleanup GKE bash logging
2015-07-24 18:51:36 -07:00
Max Forbes
bd9e09ba00 Implement 'Nodes Network' test for GKE 2015-07-24 17:05:30 -07:00
Mike Danese
d397d88499 Merge pull request #11390 from jfchevrette/fix-vagrant-eth1
Vagrant: virtualbox host-only network (eth1) not working after network restart
2015-07-24 13:12:24 -07:00
Mike Danese
01349cdbfa Merge pull request #11786 from a-robinson/fluentd
Update fluentd-gcp images to include latest Dockerfile changes
2015-07-24 12:40:41 -07:00
Mike Danese
08671ed481 Merge pull request #10602 from marun/vagrant-ip-cfg-from-env
Vagrant: Allow env override of IP addresses
2015-07-24 11:20:34 -07:00