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:    "",
  PodIP:     ""


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