Commit Graph

2384 Commits

Author SHA1 Message Date
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
Mike Danese
bfd22a6974 Merge pull request #10686 from mesosphere/kube-util
Move sourcing of provider-specific util.sh into kube-util.sh
2015-07-24 10:31:48 -07:00
Mike Danese
13c5761268 Merge pull request #11358 from ZJU-SEL/upgradek8s
[WIP]upgrade ubuntu bare-metal k8s to 1.0.1
2015-07-24 10:22:43 -07:00
Mike Danese
2e1e4f81cb Merge pull request #11794 from mikedanese/revert-revert
Revert revert of #11379
2015-07-24 10:20:48 -07:00
Mike Danese
e9084f95d1 Merge pull request #10517 from chrishiestand/gke-scopes
change shell var MINION_SCOPES to user setable
2015-07-24 09:22:25 -07:00
Simone Gotti
10904f2217 Set the right master port to kube-proxy in libvirt-coreos.
The currently specified port is the old 7080 read-only-port. As the
libvirt-coreos doesn't configure security, change it to the insecure-port 8080.
2015-07-24 12:10:57 +02:00
wizard
9b82c4716a upgrade k8s to 1.0.1 2015-07-24 13:31:52 +08:00
Brendan Burns
26de8cd6b2 Merge pull request #10601 from marun/docker-pkg-f22
Auto commit by PR queue bot
2015-07-23 22:15:50 -07:00
Mike Danese
c3fd33a18d fix test with array expansion 2015-07-23 21:04:47 -07:00
Mike Danese
0e10fac31e Revert "Revert "Fix libvirt-coreos cluster""
This reverts commit 889d724c19.
2015-07-23 21:03:23 -07:00
Mike Danese
889d724c19 Revert "Fix libvirt-coreos cluster" 2015-07-23 20:03:42 -07:00
Mike Danese
788012ae7b Merge pull request #11379 from lhuard1A/fix_libvirt_coreos
Fix libvirt-coreos cluster
2015-07-23 18:43:54 -07:00
Alex Robinson
0889307522 Update the fluentd-gcp images to include their latest Dockerfile changes.
Their Dockerfiles were changed in #11768.
2015-07-24 01:27:42 +00:00
Vish Kannan
6306ad1bce Merge pull request #11736 from thockin/cleanup-dns-legacy
Stop populating legacy DNS names
2015-07-23 17:30:00 -07:00
Vish Kannan
919fded0f8 Merge pull request #10401 from justinsb/workaround_salt_18089
Work around Salt 18089
2015-07-23 16:52:21 -07:00
Vish Kannan
45def3f3f3 Merge pull request #11768 from mr-salty/remove-fluent-plugin-gem-update
Remove gem update for fluent-plugin-google-cloud
2015-07-23 16:43:28 -07:00
Vish Kannan
3f47fc2fb1 Merge pull request #11762 from mbforbes/rollingAlpha
Support gcloud rolling-update command in 'preview' and 'alpha compute'
2015-07-23 14:53:18 -07:00
Max Forbes
5ff1566aac Support gcloud rolling-update command in 'preview' and 'alpha compute' 2015-07-23 14:16:31 -07:00
Tim Hockin
4e1630d3a9 Stop populating legacy DNS names 2015-07-23 13:51:09 -07:00
Vish Kannan
dc59c99d1a Merge pull request #11740 from piosz/config
Added possibility to overwrite ENABLE_CLUSTER_DNS with env var
2015-07-23 13:25:35 -07:00
Vish Kannan
87f59201ab Merge pull request #11483 from roberthbailey/secure-kubelet-config
Refactor the functions that generate auth for the kubelet and kubeproxy
2015-07-23 13:10:52 -07:00
Todd Derr
98ed2e8606 Remove gem update for fluent-plugin-google-cloud
This was originally submitted to pick up v0.3.1 of the cloud logging
plugin which had a fix for the name 'metadata' failing to resolve.
Since new releases of google-fluentd have this fix, it is no longer
required.

I've done some additional testing of 'gem update' behavior in the interim
and I think it is ok to use in targeted situations, but we should not be
doing an unconstrained update in general. The issue is that updating a
gem may bring new dependencies, some of those dependencies may include
native code, so it may try to launch a compiler, which isn't desirable
and prone to failure.

