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:22] – [Base tarball] rpjday | kubernetes_on_fedora [2018/04/08 10:23] (current) – [cluster/get-kube-binaries.sh] rpjday | ||
|---|---|---|---|
| Line 44: | Line 44: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| + | |||
| + | ==== 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 ===== | ||