emeraldjava/Kubernetes on Docker Desktop starter

Created Sat, 08 Apr 2023 18:22:26 +0100 Modified Sun, 28 Apr 2024 08:47:19 +0000
73 Words

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

  • vote app: http://localhost:31000

  • results app: http://localhost:31001

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