mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 07:03:31 +00:00
Merge pull request #16338 from janetkuo/doc-started-docker
Auto commit by PR queue bot
This commit is contained in:
@@ -209,8 +209,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:
|
||||
|
@@ -82,8 +82,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
|
||||
|
@@ -76,8 +76,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:
|
||||
|
Reference in New Issue
Block a user