This commit is contained in:
C菌
2021-04-15 22:08:12 +08:00
commit f506f64266
10 changed files with 264 additions and 0 deletions

26
README.md Normal file
View File

@@ -0,0 +1,26 @@
## a web helloworld docker image
```
docker pull mirrors2/helloworld
docker run -itd --rm --name helloworld -p 80:80 mirrors2/helloworld
#curl localhost?hello=world
```
Open in Browser http://localhost:30000
## run in k8s
```
kubectl apply -f deployment/helloworld.yaml
kubectl get svc -o wide
kubectl get pods -o wide
kubectl logs -f [pod name]
```