Merge pull request #412 from dims/patch-1

Show how to access the deployed service
pull/855/head
Phillip Wittrock 2016-07-15 08:30:40 -07:00 committed by GitHub
commit af7ceb2947
1 changed files with 6 additions and 0 deletions

View File

@ -65,10 +65,16 @@ cluster/kubectl.sh run my-nginx --image=nginx --replicas=2 --port=80
exit
## end wait
## create a service for nginx, which serves on port 80
cluster/kubectl.sh expose deployment my-nginx --port=80 --name=my-nginx
## introspect Kubernetes!
cluster/kubectl.sh get pods
cluster/kubectl.sh get services
cluster/kubectl.sh get deployments
## Test the nginx service with the IP/port from "get services" command
curl http://10.X.X.X:80/
```
### Running a user defined pod