Commit Graph

302 Commits (72b2a03d52219103be8b49262f6423faf5fde38f)

Author SHA1 Message Date
Kubernetes Submit Queue 7007064e1e Merge pull request #35160 from mml/luc-cleanup
Automatic merge from submit-queue

Remove unneeded double quotes from hack/local-up-cluster.sh.
2016-10-19 17:29:12 -07:00
Matt Liggett 1decca8202 Remove unneeded double quotes from hack/local-up-cluster.sh.
They freak out vim syntax highlighting when they are combined with a '/'
character.
2016-10-19 15:12:11 -07:00
Davanum Srinivas 20d1818d78 Enable local-up-cluster.sh to start with the secured port
Generate a kubeconfig for use with controller-manager, kubelet,
scheduler etc. This kubeconfig should use the secure https
port of the api server with appropriate ca cert for the components
to talk to api server.

With this change, one can set API_PORT=0 to completely switch off
insecure access for testing admission controllers etc.

Fixes #33375
2016-10-19 06:36:01 -04:00
Kubernetes Submit Queue 4b7024efe7 Merge pull request #27784 from deads2k/catch-mutators
Automatic merge from submit-queue

add optional mutation checks for shared informer cache

We need to make sure that no one is mutating caches if they're using a shared informer.  It is important that whatever is tracking those changes gets the object *before* anyone else possibly could.

This adds the ability to track the original objects in the cache and their current values.  Go doesn't have an exit hook or a way to say "wait for non-daemon go-funcs to complete before exit", so this runs a gofunc on a loop that can panic the entire process.  It's gated behind an env var.

@derekwaynecarr did I get the right spots to make sure that e2e runs with this flag?
@smarterclayton @kubernetes/rh-cluster-infra
2016-10-18 14:38:57 -07:00
deads2k aee54ae57e add optional mutation checks for shared informer cache 2016-10-18 09:19:38 -04:00
Euan Kemp 973b417aa5 local-up: Add option to guess binary path 2016-10-17 11:55:29 -07:00
deads2k 127e335802 add flag for enabling RBAC on local-up-cluster 2016-10-12 11:32:09 -04:00
Bernard Van De Walle f1b1c92ada adding paraneter for API_BIND_ADDRESS in local-up-cluster.sh. Default value is 0.0.0.0 2016-10-06 14:30:29 -07:00
Kubernetes Submit Queue 63139f937c Merge pull request #30787 from jbeda/rsync
Automatic merge from submit-queue

Speed up dockerized builds

This PR speeds up dockerized builds.  First, we make sure that we are as incremental as possible.  The bigger change is that now we use rsync to move sources into the container and get data back out.

To do yet:
* [x] Add a random password to rsync.  This is 128bit MD4, but it is better than nothing.
* [x] Lock down rsync to only come from the host.
* [x] Deal with remote docker engines -- this should be necessary for docker-machine on the mac.
* [x] Allow users to specify the port for the rsync daemon.  Perhaps randomize this or let docker pick an ephemeral port and detect the port?
* [x] Copy back generated files so that users can check them in.  This is done for `zz_generated.*` files generated by `make generated_files` 
  * [x] This should include generated proto files so that we can remove the hack-o-rama that is `hack/hack/update-*-dockerized.sh` 
* [x] Start "versioning" the build container and the data container so that the CI system doesn't have to be manually kicked.
* [x] Get some benchmarks to qualify how much faster.

This replaces #28518 and is related to #30600.

cc @thockin @spxtr @david-mcmahon @MHBauer 

Benchmarks by running `make clean ; sync ; time bash -xc 'time build/make-build-image.sh ; time sync ; time build/run.sh make ; time sync; time build/run.sh make'` on a GCE n1-standard-8 with PD-SSD.

