Difference between revisions of "Tutorials:Install the Kubernetes infrastructure"
(Created page with "== Install Kubernetes packages == If you want to run containers on your own system, make sure to first follow all previous guides. If you just want to use the cluster, it is...") |
m |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
#!/bin/bash | #!/bin/bash | ||
| + | sudo apt install snap | ||
| + | sudo snap install kubectl --classic | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | |||
| + | At this point you might need to reboot or at least relog to add snap to your path, if it was not already installed previously. Try out the installation with | ||
| + | |||
| + | <syntaxhighlight lang="bash"> | ||
| + | > kubectl version | ||
| + | Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"clean", BuildDate:"2019-05-16T16:23:09Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"} | ||
| + | The connection to the server localhost:8080 was refused - did you specify the right host or port? | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | TODO: The version of kubernetes running on the cluster is 1.14.2., it might be necessary that they match. We should test this at some point. | ||
| + | |||
| + | You have now installed kubectl. This is a command line tool which lets you talk to Kubernetes clusters (such as our CCU compute cluster). The last error message means that kubectl did not detect a running kubernetes cluster on your local host, which probably does not come as a surprise. We will now connect to the CCU cluster. | ||
| + | |||
| + | == Connecting to the CCU cluster == | ||
| + | |||
| + | Now that you have kubectl running, attach it to our CCU compute cluster and set up your user account by following [[Tutorials:Set_up_your_Kubernetes_user_account|the next step of the tutorial]]. | ||
| + | |||
| + | |||
| + | [[Category:Tutorials]] | ||
Latest revision as of 09:12, 18 June 2019
Install Kubernetes packages
If you want to run containers on your own system, make sure to first follow all previous guides. If you just want to use the cluster, it is sufficient to install Kubernetes kubectl command line tool as follows:
#!/bin/bash
sudo apt install snap
sudo snap install kubectl --classic
At this point you might need to reboot or at least relog to add snap to your path, if it was not already installed previously. Try out the installation with
> kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"clean", BuildDate:"2019-05-16T16:23:09Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
TODO: The version of kubernetes running on the cluster is 1.14.2., it might be necessary that they match. We should test this at some point.
You have now installed kubectl. This is a command line tool which lets you talk to Kubernetes clusters (such as our CCU compute cluster). The last error message means that kubectl did not detect a running kubernetes cluster on your local host, which probably does not come as a surprise. We will now connect to the CCU cluster.
Connecting to the CCU cluster
Now that you have kubectl running, attach it to our CCU compute cluster and set up your user account by following the next step of the tutorial.