Skip to content

Commit d8e3224

Browse files
committed
Adding initial documentation
1 parent 024a58e commit d8e3224

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
11
# k8s-workshop
22
Workshop repository to play with Docker and Kubernetes
3+
4+
5+
```sh
6+
docker run -dit --name web -p 8080:80 -v /home/ccruz/website/:/usr/local/apache2/htdocs/ httpd:2.4-alpine
7+
8+
9+
docker build -t web:1.0 .
10+
11+
docker run -dit --name web -p 8080:80 web:1.0
12+
13+
14+
docker pull twogghub/k8s-workshop
15+
16+
kubectl run webk8s --image=twogghub/k8s-workshop:1.0
17+
18+
kubectl expose deployment webk8s --port=8080 --external-ip=$(minikube ip) --type=LoadBalancer
19+
20+
```
21+

website/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<title>DockerWeb</title>
4+
<title>Web</title>
55
</head>
66
<body>
7-
<h1>Simpler than this imposible!!</h1>
7+
<h1>Hello!</h1>
88
</body>
99
</html>

0 commit comments

Comments
 (0)