This repository has been archived by the owner on May 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start a development guide for min-turnup
- Loading branch information
1 parent
999c5e0
commit aef85dd
Showing
16 changed files
with
274 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# a big docker file meant for depolying min-turnup | ||
FROM ubuntu | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y curl vim jq libssl-dev openssl zip make sudo | ||
|
||
RUN curl -sSL --fail -o /usr/local/bin/jsonnet \ | ||
"https://storage.googleapis.com/kube-deploy/jsonnet/adf169b1e4a4ba170f58b47111ed88552fae42c8" | ||
RUN chmod +x /usr/local/bin/jsonnet | ||
|
||
RUN curl -sSL --fail \ | ||
"https://releases.hashicorp.com/terraform/0.6.16/terraform_0.6.16_linux_amd64.zip" \ | ||
-o /tmp/tf.zip \ | ||
&& unzip -d /usr/local/bin /tmp/tf.zip \ | ||
&& rm /tmp/tf.zip | ||
|
||
WORKDIR /root/min-turnup | ||
|
||
CMD bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Developing on min-turnup | ||
|
||
### How to deploy a cluster | ||
|
||
Here is a flow for deploying a min-turnup cluster on GCE. | ||
``` | ||
$ # checkout code and enter min-turnup directory | ||
$ cd min-turnup/ | ||
$ # build .config.json | ||
$ make config | ||
$ # or | ||
$ make menuconfig | ||
$ make .config.json | ||
$ # mine looks like | ||
$ cat .config.json | ||
{ | ||
"phase1": { | ||
"num_nodes": 4, | ||
"instance_prefix": "kuberentes", | ||
"cloud_provider": "gce", | ||
"gce": { | ||
"os_image": "ubuntu-1604-xenial-v20160420c", | ||
"instance_type": "n1-standard-2", | ||
"project": "", | ||
"region": "us-central1", | ||
"zone": "us-central1-b", | ||
"network": "" | ||
} | ||
}, | ||
"phase1b": { | ||
"extra_api_sans": "", | ||
"extra_api_dns_names": "kubernetes-master" | ||
}, | ||
"phase2": { | ||
"docker_registry": "gcr.io/google-containers", | ||
"kubernetes_version": "v1.2.4" | ||
}, | ||
"phase3": { | ||
"run_addons": true, | ||
"kube_proxy": true, | ||
"dashboard": true, | ||
"kube_dns": true, | ||
"elasticsearch": true | ||
} | ||
} | ||
$ # generate and deploy terraform | ||
$ cd phase1/gce/ | ||
$ ./gen | ||
$ terraform apply out/ | ||
``` | ||
|
||
The current dependencies are: | ||
|
||
* terraform on your path, available [here](https://www.terraform.io/downloads.html). | ||
* jsonnet which needs to be built from source, available [here](https://github.com/google/jsonnet/releases/tag/v0.8.8). | ||
* linux x86_64, other platforms are not yet tested. | ||
* jq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
terraform.tfstate | ||
account.json | ||
terraform.tfstate.backup | ||
out/gce.tf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.