mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Fix docs somewhat, add monitoring hooks.
This commit is contained in:
parent
8a2954900e
commit
48498cf9bb
@ -105,6 +105,20 @@ function ensure-temp-dir {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setup-monitoring {
|
||||||
|
if [ ${MONITORING-} ]; then
|
||||||
|
# TODO: Implement this.
|
||||||
|
echo "Monitoring not currently supported on AWS"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function teardown-monitoring {
|
||||||
|
if [ ${MONITORING-} ]; then
|
||||||
|
# TODO: Implement this.
|
||||||
|
echo "Monitoring not currently supported on AWS"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Verify and find the various tar files that we are going to use on the server.
|
# Verify and find the various tar files that we are going to use on the server.
|
||||||
#
|
#
|
||||||
# Vars set:
|
# Vars set:
|
||||||
@ -143,12 +157,12 @@ function upload-server-tars() {
|
|||||||
SERVER_BINARY_TAR_URL=
|
SERVER_BINARY_TAR_URL=
|
||||||
SALT_TAR_URL=
|
SALT_TAR_URL=
|
||||||
|
|
||||||
local project_hash
|
local project_hash=
|
||||||
local key = $(aws configure get aws_access_key_id)
|
local key=$(aws configure get aws_access_key_id)
|
||||||
if which md5 > /dev/null 2>&1; then
|
if which md5 > /dev/null 2>&1; then
|
||||||
project_hash = $(md5 -q -s "${USER} ${key}")
|
project_hash=$(md5 -q -s "${USER} ${key}")
|
||||||
else
|
else
|
||||||
project_hash = $(echo -n "${USER} ${key}" | md5sum)
|
project_hash=$(echo -n "${USER} ${key}" | md5sum)
|
||||||
fi
|
fi
|
||||||
local -r staging_bucket="kubernetes-staging-${project_hash}"
|
local -r staging_bucket="kubernetes-staging-${project_hash}"
|
||||||
|
|
||||||
|
@ -5,11 +5,18 @@
|
|||||||
1. You need an AWS account. Visit [http://aws.amazon.com](http://aws.amazon.com) to get started
|
1. You need an AWS account. Visit [http://aws.amazon.com](http://aws.amazon.com) to get started
|
||||||
2. Install and configure [AWS Command Line Interface](http://aws.amazon.com/cli)
|
2. Install and configure [AWS Command Line Interface](http://aws.amazon.com/cli)
|
||||||
|
|
||||||
### Run from a binary release
|
### Cluster turnup
|
||||||
|
|
||||||
1. Download the [binary release](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/binary_release.md)
|
#### Option 1: Install a binary release
|
||||||
|
|
||||||
|
1. Download the [binary release](getting-started-guides/binary_release.md)
|
||||||
2. Unpack the archive and ```cd kubernetes```
|
2. Unpack the archive and ```cd kubernetes```
|
||||||
3. Turn up the cluster:
|
|
||||||
|
#### Option 2: Install from source
|
||||||
|
1. ```git clone https://github.com/GoogleCloudPlatform/kubernetes.git```
|
||||||
|
2. ```cd kubernetes; make release```
|
||||||
|
|
||||||
|
#### Turn up the cluster
|
||||||
```
|
```
|
||||||
export KUBERNETES_PROVIDER=aws
|
export KUBERNETES_PROVIDER=aws
|
||||||
cluster/kube-up.sh
|
cluster/kube-up.sh
|
||||||
@ -28,4 +35,4 @@ cluster/kube-down.sh
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Cloud Formation
|
### Cloud Formation
|
||||||
There is a contributed example from [CoreOS](http://www.coreos.com) using Cloud Formation.
|
There is a contributed [example](aws-coreos.md) from [CoreOS](http://www.coreos.com) using Cloud Formation.
|
||||||
|
Loading…
Reference in New Issue
Block a user