Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated cherry pick of #16338 #16472

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 11 additions & 6 deletions docs/getting-started-guides/docker-multinode/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,22 @@ now run `docker ps` you should see nginx running. You may need to wait a few mi
kubectl expose rc nginx --port=80
```

This should print:
Run the following command to obtain the IP of this service we just created. There are two IPs, the first one is internal (CLUSTER_IP), and the second one is the external load-balanced IP.

```console
NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE
nginx 10.179.240.1 <none> 80/TCP run=nginx 8d
```sh
kubectl get svc nginx
```

Alternatively, you can obtain only the first IP (CLUSTER_IP) by running:

```sh
kubectl get svc nginx --template={{.spec.clusterIP}}
```

Hit the webserver:
Hit the webserver with the first IP (CLUSTER_IP):

```sh
curl <insert-ip-from-above-here>
curl <insert-cluster-ip-here>
```

Note that you will need run this curl command on your boot2docker VM if you are running on OS X.
Expand Down
15 changes: 7 additions & 8 deletions docs/getting-started-guides/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,23 +130,22 @@ Now run `docker ps` you should see nginx running. You may need to wait a few mi
kubectl expose rc nginx --port=80
```

This should print:
Run the following command to obtain the IP of this service we just created. There are two IPs, the first one is internal (CLUSTER_IP), and the second one is the external load-balanced IP.

```console
NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE
nginx 10.0.93.211 <none> 80/TCP run=nginx 1h
```sh
kubectl get svc nginx
```

If `CLUSTER_IP` is blank run the following command to obtain it. Know issue [#10836](https://github.com/kubernetes/kubernetes/issues/10836)
Alternatively, you can obtain only the first IP (CLUSTER_IP) by running:

```sh
kubectl get svc nginx
kubectl get svc nginx --template={{.spec.clusterIP}}
```

Hit the webserver:
Hit the webserver with the first IP (CLUSTER_IP):

```sh
curl <insert-ip-from-above-here>
curl <insert-cluster-ip-here>
```

Note that you will need run this curl command on your boot2docker VM if you are running on OS X.
Expand Down
3 changes: 1 addition & 2 deletions docs/user-guide/debugging-services.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ walk-through - you can use your own `Service`'s details here.

```console
$ kubectl expose rc hostnames --port=80 --target-port=9376
NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE
hostnames 10.0.0.1 <none> 80/TCP run=hostnames 1h
service "hostnames" exposed
```

And read it back, just to be sure:
Expand Down
3 changes: 1 addition & 2 deletions docs/user-guide/horizontal-pod-autoscaling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ If load balancers are not supported (e.g.: on Vagrant), we can expose php-apache

```console
$ kubectl expose rc php-apache --port=80 --type=ClusterIP
NAME LABELS SELECTOR IP(S) PORT(S)
php-apache run=php-apache run=php-apache 80/TCP
service "php-apache" exposed

$ kubectl cluster-info | grep master
Kubernetes master is running at https://146.148.6.215
Expand Down
3 changes: 1 addition & 2 deletions docs/user-guide/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ Through integration with some cloud providers (for example Google Compute Engine

```console
$ kubectl expose rc my-nginx --port=80 --type=LoadBalancer
NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE
my-nginx 10.179.240.1 <none> 80/TCP run=nginx 8d
service "my-nginx" exposed
```

To find the public IP address assigned to your application, execute:
Expand Down