Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| kubernetes_install_on_fedora [2018/04/09 09:46] – [cluster/get-kube-binaries.sh] rpjday | kubernetes_install_on_fedora [2018/04/09 10:15] (current) – [cluster/get-kube-binaries.sh] rpjday | ||
|---|---|---|---|
| Line 76: | Line 76: | ||
| === kubernetes-client-linux-amd64.tar.gz === | === kubernetes-client-linux-amd64.tar.gz === | ||
| - | On the other hand, the client tarball is downloaded under '' | + | Unlike |
| < | < | ||
| Line 85: | Line 85: | ||
| </ | </ | ||
| - | What happens: | + | The client tarball consists of the single executable '' |
| + | |||
| + | < | ||
| + | $ tar tvf kubernetes-client-linux-amd64.tar.gz | ||
| + | drwxr-xr-x root/ | ||
| + | drwxr-xr-x root/ | ||
| + | drwxr-xr-x root/ | ||
| + | -rwxr-xr-x root/ | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | which will be " | ||
| + | |||
| + | Here's the '' | ||
| < | < | ||
| Line 104: | Line 117: | ||
| </ | </ | ||
| - | The client tarball consists | + | In short, from the '' |
| + | |||
| + | < | ||
| + | $ mkdir -p platforms/linux/ | ||
| + | $ tar xvf ../ | ||
| + | > --strip-components 3 \ | ||
| + | > -C platforms/linux/amd64 | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | $ tree platforms | ||
| + | platforms | ||
| + | └── linux | ||
| + | └── amd64 | ||
| + | └── | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | Finally, make sure you can find '' | ||
| + | |||
| + | < | ||
| + | PATH=$PATH:/ | ||
| + | </ | ||
| ===== create_cluster ===== | ===== create_cluster ===== | ||
| + | |||
| + | ==== Overview ==== | ||
| + | |||
| + | This function kicks off a new cluster: | ||
| + | |||
| + | < | ||
| + | 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 " | ||
| + | ) | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | You might want to add the '' | ||
| + | |||
| + | < | ||
| + | PATH=$PATH:/ | ||
| + | </ | ||
| + | ==== create_cluster() ==== | ||
| + | |||
| + | This function calls the underlying script '' | ||
| + | |||
| + | < | ||
| + | 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 " | ||
| + | ) | ||
| + | } | ||
| + | </ | ||