Skip to content

Commit 7dbe088

Browse files
Ajeet Singh RainaAjeet Singh Raina
authored andcommitted
Structured HelloWhale
1 parent bd7355d commit 7dbe088

File tree

1 file changed

+62
-0
lines changed
  • workshop/dockerdesktop/mac/kubernetes/java/hellowhale

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
2+
# Deploying a Sample Nginx-based HelloWhale App on Kubernetes
3+
4+
## Pre-requisite:
5+
6+
- Docker Desktop
7+
- Enable Kubernetes under Docker Desktop
8+
9+
## Getting Started
10+
11+
12+
```
13+
kubectl create deployment hellowhale --image ajeetraina/hellowhale
14+
deployment "hellowhale" created
15+
```
16+
17+
## Listing the Deployment
18+
19+
20+
```
21+
kubectl get deploy
22+
```
23+
24+
## Result:
25+
26+
```
27+
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
28+
hellowhale 1 1 1 1 10s
29+
```
30+
31+
32+
```
33+
kubectl get nodes
34+
NAME STATUS ROLES AGE VERSION
35+
docker-desktop Ready control-plane 15h v1.25.2
36+
```
37+
38+
```
39+
ajeetraina@Docker-Ajeet-Singh-Rainas-MacBook-Pro ddextension % kubectl get po
40+
NAME READY STATUS RESTARTS AGE
41+
hellowhale-66b5557c4c-k8zts 1/1 Running 2 (29m ago) 14h
42+
```
43+
44+
```
45+
ajeetraina@Docker-Ajeet-Singh-Rainas-MacBook-Pro ddextension % kubectl get po,svc,deploy
46+
NAME READY STATUS RESTARTS AGE
47+
pod/hellowhale-66b5557c4c-k8zts 1/1 Running 2 (29m ago) 14h
48+
49+
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
50+
service/hellowhalesvc LoadBalancer 10.104.95.130 localhost 80:31424/TCP 14h
51+
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 14h
52+
53+
NAME READY UP-TO-DATE AVAILABLE AGE
54+
deployment.apps/hellowhale 1/1 1 1 14h
55+
ajeetraina@Docker-Ajeet-Singh-Rainas-MacBook-Pro ddextension %
56+
```
57+
58+
Open https://localhost:80 to access Hello Whale Sample app.
59+
60+
61+
<img width="736" alt="image" src="https://user-images.githubusercontent.com/313480/210483625-289f4127-98f3-4fca-8bba-79f82f370d71.png">
62+

0 commit comments

Comments
 (0)