Virtual Kubernetes

In this section we will create an additional Virtual K8s workload.


Exercise 1: Create Virtual K8s Workload for the Inventory

  1. Verify you are in the Distributed Apps context, and have selected your namespace.

  2. Ensure you have selected your assigned namespace

  3. Navigate to the Virtual K8s cluster you created earlier under “Applications” -> “Virtual K8s”. Click on the cluster name.

  4. Click the Workloads tab.

    k8s_workloads_menu

  5. Click the Add vK8s workload button.

  6. Enter the following variables:

    Variable

    Value

    Name

    brews-inv

    Select Type of Workload

    Service

  7. Under the Service section, click the Configure link.

  8. Enter the following variables in the Containers section:

    Variable

    Value

    Name

    brews-inv

    Image Name

    f5demos.azurecr.io/inv

    Select Container Registry

    Private Registry

    Private Registry

    Select the private registry you created previously

  9. Enter the following variables in the Deploy Options section:

    Variable

    Value

    Where to Deploy the workload

    Customer Virtual Sites

  10. Under Customer Virtual Sites, click the Configure link.

  11. Select the Virtual Site you created in the previous section.

  12. Click the Apply button to close the “Customer Virtual Sites” dialogue.

  13. Under Advertise Option, choose Advertise In Cluster. Click the Configure button.

    vk8s_workloads_advertise

  14. Enter the following variables:

    Variable

    Value

    Port

    8002

  15. Click the Apply button to close the “Advertise In Cluster” dialogue.

  16. Click the Apply button to close the “Service” dialogue.

  17. Click the Save and Exit button to create the Workload.