Skip to content

Commit e84636b

Browse files
committed
Add 2023-04-08-kubernetes-starter.md
1 parent 10966cc commit e84636b

4 files changed

Lines changed: 51 additions & 0 deletions

File tree

‎content/post/2023/08/1e22d8ff.png‎

29.2 KB
Loading
30.2 KB
Loading

content/post/2023/2023-07-04-goodbye-gatsby-hello-hugo.md renamed to content/post/2023/2023-04-07-goodbye-gatsby-hello-hugo.md

File renamed without changes.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
+++
2+
title = "Kubernetes on Docker Desktop starter"
3+
date = 2023-04-08T18:22:26+01:00
4+
author = ""
5+
keywords = ["kubernetes", "docker"]
6+
cover = ""
7+
summary = "Setting up a basic pod via Docker Desktop on Mac"
8+
+++
9+
10+
Via https://github.com/dockersamples/example-voting-app
11+
12+
Running
13+
14+
❯ kubectl get nodes
15+
16+
Returns
17+
18+
NAME STATUS ROLES AGE VERSION
19+
docker-desktop Ready control-plane 154d v1.25.2
20+
21+
Clone the 'example-voting' app locally with
22+
23+
git clone https://github.com/dockersamples/example-voting-app.git
24+
25+
then run
26+
27+
kubectl create -f k8s-specifications
28+
kubectl delete -f k8s-specifications
29+
30+
the frontend components should be available at
31+
32+
- vote app: http://localhost:31000
33+
34+
![](08/2023-04-08-vote-app-screenshot.png)
35+
36+
- results app: http://localhost:31001
37+
38+
![](08/1e22d8ff.png)
39+
40+
## Kubernetes Dashboard
41+
42+
via https://andrewlock.net/running-kubernetes-and-the-dashboard-with-docker-desktop/
43+
44+
Running
45+
46+
kubectl get pods -n kube-system
47+
48+
add the UI
49+
50+
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml
51+

0 commit comments

Comments
 (0)