Using EKC
Getting started
- Register and log in to ICE Connect.
- Go to the ICE Connect Rancher web interface and choose Log In with Keycloak.
Launching apps
Click on the icekube cluster (left red circle), and open your project, here johank.
Click on Apps -> Launch, then follow the instructions for each app. When you launch an app you are required to create a Namespace.
Projects and namespaces
One project can contain many namespaces which are groups of apps, containers, volumes, and other resources.
When you create a namespace, you need to use your project name as a prefix.
You also have to set the namespace quotas. The sum of all namespace quotas cannot exceed the project quota.
Namespace names,
- Must begin with the username, e.g. johank-mynamespace
- Can only contain alphanumerics and dashes -
- Cannot be empty
Managing quotas
Your project is limited in computational resources and storage capacity, managed by Kubernetes Resource Quotas. You can view limits when clicking Add Namespace in Rancher.
If you launch multiple apps and use different namespaces for some, you may have to adjust their Resource Quotas.
CPU resources are measured in milli-CPUs, where for example 500m
is one-half CPU core of reserved performance.
Some apps and charts do not define requests and limits for resource usage. In this case, you can set it using Container Default Resource Limit.
Credentials file
The ~/.kube/config
YAML file tells local applications such as kubectl
and Visual Studio Code how to access the Kubernetes cluster icekube
.
- In Rancher, click on Cluster Name
icekube
- Click on the Kubeconfig File button.
- Copy and paste the contents to
~/.kube/config
- Set permissions
chmod 600 ~/.kube/config
Connecting with SSH
You can connect to any Kubernetes app/container that has an SSH server through a randomized NodePort. After starting an app, for example, Jupyter Node, find the NodePort to connect to.
Connect from a terminal with
Visual Studio Code
Kubernetes Tools
Visual Studio Code can be used for many of the same functions as Rancher
- Install Visual Studio Code Kubernetes Tools extension.
- You should see
icekube
listed among clusters. If not, Set Kubeconfig to~/.kube/config
. - Open Command Palette (Ctrl+Shift+P) and choose
Kubernetes: Use namespace
.
This will give you among other things
- Log, debug, delete containers, and view the YAML specification.
- Read Secrets and Config Maps.
- Native Terminal for container shell access.
- Attach Visual Studio Code to a Kubernetes container.
Remote-SSH
Connect to containers over SSH NodePort using the Visual Studio Code extension Remote - SSH, to develop and compile code directly inside a container.
Open the Command Palette (Ctrl+Shift+P) and choose Remote SSH: Connect to Host...
then e.g. nodeport.icedc.se:30423
Created: 2022-12-22