Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| kubernetes_on_fedora [2018/04/08 09:04] – [Download script] rpjday | kubernetes_on_fedora [2018/04/08 10:23] (current) – [cluster/get-kube-binaries.sh] rpjday | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Getting Kubernetes ===== | ===== Getting Kubernetes ===== | ||
| + | |||
| + | ==== kubernetes.io ==== | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| ==== Main GitHub links ==== | ==== Main GitHub links ==== | ||
| Line 7: | Line 13: | ||
| * [[https:// | * [[https:// | ||
| - | ==== Download | + | ==== Installation |
| Script is [[https:// | Script is [[https:// | ||
| Line 18: | Line 24: | ||
| ==== Installation tarballs ==== | ==== Installation tarballs ==== | ||
| - | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| Line 24: | Line 29: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | ===== Installation ===== | ||
| + | |||
| + | ==== Base tarball ==== | ||
| + | |||
| + | Given '' | ||
| + | |||
| + | < | ||
| + | $ tar xzf kubernetes.tar.gz | ||
| + | </ | ||
| + | |||
| + | then script runs: | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ==== download_kube_binaries() ==== | ||
| + | |||
| + | Invokes '' | ||
| + | |||
| + | < | ||
| + | # 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 ./ | ||
| + | # Make sure to use the same download URL in get-kube-binaries.sh | ||
| + | KUBERNETES_RELEASE_URL=" | ||
| + | ./ | ||
| + | fi | ||
| + | ) | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== create_cluster() ==== | ||
| + | |||
| + | Invokes '' | ||
| + | |||
| + | < | ||
| + | function create_cluster { | ||
| + | if [[ -n " | ||
| + | exit 0 | ||
| + | fi | ||
| + | echo " | ||
| + | ( | ||
| + | cd kubernetes | ||
| + | ./ | ||
| + | echo " | ||
| + | if [[ ": | ||
| + | echo "You may want to add this directory to your PATH in \$HOME/ | ||
| + | fi | ||
| + | |||
| + | echo " | ||
| + | ) | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== cluster/ | ||
| + | |||
| + | < | ||
| + | KUBE_ROOT=$(cd $(dirname " | ||
| + | KUBE_VERSION=$(cat " | ||
| + | CLIENT_PLATFORM=" | ||
| + | CLIENT_ARCH=" | ||
| + | SERVER_TAR=" | ||
| + | CLIENT_TAR=" | ||
| + | </ | ||
| + | |||
| + | Result: | ||
| + | |||
| + | < | ||
| + | Will download kubernetes-server-linux-amd64.tar.gz from https:// | ||
| + | Will download and extract kubernetes-client-linux-amd64.tar.gz from https:// | ||
| + | </ | ||
| + | |||
| + | ==== cluster/ | ||
| ===== Misc ===== | ===== Misc ===== | ||