Changes

Jump to navigation Jump to search
m
Connecting to the CCU cluster
== Connecting to the CCU cluster ==
Now that you have kubectl running, attach it to our CCU compute cluster by executing the following steps:* Generate a new directory ".kube" in your home directory to host Kubernetes configuration files.* Download the following linked file called "config" and place it in the ".kube" directory.* Modify the file: replace <your.username> with your CCU username. If you look at the config file a bit, you see that you have now set up a context called "ccu" to run kubectl commands, which contains information about where to find the cluster. Switch to the context with <syntaxhighlight lang="bash">> kubectl config use-context ccu</syntaxhighlight> You have not set up any your user credentials yet. If you try any kubectl command such as <syntaxhighlight lang="bash">> kubectl cluster-info dump</syntaxhighlight> you will get asked for username and password. Note that your CCU account does not work here, the process to get credentials is unfortunately a bit more involved and covered in by following [[Set_up_your_Kubernetes_user_account|the next step of the tutorial. However, this shows that kubectl is now attached successfully to the cluster]].

Navigation menu