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/

Don’t stop now! The next scenario will only take about 10 minutes to complete.

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