This is an old revision of the document!
Getting Kubernetes
kubernetes.io
Main GitHub links
Installation script
Script is here, run one of:
$ wget -q -O - https://get.k8s.io | bash $ curl -fsSL https://get.k8s.io | bash
Installation tarballs
Installation
Base tarball
Given kubernetes.tar.gz:
$ tar xzf kubernetes.tar.gz
then script runs:
download_kube_binariescreate_cluster
download_kube_binaries()
Invokes get-kube-binaries.sh:
# Use the script from inside the Kubernetes tarball to fetch the client and
# server binaries (if not included in kubernetes.tar.gz).
function download_kube_binaries {
(
cd kubernetes
if [[ -x ./cluster/get-kube-binaries.sh ]]; then
# Make sure to use the same download URL in get-kube-binaries.sh
KUBERNETES_RELEASE_URL="${KUBERNETES_RELEASE_URL}" \
./cluster/get-kube-binaries.sh
fi
)
}
create_cluster()
function create_cluster {
if [[ -n "${KUBERNETES_SKIP_CREATE_CLUSTER-}" ]]; then
exit 0
fi
echo "Creating a kubernetes on ${KUBERNETES_PROVIDER:-gce}..."
(
cd kubernetes
./cluster/kube-up.sh
echo "Kubernetes binaries at ${PWD}/cluster/"
if [[ ":$PATH:" != *":${PWD}/cluster:"* ]]; then
echo "You may want to add this directory to your PATH in \$HOME/.profile"
fi
echo "Installation successful!"
)
}
Misc
DO081x_edX_Lab_Instructions.pdf- Download Red Hat CDK