If we do need to grab an updated gem in the future we should specify an
explicit version and the --minimal-deps flag.
2015-07-23 15:06:56 -04:00
Vish Kannan
b6b8056a73 Merge pull request #11742 from jszczepkowski/scaler-up
Optional creation of nodes autoscaler for GCE.
2015-07-23 11:46:47 -07:00
Jerzy Szczepkowski
3808519907 Optional creation of nodes autoscaler for GCE.
Implemented optional creation and deletion of nodes autoscaler in kube-up and kube-down scripts for GCE.
2015-07-23 15:59:41 +02:00
Wojciech Tyczynski
4fa9fc7fbf Merge pull request #11266 from mbforbes/quietProject
Log Project (GKE) less and cleanup bash indentation
2015-07-23 10:54:05 +02:00
Wojciech Tyczynski
430422b181 Merge pull request #11268 from mbforbes/previewQuiet
(GKE) Stop 'gcloud preview' call from failing Jenkins jobs
2015-07-23 10:36:31 +02:00
Piotr Szczesniak
06b3406cef Added possibility to overwrite ENABLE_CLUSTER_DNS with env var
It's for autoscaling tests purposes and making the config consistent with
other flags like ENABLE_NODE_LOGGING
2015-07-23 10:25:06 +02:00
Wojciech Tyczynski
5988d30da0 Merge pull request #10715 from justinsb/spelling_octects
Spelling fix (in code): octects -> octets
2015-07-23 09:00:39 +02:00
Wojciech Tyczynski
a407051075 Merge pull request #11064 from derekwaynecarr/add_cert_ip_back
Some users of vagrant were getting different ip addresses in cert
2015-07-23 08:18:57 +02:00
Chris Hiestand
db1a73317c change shell var MINION_SCOPES to user setable
Because bash arrays may not be environment variables
 (see: <https://stackoverflow.com/questions/5564418/exporting-an-array-in-bash-script>)
 we have to change the MINION_SCOPES array to a string
* prefers aliases instead of full URLs for scopes

tested under GKE, needs GCE testing

Close #10458
2015-07-22 14:34:03 -07:00
David Oppenheimer
dec9adfe2e Replace ``shell with ``sh 2015-07-19 21:38:53 -07:00
Philibert Dugas
069c84cb51 Fixed ubuntu upstart scripts for etcd 2015-07-19 19:11:12 -04:00
Tim Hockin
25cec6ebb5 Fix errant quad-tick in docs 2015-07-18 14:06:08 -07:00
Robert Bailey
728b337e9c Refactor the functions that generate auth for the kubelet and kubeproxy
and remove the insecure configuration now that GKE has plumbed through
certificates.
2015-07-17 16:13:01 -07:00
Dawn Chen
ebc36c0e5a timeout docker load: 30 second, and restart docker daemon to workaround docker-load-hang issue. 2015-07-17 15:16:23 -07:00
Jean-Francois Chevrette
91a05c0709 source cluster env.sh on kube-up/down/push 2015-07-17 08:31:16 -04:00
Abhi Shah
aeb6599f51 Merge pull request #11320 from dchen1107/monit
Stop monit kube-addon on nodes.
2015-07-16 16:31:54 -07:00
Jean-Francois Chevrette
1f332860c4 same change for minion provision script 2015-07-16 18:12:41 -04:00
Jean-Francois Chevrette
04d377eff8 properly make sure that eth1 is not managed by NetworkManager 2015-07-16 18:05:08 -04:00
Jean-Francois Chevrette
e9bfe17f58 restart network twice to workaround bug 2015-07-16 14:57:23 -04:00
Robert Bailey
5e02f70dd0 Bump the container vm version to the latest build. 2015-07-16 09:30:33 -07:00
Lénaïc Huard
3b4a31dc81 Fix libvirt-coreos cluster
KUBERNETES=libvirt-coreos cluster/kube-up.sh produced the following error:

cluster/../cluster/libvirt-coreos/../../cluster/common.sh: line 83: user_args[@]: unbound variable

This was coming from the fact that, as a libvirt-coreos cluster runs locally on local VMs,
there is no authentication mechanism. This led to have user_args of common.sh unset.

In the case of libvirt-coreos, it is in fact expected to have no authentication token.
2015-07-16 18:09:53 +02:00
Max Forbes
fcb4e5e204 Log Project (GKE) less and cleanup bash indentation 2015-07-15 15:49:28 -07:00
Dawn Chen
7e665230c7 Stop monit kube-addon on nodes. 2015-07-15 11:11:55 -07:00
Wojciech Tyczynski
628ceac305 Increase kubelet start timeout in Monit config 2015-07-15 13:28:07 +02:00
Max Forbes
4a45aff0ec (GKE) Stop 'gcloud preview' call from failing Jenkins jobs. 2015-07-14 15:00:14 -07:00
Max Forbes
8e2f2af6d9 Cleanup GKE bash logging 2015-07-14 14:44:34 -07:00
Justin Santa Barbara
355e922b5d AWS: Restore (erroneously) removed get_instance_private_ip
Fix #11201
2015-07-14 13:45:12 -04:00
Brendan Burns
ab4448a0d6 Update multi-node docker instructions:
* Update etcd and add a warning about Docker 1.7.0
   * Update kubernetes to 0.21.2, Flannel to 0.5.0
   * Remove --sync-nodes which is removed.
2015-07-13 21:28:07 -07:00
Jason Riddle
b1fcb33c56 Change suggestion to use make quick-release 2015-07-13 13:36:00 -04:00
Jason Riddle
312d54c014 Add KUBE_RELEASE_RUN_TESTS=n to suggestion
Without KUBE_RELEASE_RUN_TESTS=n, it can take quite a while to build all of the necessary binaries since the tests have to run.
2015-07-11 19:33:11 -04:00
Gabriel Weyer
5f26cac373 Stop prompting for storage account type
`--type` is a mandatory parameter when creating a storage account, I used the cheapest one (Locally Redundant Storage). More details about the different types of storage can be found [https://azure.microsoft.com/en-us/documentation/articles/storage-introduction/#replication-for-durability-and-high-availability](here)
2015-07-11 14:40:05 +10:00
Max Forbes
739cb2f526 Robustly cleanup MIG template on GCE teardown 2015-07-10 10:14:04 -07:00
Abhishek Shah
bc99a57915 Assigned emptyDir for etcd data dir in skydns pod 2015-07-10 09:27:42 -07:00
Rohit Jnagal
906cc743be Merge pull request #11004 from bprashanth/dns_sidecar
Use the exec-sidecar as a healthz probe for the syndns container
2015-07-10 09:24:43 -07:00
derekwaynecarr
4898b014ec Some users of vagrant were getting different ip addresses in cert 2015-07-10 12:01:47 -04:00
Marek Grabowski
0c58e8a3f3 Merge pull request #10393 from ZJU-SEL/updatek8s
Bump the ubuntu k8s version to 0.19.3
2015-07-10 07:35:32 +02:00
Victor Marmol
cabecc1271 Merge pull request #10611 from marekbiskup/addon-update-kill-children
Addon update kill children
2015-07-09 21:09:58 -07:00
wizard
f7779a8162 update kubedns on ubuntu 2015-07-10 09:57:00 +08:00
wizard
69b55b82f8 update k8s to 0.19.3 2015-07-10 09:57:00 +08:00
Victor Marmol
ee8d2857fc Merge pull request #9381 from justinsb/aws_support_jessie
AWS: Add support for Vivid Vervet & Debian Jessie
2015-07-09 15:20:37 -07:00
Prashanth Balasubramanian
412467fe27 Use the exec-sidecar as a healthz probe for the syndns container 2015-07-09 15:13:46 -07:00
Wojciech Tyczynski
502e8e90d6 Merge pull request #10930 from bcbroussard/kube-ui-v1.1
Update the web ui (kube-ui) pod to v1.1
2015-07-09 15:20:26 +02:00
Marek Biskup
aa608258a6 kill child processes of addon-update on stop 2015-07-09 13:10:54 +02:00
Wojciech Tyczynski
e80a193664 Merge pull request #9943 from mamikonyana/override_ubuntu_defaults
Do not override environment variable in ubuntu defaults
2015-07-09 09:21:26 +02:00
Victor Marmol
f1e66c718d Merge pull request #10590 from roberthbailey/kubelet-on-nodes
Install the kubectl binary on nodes in addition to the master.
2015-07-08 16:13:12 -07:00
Justin Santa Barbara
c78b71d399 AWS: Treat ubuntu as an alias for 'latest ubuntu', i.e. 'vivid' 2015-07-08 17:00:44 -04:00
Justin Santa Barbara
dfac73d31a AWS: Change default OS to Ubuntu Vivid Vervet
The background for this change is in #9675.

In short, Vivid Vervet gives us a supported/updated image,
that runs Docker with a working storage engine, but doesn't
require a reboot as part of node start.

Fixes #9675.
2015-07-08 17:00:44 -04:00
Justin Santa Barbara
89900fa19b AWS: Ubuntu Vivid, set cgroup_root to docker
Otherwise libcontainer generates systemd unit file names that start with "-",
which are not valid.
2015-07-08 17:00:43 -04:00
Justin Santa Barbara
bdb2196abe AWS: Initial support for Ubuntu Vivid Vervet 2015-07-08 17:00:43 -04:00
Victor Marmol
7dd0dc1786 Merge pull request #10752 from justinsb/aws_query_by_subnet_id
AWS: Query by subnet-id, if we have it
2015-07-08 13:57:33 -07:00
Victor Marmol
3dd3d6e889 Merge pull request #10751 from justinsb/aws_existing_subnet
AWS: Allow callers to specify VPC_ID and SUBNET_ID
2015-07-08 13:57:13 -07:00
Justin Santa Barbara
8e69495f7f AWS: Add jessie support to cluster script 2015-07-08 16:47:55 -04:00
Victor Marmol
dd37642369 Merge pull request #10488 from justinsb/salt_support_systemd
Salt: support systemd (don't assume Redhat <=> systemd)
2015-07-08 13:43:08 -07:00
Victor Marmol
3be3603ef3 Merge pull request #10877 from brendandburns/aws
Fix AWS Setup.
2015-07-08 11:33:32 -07:00
BC Broussard
1220d3cf01 Update kube-ui pod to v1.1 2015-07-08 09:54:38 -06:00
derekwaynecarr
e2ddd2dd7b Missing ca crt in vagrant controllers 2015-07-08 10:59:10 -04:00
Brendan Burns
6d08ade4ce Don't start Docker by default on AWS 2015-07-07 21:57:43 -07:00
Brendan Burns
2e282013a8 Generate a kubeconfig file for the kubelet. 2015-07-07 21:29:38 -07:00
Yu-Ju Hong
f7e1a00477 Merge pull request #10884 from dchen1107/cleanup
Disable liveness for dns due to #10659
2015-07-07 17:59:17 -07:00
Yu-Ju Hong
1cf9a71aa2 Merge pull request #10872 from nikhiljindal/latestHeapster
Use latest heapster image
2015-07-07 17:35:40 -07:00
Dawn Chen
c6a0fd1eaf Upgrade to v6 from v5 2015-07-07 16:29:27 -07:00
Dawn Chen
4f947ce8ed Disable liveness for dns due to #10659 2015-07-07 16:27:38 -07:00
James Kyle
4c96fa7565 Resolves #9773, vmware_fusion can't find component
The error message thrown when the KUBERNETES_PROVIDER is vagrant and the
vagrant plugin cannot be found is ambiguous. This does not change
functionality, just provides more feedback as to the source of the
error.
2015-07-07 15:31:49 -07:00
nikhiljindal
e17e3579f3 Use latest heapster image 2015-07-07 14:40:18 -07:00
Yu-Ju Hong
76ec1be611 Merge pull request #10817 from satnam6502/sys-namespace
Change config files to kube-system which were missed in the original PR
2015-07-07 10:46:35 -07:00
Yu-Ju Hong
0947b2715a Merge pull request #9949 from iterion/aws-production-instance-types
AWS: Note about instance types
2015-07-07 10:16:22 -07:00
Satnam Singh
96c4e587ad Change config files to kube-system which were missed in the original PR 2015-07-07 01:05:19 -07:00
Satnam Singh
691c07763c Remove use of v1beta3 from ES logging 2015-07-06 18:47:45 -07:00
Yu-Ju Hong
639a7dac50 Merge pull request #10790 from satnam6502/fixns
Wait for service accounts in the kube-system namesapce
2015-07-06 18:36:56 -07:00
Satnam Singh
90e105521c Wait for service accounts in the kube-system namesapce 2015-07-06 18:12:25 -07:00
Daniel Smith
cfc68e9055 Built & pushed kube-ui v1.1 2015-07-06 16:04:28 -07:00
Karl Isenberg
fdf9515777 Add liveness probe to kube-ui 2015-07-06 16:04:23 -07:00
Brendan Burns
988aa6fdf6 Move things into a 'kube-system' namespace. 2015-07-06 15:08:23 -07:00
Yu-Ju Hong
1e0a16392d Merge pull request #10780 from cjcullen/testfix
Hacky workaround for #9822
2015-07-06 15:00:35 -07:00
Yu-Ju Hong
4a5b80fcb2 Merge pull request #10771 from ArtfulCoder/kube2sky-usev1
rebuilt kube2sky to use v1 api. new image ver is 1.11
2015-07-06 15:00:21 -07:00
Dawn Chen
747f84d553 Set resource limit for kube-ui addon container. 2015-07-06 13:36:22 -07:00
Abhishek Shah
1edfc82d96 rebuilt kube2sky to use v1 api. new image ver is 1.11 2015-07-06 12:32:23 -07:00
Yu-Ju Hong
b58e7c8c2d Merge pull request #10655 from dchen1107/cadvisor
Set minimal shares for containers with no cpu specified
2015-07-06 11:38:54 -07:00
Tim Hockin
6c88401889 Merge pull request #10271 from erictune/how-to-write-a-gsg
Scratch Getting-started-guide
2015-07-06 11:00:44 -07:00
Eric Tune
682abd9dab Scratch Getting-started-guide 2015-07-06 10:38:20 -07:00
CJ Cullen
edd419790e Hacky workaround for #9822 2015-07-06 10:02:53 -07:00
Yu-Ju Hong
8ce6fe855b Merge pull request #10712 from justinsb/always_install_socat
Salt: install socat; needed for port-forward
2015-07-06 09:58:52 -07:00
Yu-Ju Hong
83fbcba97b Merge pull request #10698 from justinsb/aws_master_sans
AWS: Configure SSL certificate alternate-names
2015-07-06 09:57:44 -07:00
Yu-Ju Hong
acf848a597 Merge pull request #10552 from shauns/patch-1
Respect DNS_DOMAIN setting in AWS+CoreOS
2015-07-06 09:36:54 -07:00
Justin Santa Barbara
cc68f87a7b AWS: Query by subnet-id, if we have it
If we are matching an existing subnet-id, query using that subnet-id!
2015-07-06 10:14:15 -04:00
Justin Santa Barbara
2429c7edf8 AWS: Allow callers to specify VPC_ID and SUBNET_ID
This is for people that want to run in a shared VPC/Subnet; while this should
work, we don't actively want to support it yet.  So we don't block it,
but we don't document/encourage it either!
2015-07-06 10:10:34 -04:00
Prashanth B
bb6f2f7ad9 Merge pull request #10716 from justinsb/spelling
Misc (non-code) spelling fixes
2015-07-05 11:23:17 -07:00
Zach Loafman
a2250d1caf Merge pull request #10597 from a-robinson/fluentd
Run fluentd on the master to collect the core master logs
2015-07-04 21:12:47 -07:00
Justin Santa Barbara
fca7822800 Misc (non-code) spelling fixes 2015-07-04 10:39:37 -04:00
Justin Santa Barbara
1ece037555 Spelling fix (in code): octects -> octets 2015-07-04 10:37:57 -04:00
Alex Robinson
4bfbd5f553 Add limits to the fluentd buffer size. 2015-07-03 23:24:08 +00:00
Justin Santa Barbara
6504df77f1 Salt: install socat; needed for port-forward
port-forward needs socat on the node hosts; we technically
don't need it today on the master, but this seems the right
place to put it, and socat is a small dependency.
2015-07-03 19:12:44 -04:00
Justin Santa Barbara
25007421ba Salt: re-remove comment block
It had been removed in upstream, but had been kept by mistake here.
2015-07-03 12:43:36 -04:00
Justin Santa Barbara
600a0d6fe7 Salt: have kube-addons service depend on init file
For symmetry with systemd
2015-07-03 12:41:59 -04:00
Justin Santa Barbara
a5b3c73ac4 Salt: Add service block for kube-proxy for systemd
We have the workaround for Salt's problems here, but we should still express
our intent.
2015-07-03 10:26:21 -04:00
Justin Santa Barbara
60d822435b Salt: clean daemon_args on RedHat, not systemd
I don't think it actually makes a difference based on how we're using it,
but this is now more of a precise change.
2015-07-03 10:24:32 -04:00
Justin Santa Barbara
ad0293e3f3 Salt: Add more dependencies to systemd services
This may help Salt reload services correctly, although we still
need the script until Salt's bug with reloading services on systemd
is resolved.

Salt bug: https://github.com/saltstack/salt/issues/16778
2015-07-03 01:40:15 -04:00
Justin Santa Barbara
944fc1ed58 Set standard bash options in services helper script 2015-07-03 01:40:15 -04:00
Justin Santa Barbara
bcd92c7522 Salt: support systemd (don't assume Redhat <=> systemd)
Also work around problems with Salt & systemd services, in particular
that Salt doesn't issue a daemon-reload.
2015-07-03 01:40:15 -04:00
Justin Santa Barbara
c676c11189 AWS: Configure SSL certificate alternate-names
GCE does this in its per-provider scripts; this does the same for AWS and lets
other providers do the same; I believe kube2sky requires 10.0.0.1 as a SAN.
2015-07-03 01:18:07 -04:00
Karl Isenberg
0229cb01fc Move sourcing of provider-specific util.sh into kube-util.sh
- kube-util.sh defines default implementations
- provider util.sh overrides the default implementations as desired
- default kube-util functions now print to stderr to avoid affecting
  captured output
2015-07-02 12:50:18 -07:00
Dawn Chen
9ce11545c0 Explicitly configure master component containers and nginx with 200m each. 2015-07-02 10:46:39 -07:00
Arsen Mamikonyan
38c3bdfa45 Do not override environment variable in ubuntu defaults and ubuntu/build.sh 2015-07-02 13:10:54 +01:00
Zach Loafman
1d16be675c Merge pull request #10653 from dchen1107/resource_management
Set resource limit for addon containers
2015-07-01 19:35:28 -07:00
Dawn Chen
54531d9b55 Set memory limit (200mi) to fluentd static pod 2015-07-01 17:00:06 -07:00
Dawn Chen
6b61918b67 Set resource limit for both elasticsearch and kibana containers based on data collected by #10335 2015-07-01 16:01:09 -07:00
Zach Loafman
b60c8e567f Merge pull request #10077 from timstclair/ui-server
Move dashboard UI out of the apiserver to a separate pod
2015-07-01 15:56:33 -07:00
Zach Loafman
e5670c104d Merge pull request #10604 from nikhiljindal/v1
Updating scripts to use v1 instead of v1beta3
2015-07-01 15:54:17 -07:00
Zach Loafman
b27a8e1d90 Merge pull request #10606 from nikhiljindal/testsToV1
Update tests/examples to v1
2015-07-01 15:53:54 -07:00
Zach Loafman
e3e024da10 Merge pull request #10614 from justinsb/aws_ssh_fingeprint
AWS: Use the SSH key fingerprint, not the AWS fingerprint
2015-07-01 15:53:31 -07:00
Dawn Chen
ce520dd6e8 Set resource limit for skydns containers based on data collected by #10335 2015-07-01 14:47:29 -07:00
Dawn Chen
4f2d22263e Set resource limit for both heapster and influxdb container based on data collected
by #10335. Please noted that both influxdb and heapster could be oom-killed due to
memory leakage here.
2015-07-01 14:39:10 -07:00
nikhiljindal
274792d7bb Stop exposing v1beta3 by default 2015-07-01 14:38:02 -07:00
Tim St. Clair
b6b2d6df42 Add kube-ui cluster addon for serving k8s dashboard UI.
Changes include:
- Add kube-ui binary for serving static dashboard UI
- Add kube-ui docker image, replication controller, and service
- Make the kube-ui a cluster-addon (enabled by default)
- Split the compiled pkg/ui/datafile.go into separate dashboard and swagger packages
- Update docs to reflect changes
2015-07-01 14:21:47 -07:00
Zach Loafman
30cc467159 Merge pull request #10634 from mikedanese/fix-ca-logs
fix heapster google configs so that heapster has a CA cert for googleapis
2015-07-01 14:14:06 -07:00
Alex Robinson
e5ea6ae854 Run fluentd on the master node by default.
This involves adding the logging-write scope to the master when running on GCE.
2015-07-01 20:07:52 +00:00
Alex Robinson
8855371763 Configure fluentd to collect additional log files, including master log files.
This also merges the output blocks together because there's no compelling
reason to have a separate output block for each input.
2015-07-01 20:07:47 +00:00
Marek Biskup
8df3a9cae8 namespaces in addon update 2015-07-01 21:31:52 +02:00
Mike Danese
6ecddd9290 fix heapster configs so that heapster has a CA cert for googleapis 2015-07-01 11:26:30 -07:00
Maru Newby
40632d3bf6 Vagrant: Allow env override of IP addresses
MASTER_IP and MINION_IP_BASE are hard-coded in vagrant's
config-default.sh, and the values correspond to virtualbox's default
subnet.  On hosts that have both virtualbox and another provider
installed, attempting to deploy kubernetes with the non-virtualbox
provider is likely to result in broken networking.  This change allows
the addresses to be overridden via the environment so that more
appropriate values can be used.
2015-07-01 10:20:12 -07:00
Zach Loafman
3094c1624b Merge pull request #10492 from derekwaynecarr/add_watch_service_file
Fix Vagrant kube-up - missed file watch on systemd stops kubelet starting on initial kube-up
2015-07-01 09:49:59 -07:00
Zach Loafman
bd12aefdf2 Merge pull request #10237 from marekbiskup/addon-update-do-not-retry-too-long
addon updater should not retry too many times - specs may be invalid
2015-07-01 08:52:02 -07:00
Zach Loafman
502103cdc6 Merge pull request #10453 from satnam6502/fix-es
Change port names to avoid validation failure
2015-07-01 08:30:28 -07:00
Marek Biskup
7873e252f0 addon updater should not retry too many times because specs may be invalid 2015-07-01 16:22:32 +02:00
derekwaynecarr
de78898170 Missing file watch on systemd stops kubelet starting on kube-up 2015-07-01 09:59:26 -04:00
Zach Loafman
b83236ee7a Merge pull request #10568 from derekwaynecarr/fix_vagrant_kube_proxy
Missed update to kube-proxy when removing nginx on vagrant
2015-07-01 06:42:00 -07:00
Zach Loafman
ffeb982064 Merge pull request #10528 from dchen1107/cleanup
Persistent influxdb data to directory on local host.
2015-07-01 06:41:24 -07:00
Justin Santa Barbara
2a8d46864b AWS: Use the SSH key fingerprint, not the AWS fingerprint
This is unfortunate, because it means we have two fingerprints,
although arguably the OpenSSH key fingerprint is much more common.
However, the OSX Mavericks version of ssh-keygen can't compute
the AWS fingerprint correctly (e.g. https://www.netmeister.org/blog/ssh2pkcs8.html)

So we work on OSX Mavericks, we use the more common OpenSSH fingerprint.
2015-07-01 04:10:48 -07:00
nikhiljindal
2e9e46dd08 Updating scripts to use v1 instead of v1beta3 2015-07-01 00:23:16 -07:00
Dawn Chen
ff17623742 Persistent influxdb data to directory on local host. 2015-06-30 22:08:40 -07:00
Maru Newby
2da59a2f34 Install 'docker' package for Fedora 22
Fedora < 22 provides docker via the 'docker-io' package, but this
package was renamed to 'docker' as of Fedora 22.  Though the docker
package can be installed manually with 'dnf install docker-io' on F22,
Salt requires the explicit package name or deployment will fail.
2015-06-30 21:36:33 -07:00
Robert Bailey
fedddee157 Install the kubectl binary on nodes in addition to the master. 2015-06-30 16:52:17 -07:00
derekwaynecarr
2cc869b1c5 Missed update to kube-proxy when removing nginx on vagrant 2015-06-30 15:42:52 -04:00
Dawn Chen
e55cd709a1 Removed cluster/saltbase/salt/_states/container_bridge.py since it is useless now. 2015-06-30 11:00:41 -07:00
Satnam Singh
4e58e001da Change port names to avoid validation failure 2015-06-30 10:56:20 -07:00
Shaun Stanworth
74bb1b349a Respect DNS_DOMAIN setting in AWS+CoreOS
Without this change, CoreOS minion nodes are unable to perform short-name DNS lookups by default, as the default value for `DNS_DOMAIN` is `cluster.local`, which doesn't match the hard-coded value here.
2015-06-30 17:48:15 +01:00
Zach Loafman
f21b6b89d1 Fix issues mentioned in #10520 2015-06-30 06:51:10 -07:00
Daniel Smith
dcd91666b9 wait until a token shows up to start addons 2015-06-29 18:41:12 -07:00
Alex Robinson
af533b2b2a Merge pull request #10275 from ddysher/ubuntu-flannel
Ubuntu cluster: run flannel on master
2015-06-29 16:30:31 -07:00
Alex Robinson
ac917aa36a Merge pull request #10402 from justinsb/docker_pkg_require_download
Add explicit dependency of docker pkg on the deb download
2015-06-29 16:10:53 -07:00
Alex Robinson
799c0a09e0 Merge pull request #10369 from mikedanese/heapster-in-cluster-config
bump heapster addon version to use inClusterConfig
2015-06-29 10:56:50 -07:00
Justin Santa Barbara
e29e9f0033 Add explicit dependency of docker pkg on the deb download
Salt ordering continues to surprise me.  I saw them execute
out of order, though I don't know why.  Adding an explicit
dependency to prevent out-of-order execution.
2015-06-28 23:51:12 -04:00
Justin Santa Barbara
ea74bd13b8 Work around Salt 18089
Directly create /etc/sysctl.d/99-salt.conf
2015-06-28 23:50:00 -04:00
Robert Bailey
1c0b765df6 Merge pull request #10359 from justinsb/aws_fix_options
Fix AWS options doc
2015-06-26 23:16:51 -07:00
Robert Bailey
e6f14a21ce Merge pull request #10403 from justinsb/ebs-for-master-data-2
AWS: Use persistent disk on master
2015-06-26 21:52:10 -07:00
Robert Bailey
ad12c98e6d Merge pull request #10150 from thockin/kube2sky-with-token-fix
Make DNS not need its own token
2015-06-26 18:17:03 -07:00
Robert Bailey
017a43702a Merge pull request #10400 from justinsb/fix_10379
Don't make kubelet systemd service depend on Docker
2015-06-26 17:12:51 -07:00
Dawn Chen
1a4d3ef680 Revert "Set resource limit for both heapster and influxdb container based on" 2015-06-26 15:45:26 -07:00
Mike Danese
bfc80095d4 bump heapster addon version to use inClusterConfig 2015-06-26 15:43:32 -07:00
Robert Bailey
ffb846a284 Merge pull request #10375 from eparis/enable_node_monitoring
Remove unused enable_node_monitoring
2015-06-26 12:58:14 -07:00
Robert Bailey
91589143a3 Merge pull request #10370 from mikedanese/no-more-machines
remove --machines and related deprecated flags from code and docs
2015-06-26 10:54:01 -07:00
Robert Bailey
0048eae8eb Merge pull request #9965 from stevekuznetsov/skuznets/allow-https
Allowing for HTTPS Probes
2015-06-26 10:43:37 -07:00
Justin Santa Barbara
a3cb84fa56 AWS: Wait for disk to be attached in setup-master-pd.sh 2015-06-26 11:52:45 -04:00
Justin Santa Barbara
6e09cd3ffd AWS: Create/reuse master pd directly 2015-06-26 11:52:45 -04:00
Justin Santa Barbara
0a4f03f235 AWS: Mount ephemeral on /mnt/ephemeral
If we're going to have a persistent disk on /mnt/master-pd, it seems risky
sometimes to have /mnt be a mounted volume.

A new consistent approach: we mount volumes under /mnt/<name>.
2015-06-26 11:52:45 -04:00
Justin Santa Barbara
7059f379a4 AWS: Mount persistent disk as sdb on master 2015-06-26 11:52:44 -04:00
Adam Sunderland
66e0c5432f Use EBS for Master Data
Signed-off-by: Adam Sunderland <iterion@gmail.com>
2015-06-26 11:52:44 -04:00
Justin Santa Barbara
3ef028148d Fix AWS options doc
Fix formatting, and ZONE should have been KUBE_AWS_ZONE.
2015-06-26 11:16:44 -04:00
Justin Santa Barbara
54d3ac92ea Don't make kubelet systemd service depend on Docker
Fixes #10379
2015-06-26 11:03:09 -04:00
Mike Danese
1e130e0794 remove --machines from code and docs 2015-06-25 18:29:11 -07:00
Eric Paris
58df58f3d7 Remove unused enable_node_monitoring option
Back in 1a7f7245e7 we dropped the one
place this was used, but left all of the variable and definitions and
garbage around cluster/
2015-06-25 20:57:56 -04:00
Tim Hockin
6757a1ce94 Use the svc.cluster.local name for DNS health checks 2015-06-25 17:11:53 -07:00
Tim Hockin
07e75c1dec Use v1 API 2015-06-25 17:04:47 -07:00
Tim Hockin
1ce7f1b5be Stop using special tokens for DNS 2015-06-25 17:04:47 -07:00
Tim Hockin
2b4da35499 Make kube2sky fall back on service accounts
Service accounts are as yet unverified (no CA cert) but at least it will work.
2015-06-25 17:04:47 -07:00
Tim Hockin
88ce0ad8e9 Clean up Changelog
- sort newest-first
- add missing entry
- format consistently
2015-06-25 17:04:47 -07:00
Brendan Burns
74806a1047 Merge pull request #10296 from thockin/eol-registry-cache
EOL Google's registry caching mirror
2015-06-25 14:52:27 -07:00
Maxwell Forbes
bc1930927d Merge pull request #10347 from justinsb/vagrant_no_cidr_on_master
Salt: don't assume that master => cbr-cidr
2015-06-25 10:23:59 -07:00
Maxwell Forbes
655179dcfb Merge pull request #10264 from mikedanese/ca-token
add ca cert to token controller and all service accounts
2015-06-25 09:56:35 -07:00
Steve Kuznetsov
d581d1f6c0 Fixed typo in gce-specific kube-up script 2015-06-25 12:51:34 -04:00
Justin Santa Barbara
a0ae1d90ba Salt: don't assume that master => cbr-cidr
In particular, this is required for vagrant
2015-06-25 09:17:00 -04:00
Brendan Burns
d2334d60c8 Merge pull request #10328 from dchen1107/cleanup
Add dependencies on docker and kubelet service when copying master co…
2015-06-24 21:32:35 -07:00
Dawn Chen
e7d217d941 Add dependencies on docker and kubelet service when copying master components manifests
to /etc/kubernetes/manifest
2015-06-24 21:15:08 -07:00
Maxwell Forbes
3afda5d566 Merge pull request #10312 from dchen1107/cleanup
Take 2: Fix the race between configuring cbr0 and restarting static pods
2015-06-24 17:59:50 -07:00
Mike Danese
56bde3342a add ca to token controller and all service accounts 2015-06-24 15:10:20 -07:00
Maxwell Forbes
244c2f7b90 Merge pull request #10236 from derekwaynecarr/remove_nginx
Remove nginx from vagrant configuration
2015-06-24 13:21:59 -07:00
Dawn Chen
6ddfa512de Revert "Revert "Fix the race between configuring cbr0 and restarting static pods""
This reverts commit fd0a95dd12.
2015-06-24 11:10:10 -07:00
Tim Hockin
280f99afd9 EOL our registry caching mirror
Docker's v1 registry has gotten slower and slower, and they have no
interest in fixing it.  Using a mirror forces v1 mode.  Measurements
show that v1 with our mirror is slower than v2 with docker's registry in
just about all metrics.
2015-06-24 09:56:59 -07:00
Piotr Szczesniak
fd0a95dd12 Revert "Fix the race between configuring cbr0 and restarting static pods" 2015-06-24 09:56:49 +02:00
Deyuan Deng
6f765708ad Ubuntu cluster: properly formatting shell scripts 2015-06-23 23:07:23 -04:00