Skip to content

Kubernetes on Docker Desktop starter

Published: at 06:22 PM

Via https://github.com/dockersamples/example-voting-app

Running

❯ kubectl get nodes

Returns

NAME             STATUS   ROLES           AGE    VERSION
docker-desktop   Ready    control-plane   154d   v1.25.2

Clone the ‘example-voting’ app locally with

git clone https://github.com/dockersamples/example-voting-app.git

then run

kubectl create -f k8s-specifications
kubectl delete -f k8s-specifications

the frontend components should be available at

2023-04-08-vote-app-screenshot

1e22d8ff

Kubernetes Dashboard

via https://andrewlock.net/running-kubernetes-and-the-dashboard-with-docker-desktop/

Running

kubectl get pods -n kube-system

add the UI

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml

vcluster

https://www.docker.com/blog/creating-kubernetes-extensions-in-docker-desktop/

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml


Previous Post
Register Serenity Listener
Next Post
Moving to Hugo