Added explanation about firewall and external IP to nginx example.

This commit is contained in:
Kathrin Probst 2015-06-08 14:46:49 -07:00
parent cbd0269fd0
commit 0c3d67e7a7
1 changed files with 7 additions and 1 deletions

View File

@ -37,7 +37,13 @@ to do this run:
kubectl expose rc my-nginx --port=80 --type=LoadBalancer
```
This should print the service that has been created, and map an external IP address to the service.
This should print the service that has been created, and map an external IP address to the service. Where to find this external IP address will depend on the environment you run in. For instance, for Google Compute Engine the external IP address is listed as part of the newly created service and can be retrieved by running
```bash
kubectl get services
```
In order to access your nginx landing page, you also have to make sure that traffic from external IPs is allowed. Do this by opening a firewall to allow traffic on port 80.
### Next: Configuration files
Most people will eventually want to use declarative configuration files for creating/modifying their applications. A [simplified introduction](simple-yaml.md)