| setup | build image | sync | first build | sync | second build | total |
|-------|-------------|----- |----------|------|--------------|------|
| baseline | 0m11.420s | 0m0.812s | 7m2.353s | 0m42.380s | 7m8.381s | 15m5.348s |
| this pr | 0m10.977s | 0m15.168s | 7m31.096s | 1m55.692s | 0m16.514s | 10m9.449s |
2016-10-05 19:51:09 -07:00
Kubernetes Submit Queue dffac87ce6 Merge pull request #33501 from bprashanth/feature_gate
Automatic merge from submit-queue

Enable alpha features in local-up-cluster

because why not
2016-10-03 21:10:39 -07:00
Joe Beda d955f54918 Remove unused bash variables 2016-10-03 19:42:22 -07:00
Kubernetes Submit Queue 6c5a187171 Merge pull request #33378 from deads2k/rbac-10-allow-token
Automatic merge from submit-queue

add anytoken authenticator

Adds `--insecure-allow-any-token` as a flag to the API server to create an authenticator that will accept any bearer token and transform it into a user by parsing it out as `username/group1,group2,...`.

This gives an easy way to identify as a user and check permissions:
```bash
ALLOW_ANY_TOKEN=true hack/local-up-cluster.sh 
kubectl config set-cluster local-kube --server=https://localhost:6443 --insecure-skip-tls-verify=true
kubectl config set-credentials david --token=david/group1
kubectl config set-context local --cluster=local-kube --user=david
kubectl config use-context local
```

@kubernetes/sig-auth
2016-09-29 12:32:08 -07:00
deads2k 5080a575ad add anytoken authenticator 2016-09-29 14:14:06 -04:00
bprashanth 076e283b79 Enable alpha features in local-up-cluster 2016-09-28 09:18:33 -07:00
André Martins 3dfd324987 hack: fix local-cluster-up advertise_address default value
Fixes: 9fc1d61ab7

Signed-off-by: André Martins <aanm90@gmail.com>
2016-09-28 16:40:50 +01:00
Kubernetes Submit Queue 98a4a82d67 Merge pull request #32921 from aanm/adding-service-ip-range-as-option
Automatic merge from submit-queue

local-up-cluster.sh: add SERVICE_CLUSTER_IP_RANGE as option

Allows the user the use an environment variable to specify the SERVICE_CLUSTER_IP_RANGE without modifying the `hack/local-up-cluster.sh` script.

Signed-off-by: André Martins <aanm90@gmail.com>
2016-09-26 22:30:04 -07:00
Kubernetes Submit Queue 8afa8c796f Merge pull request #31165 from derekwaynecarr/fix-local-up-cluster-defaults
Automatic merge from submit-queue

Hack local-up-cluster should enforce cpu limits by default

CPU CFS quota should be enforced by default.

/cc @vishh
2016-09-19 05:04:59 -07:00
André Martins f225d4af4c local-up-cluster.sh: add SERVICE_CLUSTER_IP_RANGE as option
Signed-off-by: André Martins <aanm90@gmail.com>
2016-09-16 23:41:41 +01:00
Kubernetes Submit Queue 4c71602373 Merge pull request #31898 from pmorie/local-cluster-kubelet
Automatic merge from submit-queue

Make it possible to run local kubelet independently of cluster

Makes it possible to start a cluster and kubelet independently (was necessary when debugging issues related to restarting kubelet for existing node).
2016-09-14 13:52:53 -07:00
Paul Morie de1d44e3f0 Make it possible to run local kubelet independently of cluster 2016-09-01 23:53:09 -04:00
Michal Rostecki 638548b5a8 Add client-server runtime support to local-up-cluster.sh
Provide support for --container-runtime-endpoint and
--image-service-endpoint in kubelet.

Ref #28789
2016-08-24 12:49:25 +02:00
derekwaynecarr b0530a62a6 Hack local up cluster should enforce cpu limits by default 2016-08-22 17:35:49 -04:00
Jan Safranek 5f6efefc40 [squash] Rename and move to storageclass/ 2016-08-22 14:11:01 +02:00
Jan Safranek 82d35fb461 Add admission controller for default storage class.
The admission controller adds a default class to PVCs that do not require any
specific class. This way, users (=PVC authors) do not need to care about
storage classes, administrator can configure a default one and all these PVCs
that do not care about class will get the default one.
2016-08-18 18:55:35 +02:00
Huamin Chen f45ba90909 enhancements to local-up-cluster.sh:
- fixes containerized kubelet: bind mount /dev and cloud credential directories
- add CLOUD_CONFIG env to get openstack credentials

Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-08-02 14:12:14 -04:00
k8s-merge-robot 0e8d515225 Merge pull request #29373 from moolitayer/clean_script_output
Automatic merge from submit-queue

