Intel Kubernetes Service

The Intel® Kubernetes Service provides developers with Kubernetes clusters for application development, AI/ML training, and more.

Note

Currently Intel Kubernetes Service is only available to premium and enterprise account users.

Create a Kubernetes Cluster

  1. Navigate to the Intel Developer Cloud Console.

  2. In the menu at left, click the Kubernetes icon.

    Kubernetes icon

    Kubernetes icon

  3. Click Create Cluster.

    Kubernetes Dashboard

    Kubernetes Dashboard

  4. Complete the required fields under Cluster details and configuration.

    1. In Cluster name, enter a name.

    2. In Select cluster K8S version, select a version.

    Cluster details and configuration

    Cluster details and configuration

  5. Click Launch. After launching, the State column shows Updating.

    Cluster State - Updating

    Cluster State - Updating

  6. Under Cluster Name column, click on your cluster.

    Note

    Now your Cluster name with Actions menu appears below.

    Cluster Name - Submenu

    Cluster Name - Submenu

Add Node Group to Cluster

  1. From the Actions pulldown menu, select Add node group.

  2. Enter your data in the Node group configuration menu.

    1. In Node type, choose between Virtual Machine Bare Metal for your node. Note the cost per hour. See also Compare Instance Types below.

    2. In Node group name, enter a name.

    3. In Node quantity, choose a quantity from 1 to 10. Select the number of worker nodes you need in your cluster.

      Add node group to cluster

      Add node group to cluster

      Tip

      You can scale the number of worker nodes up or down.

  3. Under Public Keys, select Upload Key or Refresh Keys.

  4. Select Upload Key, name your key and copy your local SSH public key in the fields shown.

  5. Select Upload Key.

  6. Now, in Node group configuration, check the box next to the SSH key you added.

Compare Instance Types

At any time during Node group configuration, you may choose Compare instance types. This pop-out screen helps you compare and select your preferred processor.

Compare instance types

Compare instance types

Launch Kubernetes Cluster

When you create a cluster, it includes:

  • K8S Control-plane

  • ETCD Database

  • Scheduler

  • API Server

  1. Select Launch.

  2. Now that your Node group is added, it shows Updating in submenu.

    Node Groups - Updating

    Node Groups - Updating

  3. When adding your Node Group is successful, each Node name appears and its State shows Active.

    Node Groups - Node State Active

    Node Groups - Node State Active

Connect to cluster

  1. Set the KUBECONFIG Environment Variable:

    export KUBECONFIG=/path/to/your/kubeconfig
    
  2. Verify Configuration: Ensure that the current context points to the correct cluster.

    kubectl config view
    

Basic CRUD operations

  1. Create a pod.

    kubectl apply -f pod-definition.yaml
    
  2. Create a YAML` or JSON file with your pod specificationsr. See example below.

    apiVersion: v1
    kind: Pod
    metadata:
    name: mypod
    spec:
    containers:
    - name: mycontainer
       image: nginx
    
  3. Read information. Replace “mypod” with the name of your pod.

    kubectl get pods kubectl describe pod mypod
    
  4. Update a Pod:

    kubectl edit pod mypod
    

Note

This opens the pod configuration in your default editor. Make changes and save the file.

  1. Delete a Pod. Replace mypod with the name of your pod.

    kubectl delete pod mypod
    

Delete Cluster Group or Node

Delete Node Group or Node

Delete Node Group or Node

Delete Node Group

  1. In the Cluster name submenu select the Node group you wish to delete.

  2. Click Delete button.

Delete Node

  1. Below the Node name table, note Add node and Delete node

  2. Click Delete node button, as desired.

  3. Select Continue.

Upgrade Kubernetes Cluster

  1. In the Cluster name, Details, find the Upgrade link.

  2. Select Upgrade.

  3. In the Upgrade K8S Version, pull-down menu, select your desired version.

    Upgrade K8S version

    Upgrade K8S version

  4. Click the Upgrade button.

  5. During the upgrade, the Details menu State may show Upgrading controlplane.

    Note

    If the current version is penultimate to the latest version, only the latest version appears. When the version upgrade is successful, Cluster reconciled appears.

Apply Load Balancer

  1. Navigate to the Cluster name submenu.

  2. In the Actions menu, select Add load balancer.

  3. In the Add load balancer, complete these fields.

    1. Select the port number of your service from the dropdown menu.

    2. For Type, select public or private.

    3. Click on Launch.

    Load Balancer

    Load Balancer

  4. In the Cluster name submenu, view the Load Balancer menu.

  5. Your Load Balancer appears with Name and State shows Active .

K8S will automatically perform load balancing for your service.

Kubeconfig Admin Access

Ideally, you would export the :file: to your secret management system and continue.

  1. In the Kubernetes Console, locate options below Kube Config.

  2. Copy or Download the kubeconfig file and export it to your development environment.

Caution

Exercise caution while downloading, accessing, or sharing this file.