Lab 2 - Scale vK8s Deployment

F5 Distributed Cloud App Stack is a SaaS-based offering to deploy, secure, and operate a fleet of applications across the distributed infrastructure in multi-cloud or edge. It can scale to a large number of clusters and locations with centralized orchestration, observability, and operations to reduce the complexity of managing a fleet of distributed clusters.

In this lab, we will learn the following:

  • Review the Virtual K8s Cluster Dashboard

  • Modify Virtual K8s Deployment to Scale Replicas

Core concepts

Pods in vK8s

The core concept in application management on Kubernetes is a Pod. Pod is the basic and smallest execution unit that can be created, deployed, and managed in Kubernetes. A Pod consumes compute, memory, and storage resources and needs a network identity. A Pod contains a single or multiple containers but it is a single instance of an application in Kubernetes.

Service

A service with one or more containers with configurable number of replicas that can be deployed on a selection of Regional Edge sites or customer sites and advertised within the cluster where is it deployed, on the Internet, or on other sites using TCP or HTTP or HTTPS load balancer.

For more core concepts, please review F5 Distributed Cloud documentation

Exercise 1 - Access Virtual K8s Cluster Dashboard and Edit Deployment

  1. Select Applications -> Virtual K8s -> <your cluster name> -> Dashboard. You should see one pod per site.

    ../../_images/13validate_vK8s_dashboard-updated1.png
  2. Select Deployments, then select the menu under Actions for your deployment, then Edit

    ../../_images/14edit_deployment-updated1.png
  3. Ensure Edit mode is enabled, expand the spec section, and modify replicas from 1 to 3 and select Save

    ../../_images/15modify_deployment_spec-updated1.png

Exercise 2 - Review Scaled vK8s Deployment

  1. It may take a few moments, but on the vK8s cluster dashboard, number of Running Pods should increase to 9. Upon refreshing the list, you may notice the number of Sites with Error gradually decrease as Running Pods increases.

    ../../_images/16review_scaled_deployment-updated1.png
  2. The F5 XC platform can also provide more information on the specific pods directly from the web console. Click on Pods in the top menu.

    ../../_images/17review_scaled_pods1.png
  3. In this view, you can see the specific pod information such as resource consumption, site deployment and node location, message status. (you may need to click the “Refresh” button)

    ../../_images/18review_pods_information1.png

This concludes Module 2: Deploy and Scale Virtual K8s Workload. Thank you for taking the time to complete these exercises! Please continue on to module 3 for a look at how to publish your application for users to consume.