Silence curl output

Removes the following from script output:
curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused
2016-07-22 19:14:41 -07:00
Davanum Srinivas 9fc1d61ab7 Enable endpoints in kubernetes service started by local-cluster-up.sh
--advertise_address should be set to 127.0.0.1, So let API server pick
the default if necessary.

Fixes #29374
2016-07-21 22:39:17 -04:00
Mooli Tayer ba6878f4fc Silence curl output
Removes the following from curl output:
curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused
2016-07-21 14:55:26 +03:00
Mike Danese 95e2e299a9 move kube-dns to the cluster/addons/ directory 2016-07-14 11:44:00 -07:00
Tim Hockin faeef5c4ae Use make as the main build tool
This allows us to start building real dependencies into Makefile.

Leave old hack/* scripts in place but advise to use 'make'.  There are a few
rules that call things like 'go run' or 'build/*' that I left as-is for now.
2016-07-12 21:52:00 -07:00
k8s-merge-robot 1ab7671fdc Merge pull request #23866 from intelsdi-x/chcon_invalid_argument_in_dockerized_kubelet
Automatic merge from submit-queue

invalid arg during applying SELinux label

Tested with Ubuntu 16.04 with SELINUX support. Actually, after `chcon `with long label got: `chcon: failed to set type security context component to ‘system_u:object_r:svirt_sandbox_file_t:s0’: Invalid argument`
2016-06-30 20:39:31 -07:00
David McMahon ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Madhusudan.C.S 816c4d9e2b Substitute federation_domain_map parameter with its value in node bootstrap scripts.
This also removes the substitution code we added to the build
scripts in one of the previous commits.
2016-06-27 14:54:49 -07:00
k8s-merge-robot 1aefa19ab6 Merge pull request #26449 from aanm/fixing-ipv6-parse
Automatic merge from submit-queue

Make local-up-cluster.sh IPv6 friendly

Added a new environment variable `API_HOST_IP`. `API_HOST_IP` allows the
user to specify an IPv6 address that is parsable by Golang. `API_HOST` on
the other hand allows the user to specify the IPv6 address to be used in
a URL's format as described in RFC2732.

Example:
```bash
API_HOST_IP="FEDC:BA98:7654:3210:FEDC:BA98:7654:3210"
API_HOST="[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]
```
or
```bash
API_HOST_IP="FEDC:BA98:7654:3210:FEDC:BA98:7654:3210"
API_HOST="[${API_HOST_IP}]"
```

Signed-off-by: André Martins <aanm90@gmail.com>
2016-06-25 06:34:53 -07:00
Manjunath A Kumatagi ba1d201a4c Need doc updated with export KUBERNETES_PROVIDER=local in local-up-cluster.sh script 2016-06-23 06:59:41 -04:00
Jan Safranek 67e5f5c001 Update default value of CLAIM_BINDER_SYNC_PERIOD.
It's 15 seconds now, see #26414.
2016-06-15 15:25:55 +02:00
André Martins 0ced1ddaee Make local-up-cluster.sh IPv6 friendly
Added a new environment variable API_HOST_IP. API_HOST_IP allows the
user to specify an IPv6 address that is parsable by Golang. API_HOST on
the other hand allows the user to specify the IPv6 address to be used in
a URL's format as described in RFC2732.

Example:
API_HOST_IP="FEDC:BA98:7654:3210:FEDC:BA98:7654:3210"
API_HOST="[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]
or
API_HOST_IP="FEDC:BA98:7654:3210:FEDC:BA98:7654:3210"
API_HOST="[${API_HOST_IP}]"

Signed-off-by: André Martins <aanm90@gmail.com>
2016-06-13 11:33:06 +01:00
Girish Kalele 60d2293f4c Address review comments 2016-05-31 10:14:33 -07:00
k8s-merge-robot a24584465e Merge pull request #24965 from Arvinderpal/add_cni_dir_to_local_cluster_up
Automatic merge from submit-queue

Adds --network-plugin-dir argument to hack/local-up-cluster.sh

CNI Network Plugin developers who want to use hack/local-up-cluster.sh need to specify the --network-plugin-dir option to kubelet.
2016-05-28 11:53:54 -07:00
André Martins bd37100713 Add more global env vars to local-up-cluster.sh
Signed-off-by: André Martins <aanm90@gmail.com>
2016-05-27 23:58:01 +01:00
k8s-merge-robot 0985f847ea Merge pull request #25311 from swagiaal/check-openssl
Automatic merge from submit-queue

Verify that openssl is installed in local-up-cluster.sh
2016-05-16 01:45:54 -07:00
Lucas Käldström 8e64b5f347 Speed up hack/local-up-cluster.sh by building hyperkube instead of separate binaries. Also add arm64 as a valid arch 2016-05-15 16:38:11 +03:00
Sami Wagiaalla e9045bea22 Verify that openssl is installed in local-up-cluster.sh 2016-05-07 12:59:17 -04:00
Sami Wagiaalla dc6f36634d Add cloud-provider setting to local-up-cluster.sh 2016-05-07 12:57:58 -04:00
Arvinderpal 1a92f2b9de Adds --network-plugin-dir argument to hack/local-up-cluster.sh
to allow local deploys to specify cni plugin directory.
2016-04-28 21:03:33 -07:00
Jeff Vance f4f6a53a3b added claim_binder sync period 2016-04-25 09:40:50 -07:00
k8s-merge-robot 2e9bcb8311 Merge pull request #24025 from ZJU-SEL/fix-working-dirctory-mistake
Automatic merge from submit-queue

fix relative working dirctory of KUBE_ROOT

fix relative working dirctory of `KUBE_ROOT`, do not need to change to `KUBE_ROOT` in the first place

Signed-off-by: Crazykev <zcq8989@gmail.com>
2016-04-22 15:01:16 -07:00
k8s-merge-robot 9ae35f875d Merge pull request #23774 from cjdrake/master
Automatic merge from submit-queue

Replace tab with eight spaces

This file only uses spaces for indentation, and my text editor highlighted the one tab.
2016-04-19 03:47:06 -07:00
George Tankersley 07eb9ec305 hack: specify advertise address for local-up-cluster.sh
This fixes the bug where the script fails to launch an apiserver on a
machine without active networking.
2016-04-14 12:08:21 -07:00
Crazykev 7c9dfd8620 fix relative working dirctory of KUBE_ROOT
Signed-off-by: Crazykev <zcq8989@gmail.com>
2016-04-08 11:00:27 +08:00
Wlodzimierz Borkowski 63712cbb1c invalid arg during applying SELinux label
Tested with ubuntu 16.04 with selinux support.
Actually after chcon with long label got: Invalid argument from cmd
2016-04-05 13:07:36 +02:00
Chris Drake 7aa9ef54ce Replace tab with eight spaces 2016-04-01 18:47:13 -07:00
k8s-merge-robot 130c67f1b0 Merge pull request #22474 from bprashanth/local-up
Auto commit by PR queue bot
2016-03-04 02:29:36 -08:00
Prashanth Balasubramanian 0aa5502fe1 Use 8.8.8.8 as default DNS server in local-up-cluster. 2016-03-03 14:59:40 -08:00
Andrew Stuart a767b700b4
Update start_kubedns to use API_{HOST,PORT} vars 2016-03-01 08:54:55 -07:00
Sami Wagiaalla 2ed03a194d Enable passing hostname-override through environment variable 2016-02-23 09:44:41 -05:00
Thibault Serot 57c06224eb Enabling DNS support in local-up-cluster.sh 2016-02-21 18:56:14 +01:00
Thibault Serot 9c5f4c112b Enabling DNS support in local-up-cluster.sh 2016-02-21 18:55:06 +01:00
Dan Williams fabb65c13f Add a network plugin that duplicates "configureCBR0" functionality 2016-02-03 10:08:08 -06:00
k8s-merge-robot 15ecc2f750 Merge pull request #18813 from runseb/patch-1
Auto commit by PR queue bot
2015-12-20 14:28:26 -08:00
k8s-merge-robot 0641e4a8f0 Merge pull request #18417 from Pensu/master
Auto commit by PR queue bot
2015-12-18 10:35:00 -08:00
runseb 6fa56de691 Remove NamespaceAutoProvision which is deprecated
According to https://github.com/kubernetes/kubernetes/blob/master/docs/admin/admission-controllers.md
NamespaceAutoProvision is deprecated, keeping it in the script tends to give a bad practice where namespace are auto created.

Suggest to remove it.
2015-12-17 11:05:20 +01:00
Tim Hockin ef8dbc1819 Add kubectl to local-up script 2015-12-15 09:02:02 -08:00
markturansky 4fc1bf1f23 Added PersistentVolumeController 2015-12-11 10:33:30 -05:00
Peeyush Gupta 4774e7146e Add support for ppc64le architecture. 2015-12-09 12:12:13 +05:30
Janet Kuo 36067cf4a4 Fix local cluster script 2015-12-01 17:11:21 -08:00
k8s-merge-robot 290112bce6 Merge pull request #16841 from jiangyaoguo/keep-kubeproxy-hostname-consistent-with-kubelet
Auto commit by PR queue bot
2015-11-30 18:26:21 -08:00
k8s-merge-robot 794f162ef0 Merge pull request #16662 from linux-on-ibm-z/master
Auto commit by PR queue bot
2015-11-30 17:54:41 -08:00
jiangyaoguo a739fc44c4 keep kubeproxy hostname consistent with kubelet 2015-11-28 10:47:29 +08:00
gajju26 94093d9cbc Added support for IBM z Systems architecture (s390x) 2015-11-26 11:25:04 +05:30
Avesh Agarwal c113737a1d Apply correct SELinux label to kubelet volume dir in local cluster. 2015-11-03 15:00:43 -05:00
Dawn Chen 60d9d2fa3f Merge pull request #14379 from derekwaynecarr/local_up_cluster_enforce_cfs_quota
Add flag to enable cpu limit enforcement when using local up cluster
2015-10-12 13:24:06 -07:00
Abhishek Shah a1b6dbe870 Removed DenyEscalatingExec from the list of default admission controllers. 2015-10-06 13:35:32 -07:00
Paul Morie 3d4b76d722 Add option to allow security context in local cluster 2015-10-05 12:59:37 -04:00
derekwaynecarr 321b4b577d Add flag to enable cpu limit enforcement when using local up cluster 2015-09-22 16:31:28 -04:00
k8s-merge-robot 445fde3dc5 Merge pull request #13447 from pweil-/pid-mode
Auto commit by PR queue bot
2015-09-16 23:34:35 -07:00
Paul Weil ed80c2b940 pid mode 2015-09-15 13:51:44 -04:00
Sam Ghods b021c83ac3 Speed up hack/local-up-cluster.sh build time 2015-09-14 15:39:53 -07:00
Yifan Gu 4f6f5586d2 hack/local-up-cluster.sh: add new rkt flags for kubelet. 2015-09-10 14:58:03 -07:00
Maciej Szulik 08aae94dea Fixed passing RUNTIME_CONFIG flag, since currently it fails passing eg.
RUNTIME_CONFIG="experimental/v1=true" to the server.
2015-09-09 21:55:57 +02:00
Maciej Szulik 4caa5e80b1 Updated deprecated flags (address and port). Added an option to pass runtime-config. 2015-08-26 13:28:40 +02:00
Yu-Ju Hong ac97aed837 Revert "Updated deprecated flags (address and port). Added an option to pass runtime-config." 2015-08-25 14:45:06 -07:00
Maciej Szulik 5bc93e0eb4 Updated deprecated flags (address and port). Added an option to pass runtime-config. 2015-08-24 21:43:16 +02:00
Eric Paris 7715290bbd Convert hack/ from --flag_name= to --flag-name= 2015-08-07 11:00:13 -04:00
Jordan Liggitt 5893f1c5b6 Use self-signed cert as CA for local-up-cluster.sh 2015-07-24 07:16:07 -07:00
nikhiljindal 274792d7bb Stop exposing v1beta3 by default 2015-07-01 14:38:02 -07:00
Mike Danese 1e130e0794 remove --machines from code and docs 2015-06-25 18:29:11 -07:00
nikhiljindal e6c83bca5f updating local-cluster-up to v1 2015-06-24 14:08:27 -07:00
jayunit100 ecdc025b61 Allow docker/ or other source directory for local-up 2015-06-15 19:44:35 -04:00
jayunit100 a2ea0ba467 Modularize local-up into clean functions so its self documenting 2015-06-10 13:24:59 -04:00
Paul Morie 5d7418707a Allow privileged containers in local cluster 2015-06-08 19:40:12 -04:00
Tim Hockin 3005471100 Add new apiserver flags for clusterIP (nee portal)
Leave old flags but marked as deprecated
2015-05-28 16:10:44 -07:00
jackgr 87a26e2fd2 Fixes portability issues in cleanup() that cause the pid expansion to fail when host_os=darwin by replacing ps --ppid and ps --pid with pgrep -P and ps -p, and by suppressing header line in output with ps -o pid=. 2015-05-18 12:14:21 -07:00
Victor Marmol d431e98604 Merge pull request #8234 from nak3/terminate-child-process-local-up-cluster
Ensuring that we never call kill with empty arguments in local-cluster-up
2015-05-18 08:40:41 -07:00
Kenjiro Nakayama 4c859c7e35 Ensuring that we never call kill with empty arguments in local-cluster-up 2015-05-16 07:50:31 +09:00
Yifan Gu 621dc01f42 Remove 'auth-path' in the arguments for kubelet.
Otherwise kubelet will fail to create the client because it can't
find the nonexisting auth file.
2015-05-13 16:26:22 -07:00
Jordan Liggitt b552503c07 Fix key generation in local-up-cluster.sh 2015-05-13 10:04:40 -04:00
Jordan Liggitt 7e14a80f63 ServiceAccount admission plugin 2015-05-11 17:18:06 -04:00
Jordan Liggitt db1f0dc906 JWT token generation/verification 2015-05-11 17:18:06 -04:00
Kenjiro Nakayama e39f29ca16 Terminate child process by cleanup() in local-up-cluster.sh 2015-05-11 00:07:22 +09:00
Paul Morie 5c3bf0b08f Remove unnecessary bind-mount from dockerized kubelet run 2015-05-06 15:38:17 -04:00
Paul Morie fa1d065595 Add ability to dockerize kubelet in local cluster 2015-05-06 09:36:52 -04:00
Zach Loafman 875e83a741 Revert "Revert "Security context - types, kubelet, admission"" 2015-05-05 16:02:13 -07:00
Zach Loafman f48904fd5e Revert "Security context - types, kubelet, admission" 2015-05-05 15:20:39 -07:00
Yifan Gu 102a2c4269 hack/local-up-cluster.sh: Add env to enable rkt in local cluster.
This makes testing rkt easier.
2015-05-05 14:07:10 -07:00
Paul Weil 982bf19c20 security context initial implementation - squash 2015-05-05 13:46:13 -04:00
Eric Paris 6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Jeff Lowdermilk 70a576e25a Use standalone kubectl for gke, remove special case for vagrant
also fix hack/local-up-cluster.sh kubeconfig instructions
2015-04-21 11:01:45 -07:00
Fabio Yeon e99141de0d Merge pull request #6729 from smarterclayton/chaosclient
Add a new Chaos transport that can simulate network failure and add it to the kubelet
2015-04-13 16:06:53 -07:00
Clayton Coleman ca335d7be9 Add support for chaos to Kubelet and hack/local-up-cluster.sh 2015-04-13 18:21:20 -04:00
derekwaynecarr 2484adbbfe Local-up-cluster does not have admission control 2015-04-10 15:50:33 -04:00
nikhiljindal 08d9e244f7 Removing some references to v1beta1 from test code 2015-04-08 17:28:06 -07:00
Young 802610b13a etcd should be started after the trap func set 2015-04-05 03:41:26 -04:00
jayunit100 1cc61174ea Check to prevent split brain api-servers/api-clients which can happen if etcd dies between rerun of local-up-cluster.sh 2015-04-01 22:56:34 -04:00
Eric Tune 4d3211c60b Remove ignored flag.
When --apiservers is set, --etcd_servers is ignored.
Remove it.
2015-03-10 08:45:05 -07:00
markturansky a6a6947618 Added -E to sudo command 2015-03-04 10:14:46 -05:00
Jeff Lowdermilk 61cc821506 Make local clusters work painlessly with kubeconfig 2015-02-12 16:30:41 -08:00
Eric Tune e82b97d237 Make cleanup of local cluster more robust.
Try to cleanup if there is a failure in script at any point.
Handle undefined vars in cleanup.
Wait longer for apiserver.
Exit if apiserver doesn't come up.
2015-02-12 14:29:55 -08:00
Clayton Coleman 4369e31b9d Integration tests should use 127.0.0.1 consistently 2015-02-09 14:30:31 -05:00
Clayton Coleman 449f9d915e Make hack/local-up-cluster.sh work again for etcd 2 2015-02-04 17:45:53 -05:00
Joe Beda 228659a177 Fix up for posix flags 2015-01-15 09:12:19 -08:00
Clayton Coleman 7fd887df61 Enable v1beta3 API via --runtime_config=api/v1beta3 flag
This exposes the proper v1beta3 API endpoint when the user specifies
the --runtime_config=api/v1beta3 argument to the apiserver. v1beta3
is still considered experimental and subject to change.

--runtime_config is a map of string keys and values, that can be
specified by providing

    --runtime_config=a=b,b=c,d,e

Only the key must be specified, the value can be omitted.

Enables v1beta3 in hack/local-up-cluster.sh and hack/test-cmd.sh
2015-01-08 13:01:24 -05:00
Clayton Coleman ba53d723d3 Clean up how client is passed to Kubelet in preparation for reading pods
Also fixes how Kubelet server looks up pods by name when there are multiple
sources.
2015-01-07 14:40:37 -05:00
Patryk Dunski 02862f926d Issue #3101 - fixes high CPU load in hack/local-up-cluster.sh when there is no standard input defined 2014-12-22 22:47:00 +01:00
Sergey Evstifeev 5236b22cda Run only kubernetes components with sudo 2014-12-22 20:12:02 +01:00
Joe Beda e933ac5784 Make it clearer how to run kubectl after bringing up a local cluster.
Fixes #2935.
2014-12-16 14:21:22 -08:00
Deyuan Deng bf42ea26d5 Use EXIT pseudo-signal 2014-12-08 21:28:18 -05:00
James Kyle 361c8dbae5 Support remote docker hosts on OS X.
This commit brings two main changes, notably:

Two new options that can be set as environment variables

- DOCKER_OPTS: any arbitrary set of docker options. Example: --tlsverify
- DOCKER_NATIVE: This forces the use of the native docker available.
                 This is most useful if you're on OS X and do not want
                 to use boot2docker.

Now uses 'docker cp' instead of tar piping to transfer files. This
currently must be done by copying the binaries off of the docker volume
and into a local filesystem (/tmp) before a docker cp is done. This
workaround will no longer be necessary after bug fix
https://github.com/docker/docker/pull/8509 makes it into stable.

This was necessary because the tar | tar method was creating corrupted
archives on OS X even with the < /dev/null workaround.
2014-12-01 11:47:16 -08:00
Eric Paris a99c3c7963 rename kube server binaries to kube-
apiserver becomes kube-apiserver
controller-manager -> kube-controller-manager
scheduler and proxy similarly.

Only thing I promise is that right now hack/build-go.sh and
build/release.sh exit with 0.  That's it.  Who knows if any of this
actually works....
2014-11-13 20:08:26 -05:00
Clayton Coleman 179213f61c local-up-cluster: terminate all processes on SIGINT 2014-11-04 10:44:56 -05:00
Deyuan Deng a7bdb362da Fix local cluster scripts 2014-11-02 23:30:14 -05:00
Clayton Coleman c1c11557a4 hack/local-up-cluster fails to even launch apiserver
--machines was removed but still referenced in hack/local-up-cluster.
This is not a total fix, but at least allows the apiserver to start.
2014-11-01 12:20:16 -04:00
Tim Hockin 99bca68c7d Add local-up support 2014-10-16 08:36:47 -07:00
Sam Ghods 868c6fe4b8 Increase logging levels in hack/local-up-cluster.sh 2014-10-07 00:07:05 -07:00
Sam Ghods 97dd16b913 Fix hack/local-up-cluster.sh to ensure apiserver comes up 2014-10-06 19:38:27 -07:00
Jessica Forrester 2dc30aa932 Remove unused enable_cors flag and allow localhost without a port as an origin in local-up-cluster 2014-09-12 13:01:32 -04:00
Jessica Forrester 8b4ca9c2a7 Move CORS handler wrapping into cmd/apiserver and switch config flag to a list of allowed origins 2014-09-09 17:50:18 -04:00
Jessica Forrester 8723eece49 Add option to enable a simple CORS implementation for the api server 2014-09-09 17:50:18 -04:00
Joe Beda 843ae1fbe2 Rename `output/` directory to `_output/`
go build ./... will ignore any directory starting with an underscore.
2014-08-29 14:44:55 -07:00
Deyuan Deng c63205b0a7 Add quotes for variable; change shell redirection. 2014-08-28 22:31:53 -04:00
Deyuan Deng 9fed990da6 Start scheduler locally. 2014-08-28 20:48:36 -04:00
Clayton Coleman 9006eadcfe kube-proxy can read config from the apiserver
All clients that talk to a "master" as a host:port or URL
(scheme://host:port) parameter.  Add tests.
2014-08-27 15:49:01 -04:00
Sam Ghods 242e1f9690 Modify hack/local-up-cluster.sh to use start_etcd function 2014-08-26 16:57:36 -07:00
csrwng c65470583e Remove etcd servers flag from controller manager in local-up-cluster 2014-08-07 10:02:15 -04:00
brendandburns 616398987a Merge pull request #643 from zhgwenming/build
Use 'go install' instead of 'go build' to generate all commands at the same time.
2014-07-28 11:44:05 -07:00
Albert Zhang 0375709fa3 Use 'go install' to build all commands at the same time.
'go build' compiles the packages but discards the results if multiple packages specified.
2014-07-27 22:20:13 -04:00
Clayton Coleman 7a63b53ee2 Allow API_PORT to be changed via hack/local-up 2014-07-27 15:38:12 -04:00
Brendan Burns c002cac157 Add some extra validation and checking to the local cluster setup. 2014-06-27 21:47:01 -07:00
Dan Mace b733585123 Launch proxy as part of local-up-cluster.sh 2014-06-26 15:48:26 -04:00
Justin Huff e948248546 Make local-up-cluster more user-friendly 2014-06-25 12:19:37 -07:00
Daniel Smith c27ad1390d etcd does some trickery that was avoiding the pid capturing in our tests. Run in subshell. 2014-06-16 22:05:12 -07:00
Daniel Smith f03460ce5b Rename local-up2.sh to local-up-cluster.sh 2014-06-15 22:15:37 -07:00