Changes

Jump to navigation Jump to search
m
no edit summary
<syntaxhighlight lang="bash">
#!/bin/bash
sudo apt install snap
sudo snap install kubectl --classic
</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]]

Navigation menu