Difficulty: beginner
Estimated Time: 10-15 minutes

Virtual Kubelet is an open source Kubernetes kubelet implementation that masquerades as a kubelet for the purposes of connecting Kubernetes to other APIs. More information can be found at https://github.com/virtual-kubelet/virtual-kubelet

In this scenario, you will deploy Virtual Kubelet to a Kubernetes cluster. The Virtual Kubelet will be a mock provider which implements the virtual-kubelet provider interface and stores pods in memory. This is designed to explore the API, and how Virtual Kubelet

Kompose is a tool to help users familiar with docker-compose move to Kubernetes. It takes a Docker Compose file and translates it into Kubernetes resources. More details can be found at http://kompose.io/

Deploy Virtual Kubelet

Step 1 of 3

Step 1 - Deploy Virtual Kubelet

cat mock.go

status := &v1.PodStatus{
  Phase:     v1.PodRunning,
  HostIP:    "1.2.3.4",
  PodIP:     "5.6.7.8"
}

https://github.com/virtual-kubelet/virtual-kubelet/blob/027b76651da0735fa84758d8d7928e336afaf791/providers/mock/mock.go

curl -LO http://assets.joinscrapbook.com/k8s/virtual-kubelet/virtual-kubelet && chmod +x virtual-kubelet

curl -LO http://assets.joinscrapbook.com/k8s/virtual-kubelet/mock

./virtual-kubelet --provider=mock

This tab will not be visible to users and provides only information to help authors when creating content.

Creating Katacoda Scenarios

Thanks for creating Katacoda scenarios. This tab is designed to help you as an author have quick access the information you need when creating scenarios.

Here are some useful links to get you started.

Running Katacoda Workshops

If you are planning to use Katacoda for workshops, please contact [email protected] to arrange capacity.

Debugging Scenarios

Below is the response from any background scripts run or files uploaded. This stream can aid debugging scenarios.

If you still need assistance, please contact [email protected]