diff --git a/DESIGN.md b/DESIGN.md index a5bf10824578c..b3c081a49bc03 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -123,10 +123,6 @@ Beyond just servicing REST operations, validating them and storing them in `etcd The `replicationController` type described above isn't strictly necessary for Kubernetes to be useful. It is really a service that is layered on top of the simple `pod` API. To enforce this layering, the logic for the replicationController is actually broken out into another server. This server watches `etcd` for changes to `replicationController` objects and then uses the public Kubernetes API to implement the replication algorithm. -## Release Process - -Right now "building" or "releasing" Kubernetes consists of some scripts (in `release/`) to create a `tar` of the necessary data and then uploading it to Google Cloud Storage. In the future we will generate Docker images for the bulk of the above described components: [Issue #19](https://github.com/GoogleCloudPlatform/kubernetes/issues/19). - ## GCE Cluster Configuration The scripts and data in the `cluster/` directory automates creating a set of Google Compute Engine VMs and installing all of the Kubernetes components. There is a single master node and a set of worker (called minion) nodes. @@ -139,9 +135,8 @@ The bootstrapping works like this: 1. The `kube-up.sh` script uses the GCE [`startup-script`](https://developers.google.com/compute/docs/howtos/startupscript) mechanism for both the master node and the minion nodes. * For the minion, this simply configures and installs SaltStack. The network range that this minion is assigned is baked into the startup-script for that minion (see [the networking doc](docs/networking.md) for more details). - * For the master, the release files are downloaded from GCS and unpacked. Various parts (specifically the SaltStack configuration) are installed in the right places. + * For the master, the release files are staged and then downloaded from GCS and unpacked. Various parts (specifically the SaltStack configuration) are installed in the right places. Binaries are included in these tar files. 2. SaltStack then installs the necessary servers on each node. - * All go code is currently downloaded to each machine and compiled at install time. * The custom networking bridge is configured on each minion before Docker is installed. * Configuration (like telling the `apiserver` the hostnames of the minions) is dynamically created during the saltstack install. 3. After the VMs are started, the `kube-up.sh` script will call `curl` every 2 seconds until the `apiserver` starts responding. @@ -150,7 +145,7 @@ The bootstrapping works like this: ### Cluster Security -As there is no security currently built into the `apiserver`, the salt configuration will install `nginx`. `nginx` is configured to serve HTTPS with a self signed certificate. HTTP basic auth is used from the client to `nginx`. `nginx` then forwards the request on to the `apiserver` over plain old HTTP. Because a self signed certificate is used, access to the server should be safe from eavesdropping but is subject to "man in the middle" attacks. Access via the browser will result in warnings and tools like curl will require an "--insecure" flag. +As there is no security currently built into the `apiserver`, the salt configuration will install `nginx`. `nginx` is configured to serve HTTPS with a self signed certificate. HTTP basic auth is used from the client to `nginx`. `nginx` then forwards the request on to the `apiserver` over plain old HTTP. As part of cluster spin up, ssh is used to download both the public cert for the server and a client cert pair. These are used for mutual authentication to nginx. All communication within the cluster (worker nodes to the master, for instance) occurs on the internal virtual network and should be safe from eavesdropping. diff --git a/MAINTAINERS.md b/MAINTAINERS.md index 5e736383e40d0..76e17d1af44b7 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -1,6 +1,7 @@ # Maintainers -People responsible for ports of Kubernetes to different environments. CC at least one maintainer on relevant issues and PRs. +People responsible for ports of Kubernetes to different environments. CC at +least one maintainer on relevant issues and PRs. ## OS Distributions @@ -11,8 +12,8 @@ People responsible for ports of Kubernetes to different environments. CC at leas * GCE: [Brendan Burns](https://github.com/brendandburns), [Joe Beda](https://github.com/jbeda), [Daniel Smith](https://github.com/lavalamp), [Tim Hockin](https://github.com/thockin) * Azure: [Jeff Mendoza](https://github.com/jeffmendoza) -* Vsphere: [Pieter Noordhuis](https://github.com/pietern) +* VSphere: [Pieter Noordhuis](https://github.com/pietern) * Rackspace: [Ryan Richard](https://github.com/doublerr) -* Ovirt: [Federico Simoncelli](https://github.com/simon3z) +* oVirt: [Federico Simoncelli](https://github.com/simon3z) * Local: [Derek Carr](https://github.com/derekwaynecarr) -* Vagrant: [Derek Carr](https://github.com/derekwaynecarr) \ No newline at end of file +* Vagrant: [Derek Carr](https://github.com/derekwaynecarr) diff --git a/README.md b/README.md index d27317e3149e9..07422fb54d959 100644 --- a/README.md +++ b/README.md @@ -17,17 +17,18 @@ While the concepts and architecture in Kubernetes represent years of experience * Getting Started Guides * [Google Compute Engine](docs/getting-started-guides/gce.md) * [Vagrant](docs/getting-started-guides/vagrant.md) - * [Locally](docs/getting-started-guides/locally.md) - * [CoreOS](docs/getting-started-guides/coreos.md) * Fedora (w/ [Ansible](docs/getting-started-guides/fedora/fedora_ansible_config.md) or [manual](docs/getting-started-guides/fedora/fedora_manual_config.md)) - * [vSphere](docs/getting-started-guides/vsphere.md) - * [Microsoft Azure](docs/getting-started-guides/azure.md) - * [Rackspace](docs/getting-started-guides/rackspace.md) * [Circle CI](https://circleci.com/docs/docker#google-compute-engine-and-kubernetes) * [Digital Ocean](https://github.com/bketelsen/coreos-kubernetes-digitalocean) + * [CoreOS](docs/getting-started-guides/coreos.md) * [OpenStack](https://developer.rackspace.com/blog/running-coreos-and-kubernetes/) +* The following clouds are currently broken at Kubernetes head. Please sync your client to `v0.3` (`git checkout v0.3`) to use these: + * [Locally](docs/getting-started-guides/locally.md) + * [vSphere](docs/getting-started-guides/vsphere.md) + * [Microsoft Azure](docs/getting-started-guides/azure.md) + * [Rackspace](docs/getting-started-guides/rackspace.md) * [Kubernetes 101](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/examples/walkthrough) -* [kubecfg command line tool](docs/cli.md) +* [kubecfg command line tool](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/cli.md) * [Kubernetes API Documentation](http://cdn.rawgit.com/GoogleCloudPlatform/kubernetes/31a0daae3627c91bc96e1f02a6344cd76e294791/api/kubernetes.html) * [Kubernetes Client Libraries](docs/client-libraries.md) * [Discussion and Community Support](#community-discussion-and-support) @@ -55,4 +56,3 @@ If you have questions or want to start contributing please reach out. We don't The Kubernetes team is hanging out on IRC on the [#google-containers channel on freenode.net](http://webchat.freenode.net/?channels=google-containers). We also have the [google-containers Google Groups mailing list](https://groups.google.com/forum/#!forum/google-containers) for questions and discussion as well as the [kubernetes-announce mailing list](https://groups.google.com/forum/#!forum/kubernetes-announce) for important announcements (low-traffic, no chatter). If you are a company and are looking for a more formal engagement with Google around Kubernetes and containers at Google as a whole, please fill out [this form](https://docs.google.com/a/google.com/forms/d/1_RfwC8LZU4CKe4vKq32x5xpEJI5QZ-j0ShGmZVv9cm4/viewform) and we'll be in touch. - diff --git a/Vagrantfile b/Vagrantfile index 32e7025bd861d..8dbccd56bf4a6 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -38,8 +38,8 @@ else # sorry Windows folks, I can't help you $vm_cpus = 2 end -# Give VM 1024 of RAM -$vm_mem = 1024 +# Give VM 512MB of RAM +$vm_mem = 512 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| diff --git a/build/README.md b/build/README.md index 149cbd7a3d73a..0091363f531b2 100644 --- a/build/README.md +++ b/build/README.md @@ -78,6 +78,9 @@ If the release script is set to upload to GCS, it'll do the following: ## TODOs +These are in no particular order + +* [ ] Harmonize with scripts in `hack/`. How much do we support building outside of Docker and these scripts? * [ ] Get a cluster up and running with the Docker images. Perhaps start with a local cluster and move up to a GCE cluster. * [ ] Implement (#186)[https://github.com/GoogleCloudPlatform/kubernetes/issues/186]. This will make it easier to develop Kubernetes. * [ ] Deprecate/replace most of the stuff in the hack/ diff --git a/docs/development.md b/docs/development.md index 7ab265fdd5d38..f651ff10b256f 100644 --- a/docs/development.md +++ b/docs/development.md @@ -1,5 +1,9 @@ # Development Guide +# Releases and Official Builds + +Official releases are built in Docker containers. Details are [here](build/README.md). You can do simple builds and development with just a local Docker installation. If want to build go locally outside of docker, please continue below. + ## Go development environment Kubernetes is written in [Go](http://golang.org) programming language. If you haven't set up Go development environment, please follow [this instruction](http://golang.org/doc/code.html) to install go tool and set up GOPATH. Ensure your version of Go is at least 1.3. diff --git a/docs/getting-started-guides/azure.md b/docs/getting-started-guides/azure.md index 679e86c76ab78..b46b433a02e38 100644 --- a/docs/getting-started-guides/azure.md +++ b/docs/getting-started-guides/azure.md @@ -1,3 +1,8 @@ +# WARNING +These instructions are broken at git HEAD. Please either: +* Sync back to `v0.3` with `git checkout v0.3` +* Download a [snapshot of `v0.3`](https://github.com/GoogleCloudPlatform/kubernetes/archive/v0.3.tar.gz) + ## Getting started on Microsoft Azure ### Prerequisites diff --git a/docs/getting-started-guides/binary_release.md b/docs/getting-started-guides/binary_release.md new file mode 100644 index 0000000000000..c234f805601b6 --- /dev/null +++ b/docs/getting-started-guides/binary_release.md @@ -0,0 +1,25 @@ +## Getting a Binary Release + +You can either build a release from sources or download a pre-built release. If you don't plan on developing Kubernetes itself, we suggest a pre-built release. + +### Prebuilt Binary Release + +Soon, we will have a list of numbered and nightly releases. Until then, you can download a development release/snapshot from [here](http://storage.googleapis.com/kubernetes-releases-56726/devel/kubernetes.tar.gz). + +Unpack this tar file on Linux or OS X. Most guides assume you are in the `kubernetes/` directory. + +### Building from source + +Get the Kubernetes source. If you are simply building a release from source there is no need to set up a full golang environment as all building happens in a Docker container. + +**TODO:** Change this to suggest using a numbered release once we have one with the new build scripts. + +Building a release is simple. + +```bash +git clone https://github.com/GoogleCloudPlatform/kubernetes.git +cd kubernetes +build/release.sh +``` + +For more details on the release process see the [`build/` directory](../../build) diff --git a/docs/getting-started-guides/gce.md b/docs/getting-started-guides/gce.md index a60a7e487f530..f64fb6188970d 100644 --- a/docs/getting-started-guides/gce.md +++ b/docs/getting-started-guides/gce.md @@ -7,55 +7,63 @@ The example below creates a Kubernetes cluster with 4 worker node Virtual Machin 1. You need a Google Cloud Platform account with billing enabled. Visit [http://cloud.google.com/console](http://cloud.google.com/console) for more details. 2. Make sure you can start up a GCE VM. At least make sure you can do the [Create an instance](https://developers.google.com/compute/docs/quickstart#addvm) part of the GCE Quickstart. -3. Make sure you can ssh into the VM without interactive prompts. You'll need to set up a ssh key and expose port 22 in the firewall if you choose to use a network other than the default network (`gcutil addfirewall --description "SSH allowed from anywhere" --allowed=tcp:22 default-ssh`) -4. You need to have the Google Cloud Storage API, and the Google Cloud Storage JSON API enabled. +3. Make sure you can ssh into the VM without interactive prompts. + * Your GCE SSH key must either have no passcode or you need to be using `ssh-agent`. + * Ensure the GCE firewall isn't blocking port 22 to your VMs. By default, this should work but if you have edited firewall rules or created a new non-default network, you'll need to expose it: `gcutil addfirewall --network= --description "SSH allowed from anywhere" --allowed=tcp:22 default-ssh` +4. You need to have the Google Cloud Storage API, and the Google Cloud Storage JSON API enabled. This can be done in the Google Cloud Console. ### Prerequisites for your workstation -1. You must have Go (version 1.2 or later) installed: [www.golang.org](http://www.golang.org). -2. You must have the [`gcloud` components](https://developers.google.com/cloud/sdk/) installed. +1. Be running a Linux or Mac OS X. +2. You must have the [Google Cloud SDK](https://developers.google.com/cloud/sdk/) installed. This will get you `gcloud`, `gcutil` and `gsutil`. 3. Ensure that your `gcloud` components are up-to-date by running `gcloud components update`. -4. Install godep (optional, only required when modifying package dependencies). [Instructions here](https://github.com/GoogleCloudPlatform/kubernetes#installing-godep) -5. Get the Kubernetes source: - * Kubernetes 0.3 \[[.tar.gz](https://github.com/GoogleCloudPlatform/kubernetes/archive/v0.3.tar.gz)\] \[[.zip](https://github.com/GoogleCloudPlatform/kubernetes/archive/v0.3.zip)\] +4. If you want to build your own release, you need to have [Docker +installed](https://docs.docker.com/installation/). On Mac OS X you can use +boot2docker. +5. Get or build a [binary release](binary_release.md) -### Setup +### Starting a Cluster -The setup script builds Kubernetes, then creates Google Compute Engine instances, firewall rules, and routes: - -``` -cd kubernetes -hack/dev-build-and-up.sh +```bash +cluster/kube-up.sh ``` -The script above relies on Google Storage to deploy the software to instances running in GCE. It uses the Google Storage APIs so the "Google Cloud Storage JSON API" setting must be enabled for the project in the Google Developers Console (https://cloud.google.com/console#/project). +The script above relies on Google Storage to stage the kuberntes release. It +then will start (by default) a single master VM along with 4 worker VMs. You +can tweak some of these parameters by editing `cluster/gce/config-default.sh` + +The instances must be able to connect to each other using their private IP. The +script uses the "default" network which should have a firewall rule called +"default-allow-internal" which allows traffic on any port on the private IPs. +If this rule is missing from the default network or if you change the network +being used in `cluster/config-default.sh` create a new rule with the following +field values: -The instances must also be able to connect to each other using their private IP. The script uses the "default" network which should have a firewall rule called "default-allow-internal" which allows traffic on any port on the private IPs. -If this rule is missing from the default network or if you change the network being used in `cluster/config-default.sh` create a new rule with the following field values: -* Source Ranges: 10.0.0.0/8 -* Allowed Protocols or Port: tcp:1-65535;udp:1-65535;icmp +* Source Ranges: `10.0.0.0/8` +* Allowed Protocols and Port: `tcp:1-65535;udp:1-65535;icmp` ### Running a container (simple version) Once you have your instances up and running, the `build-go.sh` script sets up your Go workspace and builds the Go components. -The `kubecfg.sh` script spins up two containers, running [Nginx](http://nginx.org/en/) and with port 80 mapped to 8080: +The `kubecfg.sh` line below spins up two containers running +[Nginx](http://nginx.org/en/) with port 80 mapped to 8080: -``` -cd kubernetes -hack/build-go.sh +```bash cluster/kubecfg.sh -p 8080:80 run dockerfile/nginx 2 myNginx ``` To stop the containers: -``` + +```bash cluster/kubecfg.sh stop myNginx ``` To delete the containers: -``` + +```bash cluster/kubecfg.sh rm myNginx ``` @@ -66,14 +74,14 @@ Assuming you've run `hack/dev-build-and-up.sh` and `hack/build-go.sh`, you can create a pod like this: -``` +```bash cd kubernetes cluster/kubecfg.sh -c api/examples/pod.json create /pods ``` Where pod.json contains something like: -``` +```json { "id": "php", "kind": "Pod", @@ -109,20 +117,20 @@ Where pod.json contains something like: You can see your cluster's pods: -``` +```bash cluster/kubecfg.sh list pods ``` and delete the pod you just created: -``` +```bash cluster/kubecfg.sh delete pods/php ``` -Look in `api/examples/` for more examples +Look in `examples/` for more examples ### Tearing down the cluster -``` +```bash cd kubernetes cluster/kube-down.sh ``` diff --git a/docs/getting-started-guides/rackspace.md b/docs/getting-started-guides/rackspace.md index 9569d9f78282e..7e5de3340de0d 100644 --- a/docs/getting-started-guides/rackspace.md +++ b/docs/getting-started-guides/rackspace.md @@ -1,3 +1,8 @@ +# WARNING +These instructions are broken at git HEAD. Please either: +* Sync back to `v0.3` with `git checkout v0.3` +* Download a [snapshot of `v0.3`](https://github.com/GoogleCloudPlatform/kubernetes/archive/v0.3.tar.gz) + # Rackspace In general, the dev-build-and-up.sh workflow for Rackspace is the similar to GCE. The specific implementation is different mainly due to network differences between the providers: diff --git a/docs/getting-started-guides/vagrant.md b/docs/getting-started-guides/vagrant.md index 49a6d0df2a632..e27c7e85b59ff 100644 --- a/docs/getting-started-guides/vagrant.md +++ b/docs/getting-started-guides/vagrant.md @@ -3,8 +3,7 @@ ### Prerequisites 1. Install latest version >= 1.6.2 of vagrant from http://www.vagrantup.com/downloads.html 2. Install latest version of Virtual Box from https://www.virtualbox.org/wiki/Downloads -3. Get the Kubernetes source: - * Kubernetes 0.3 [tar.gz](https://github.com/GoogleCloudPlatform/kubernetes/archive/v0.3.tar.gz) or [zip](https://github.com/GoogleCloudPlatform/kubernetes/archive/v0.3.zip) +3. Get or build a [binary release](binary_release.md) ### Setup @@ -15,7 +14,7 @@ cd kubernetes vagrant up ``` -Vagrant will provision each machine in the cluster with all the necessary components to build and run Kubernetes. The initial setup can take a few minutes to complete on each machine. +Vagrant will provision each machine in the cluster with all the necessary components to run Kubernetes. The initial setup can take a few minutes to complete on each machine. By default, each VM in the cluster is running Fedora, and all of the Kubernetes services are installed into systemd. @@ -102,7 +101,7 @@ cluster/kube-up.sh ``` Destroy the vagrant cluster - + ``` cluster/kube-down.sh ``` @@ -200,10 +199,10 @@ Once the docker image for nginx has been downloaded, the container will start an ``` $ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES -dbe79bf6e25b dockerfile/nginx:latest "nginx" 21 seconds ago Up 19 seconds k8s--mynginx.8c5b8a3a--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1.etcd--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1--fcfa837f -fa0e29c94501 kubernetes/pause:latest "/pause" 8 minutes ago Up 8 minutes 0.0.0.0:8080->80/tcp k8s--net.a90e7ce4--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1.etcd--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1--baf5b21b -aa2ee3ed844a google/cadvisor:latest "/usr/bin/cadvisor - 38 minutes ago Up 38 minutes k8s--cadvisor.9e90d182--cadvisor_-_agent.file--4626b3a2 -65a3a926f357 kubernetes/pause:latest "/pause" 39 minutes ago Up 39 minutes 0.0.0.0:4194->8080/tcp k8s--net.c5ba7f0e--cadvisor_-_agent.file--342fd561 +dbe79bf6e25b dockerfile/nginx:latest "nginx" 21 seconds ago Up 19 seconds k8s--mynginx.8c5b8a3a--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1.etcd--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1--fcfa837f +fa0e29c94501 kubernetes/pause:latest "/pause" 8 minutes ago Up 8 minutes 0.0.0.0:8080->80/tcp k8s--net.a90e7ce4--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1.etcd--7813c8bd_-_3ffe_-_11e4_-_9036_-_0800279696e1--baf5b21b +aa2ee3ed844a google/cadvisor:latest "/usr/bin/cadvisor - 38 minutes ago Up 38 minutes k8s--cadvisor.9e90d182--cadvisor_-_agent.file--4626b3a2 +65a3a926f357 kubernetes/pause:latest "/pause" 39 minutes ago Up 39 minutes 0.0.0.0:4194->8080/tcp k8s--net.c5ba7f0e--cadvisor_-_agent.file--342fd561 ``` Going back to listing the pods, services and replicationControllers, you now have: @@ -262,7 +261,7 @@ rm ~/.kubernetes_auth_vagrant After using kubecfg.sh make sure that the correct credentials are set: ``` -cat ~/.kubernetes_vagrant_auth +cat ~/.kubernetes_vagrant_auth { "User": "vagrant", "Password": "vagrant" diff --git a/docs/getting-started-guides/vsphere.md b/docs/getting-started-guides/vsphere.md index 811b678da986a..fedeb421beb6a 100644 --- a/docs/getting-started-guides/vsphere.md +++ b/docs/getting-started-guides/vsphere.md @@ -1,3 +1,8 @@ +# WARNING +These instructions are broken at git HEAD. Please either: +* Sync back to `v0.3` with `git checkout v0.3` +* Download a [snapshot of `v0.3`](https://github.com/GoogleCloudPlatform/kubernetes/archive/v0.3.tar.gz) + ## Getting started with vSphere ### Prerequisites diff --git a/hack/azure/dev-build-and-up.sh b/hack/azure/dev-build-and-up.sh deleted file mode 100755 index 05211731a24a0..0000000000000 --- a/hack/azure/dev-build-and-up.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# Copyright 2014 Google Inc. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This script will build a dev release and bring up a new cluster with that -# release. - -SCRIPT_DIR=$(CDPATH="" cd $(dirname $0); pwd) - -# First build a release -$SCRIPT_DIR/../../release/azure/release.sh - -# Now bring a new cluster up with that release. -$SCRIPT_DIR/../../cluster/azure/kube-up.sh diff --git a/hack/build-go.sh b/hack/build-go.sh index d3800fc4a26dd..19d8233fdf7c3 100755 --- a/hack/build-go.sh +++ b/hack/build-go.sh @@ -54,10 +54,9 @@ fi binaries=($(kube::binaries_from_targets "${targets[@]}")) echo "Building local go components" -# Note that the flags to 'go build' are duplicated in the salt build setup -# (release/build-release.sh) for our cluster deploy. If we add more command -# line options to our standard build we'll want to duplicate them there. As we -# move to distributing pre- built binaries we can eliminate this duplication. +# Note that the flags to 'go build' are duplicated in the dockerized build setup +# (build/build-image/common.sh). If we add more command line options to our +# standard build we'll want to duplicate them there. This needs to be fixed go install "${goflags[@]:+${goflags[@]}}" \ -ldflags "${version_ldflags}" \ "${binaries[@]}" diff --git a/hack/dev-build-and-push.sh b/hack/dev-build-and-push.sh index 4ae3e6c8d7c42..678c00029f2b0 100755 --- a/hack/dev-build-and-push.sh +++ b/hack/dev-build-and-push.sh @@ -16,14 +16,8 @@ # This script will build a dev release and push it to an existing cluster. -# First build the binaries -$(dirname $0)/build-go.sh -if [ "$?" != "0" ]; then - exit 1 -fi - # Then build a release -$(dirname $0)/../release/release.sh +$(dirname $0)/../build/release.sh if [ "$?" != "0" ]; then echo "Building a release failed!" exit 1 diff --git a/hack/dev-build-and-up.sh b/hack/dev-build-and-up.sh index 403008e9a5f46..f50da7831b573 100755 --- a/hack/dev-build-and-up.sh +++ b/hack/dev-build-and-up.sh @@ -19,14 +19,8 @@ set -e -# First build the binaries -$(dirname $0)/build-go.sh -if [ "$?" != "0" ]; then - exit 1 -fi - # Then build a release -$(dirname $0)/../release/release.sh +$(dirname $0)/../build/release.sh if [ "$?" != "0" ]; then echo "Building the release failed!" exit 1 diff --git a/hack/rackspace/dev-build-and-up.sh b/hack/rackspace/dev-build-and-up.sh deleted file mode 100644 index 746f70b7e4e7e..0000000000000 --- a/hack/rackspace/dev-build-and-up.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -# Copyright 2014 Google Inc. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This script will build a dev release and bring up a new cluster with that -# release. - -# First build the binaries -$(dirname $0)/../build-go.sh -if [ "$?" != "0" ]; then - exit 1 -fi - -# Then build a release -$(dirname $0)/../../release/rackspace/release.sh -if [ "$?" != "0" ]; then - echo "Building the release failed!" - exit 1 -fi - -# Now bring a new cluster up with that release. -$(dirname $0)/../../cluster/rackspace/kube-up.sh diff --git a/icebox/README.md b/icebox/README.md new file mode 100644 index 0000000000000..2d4237256167e --- /dev/null +++ b/icebox/README.md @@ -0,0 +1,3 @@ +This is a temporary directory to store code that is broken and waiting to be fixed. + +As we move to binary deploys, there have been major disruptions to the way we build and deploy. Initiually this was fixed up for GCE and Vagrant. The rest of the clouds will need to be updated for this new model. diff --git a/cluster/azure/config-default.sh b/icebox/cluster/azure/config-default.sh similarity index 100% rename from cluster/azure/config-default.sh rename to icebox/cluster/azure/config-default.sh diff --git a/cluster/azure/templates/download-release.sh b/icebox/cluster/azure/templates/download-release.sh similarity index 100% rename from cluster/azure/templates/download-release.sh rename to icebox/cluster/azure/templates/download-release.sh diff --git a/cluster/azure/templates/salt-master.sh b/icebox/cluster/azure/templates/salt-master.sh similarity index 100% rename from cluster/azure/templates/salt-master.sh rename to icebox/cluster/azure/templates/salt-master.sh diff --git a/cluster/azure/templates/salt-minion.sh b/icebox/cluster/azure/templates/salt-minion.sh similarity index 100% rename from cluster/azure/templates/salt-minion.sh rename to icebox/cluster/azure/templates/salt-minion.sh diff --git a/cluster/azure/util.sh b/icebox/cluster/azure/util.sh similarity index 100% rename from cluster/azure/util.sh rename to icebox/cluster/azure/util.sh diff --git a/cluster/local/config-default.sh b/icebox/cluster/local/config-default.sh similarity index 100% rename from cluster/local/config-default.sh rename to icebox/cluster/local/config-default.sh diff --git a/cluster/local/util.sh b/icebox/cluster/local/util.sh similarity index 100% rename from cluster/local/util.sh rename to icebox/cluster/local/util.sh diff --git a/cluster/rackspace/cloud-config/master-cloud-config.yaml b/icebox/cluster/rackspace/cloud-config/master-cloud-config.yaml similarity index 100% rename from cluster/rackspace/cloud-config/master-cloud-config.yaml rename to icebox/cluster/rackspace/cloud-config/master-cloud-config.yaml diff --git a/cluster/rackspace/cloud-config/minion-cloud-config.yaml b/icebox/cluster/rackspace/cloud-config/minion-cloud-config.yaml similarity index 100% rename from cluster/rackspace/cloud-config/minion-cloud-config.yaml rename to icebox/cluster/rackspace/cloud-config/minion-cloud-config.yaml diff --git a/cluster/rackspace/config-default.sh b/icebox/cluster/rackspace/config-default.sh similarity index 97% rename from cluster/rackspace/config-default.sh rename to icebox/cluster/rackspace/config-default.sh index faaf37015b118..4febe5771022d 100644 --- a/cluster/rackspace/config-default.sh +++ b/icebox/cluster/rackspace/config-default.sh @@ -16,7 +16,7 @@ # Sane defaults for dev environments. The following variables can be easily overriden # by setting each as a ENV variable ahead of time: -# KUBE_IMAGE, KUBE_MASTER_FLAVOR, KUBE_MINION_FLAVOR, NUM_MINIONS, NOVA_NETWORK and SSH_KEY_NAME +# KUBE_IMAGE, KUBE_MASTER_FLAVOR, KUBE_MINION_FLAVOR, NUM_MINIONS, NOVA_NETWORK and SSH_KEY_NAME # Shared KUBE_IMAGE="${KUBE_IMAGE-255df5fb-e3d4-45a3-9a07-c976debf7c14}" # Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM) diff --git a/cluster/rackspace/kube-up.sh b/icebox/cluster/rackspace/kube-up.sh similarity index 100% rename from cluster/rackspace/kube-up.sh rename to icebox/cluster/rackspace/kube-up.sh diff --git a/cluster/rackspace/templates/download-release.sh b/icebox/cluster/rackspace/templates/download-release.sh similarity index 100% rename from cluster/rackspace/templates/download-release.sh rename to icebox/cluster/rackspace/templates/download-release.sh diff --git a/cluster/rackspace/templates/salt-minion.sh b/icebox/cluster/rackspace/templates/salt-minion.sh similarity index 100% rename from cluster/rackspace/templates/salt-minion.sh rename to icebox/cluster/rackspace/templates/salt-minion.sh diff --git a/cluster/rackspace/util.sh b/icebox/cluster/rackspace/util.sh similarity index 100% rename from cluster/rackspace/util.sh rename to icebox/cluster/rackspace/util.sh diff --git a/cluster/vsphere/config-common.sh b/icebox/cluster/vsphere/config-common.sh similarity index 100% rename from cluster/vsphere/config-common.sh rename to icebox/cluster/vsphere/config-common.sh diff --git a/cluster/vsphere/config-default.sh b/icebox/cluster/vsphere/config-default.sh similarity index 100% rename from cluster/vsphere/config-default.sh rename to icebox/cluster/vsphere/config-default.sh diff --git a/cluster/vsphere/config-test.sh b/icebox/cluster/vsphere/config-test.sh similarity index 100% rename from cluster/vsphere/config-test.sh rename to icebox/cluster/vsphere/config-test.sh diff --git a/cluster/vsphere/templates/hostname.sh b/icebox/cluster/vsphere/templates/hostname.sh similarity index 100% rename from cluster/vsphere/templates/hostname.sh rename to icebox/cluster/vsphere/templates/hostname.sh diff --git a/cluster/vsphere/templates/install-release.sh b/icebox/cluster/vsphere/templates/install-release.sh similarity index 100% rename from cluster/vsphere/templates/install-release.sh rename to icebox/cluster/vsphere/templates/install-release.sh diff --git a/cluster/vsphere/templates/salt-master.sh b/icebox/cluster/vsphere/templates/salt-master.sh similarity index 100% rename from cluster/vsphere/templates/salt-master.sh rename to icebox/cluster/vsphere/templates/salt-master.sh diff --git a/cluster/vsphere/templates/salt-minion.sh b/icebox/cluster/vsphere/templates/salt-minion.sh similarity index 100% rename from cluster/vsphere/templates/salt-minion.sh rename to icebox/cluster/vsphere/templates/salt-minion.sh diff --git a/cluster/vsphere/util.sh b/icebox/cluster/vsphere/util.sh similarity index 100% rename from cluster/vsphere/util.sh rename to icebox/cluster/vsphere/util.sh diff --git a/release/azure/config.sh b/icebox/release/azure/config.sh similarity index 100% rename from release/azure/config.sh rename to icebox/release/azure/config.sh diff --git a/release/azure/release.sh b/icebox/release/azure/release.sh similarity index 100% rename from release/azure/release.sh rename to icebox/release/azure/release.sh diff --git a/release/build-release.sh b/icebox/release/build-release.sh similarity index 100% rename from release/build-release.sh rename to icebox/release/build-release.sh diff --git a/release/config.sh b/icebox/release/config.sh similarity index 100% rename from release/config.sh rename to icebox/release/config.sh diff --git a/release/make-public-gcs-acl.py b/icebox/release/make-public-gcs-acl.py similarity index 100% rename from release/make-public-gcs-acl.py rename to icebox/release/make-public-gcs-acl.py diff --git a/release/master-release-install.sh b/icebox/release/master-release-install.sh similarity index 99% rename from release/master-release-install.sh rename to icebox/release/master-release-install.sh index 01a0d8812b55e..ff6b828fefd0d 100755 --- a/release/master-release-install.sh +++ b/icebox/release/master-release-install.sh @@ -42,4 +42,3 @@ cp -R --preserve=mode $RELEASE_BASE/src/go/* /srv/salt/scheduler/go mkdir -p /srv/salt/kubelet/go cp -R --preserve=mode $RELEASE_BASE/src/go/* /srv/salt/kubelet/go - diff --git a/release/rackspace/config.sh b/icebox/release/rackspace/config.sh similarity index 100% rename from release/rackspace/config.sh rename to icebox/release/rackspace/config.sh diff --git a/release/rackspace/release.sh b/icebox/release/rackspace/release.sh similarity index 100% rename from release/rackspace/release.sh rename to icebox/release/rackspace/release.sh diff --git a/release/release.sh b/icebox/release/release.sh similarity index 100% rename from release/release.sh rename to icebox/release/release.sh