@@ -9,7 +9,7 @@ description: >
9
9
10
10
## Overview
11
11
12
- A LoadBalancer service is the standard way to expose a service to the internet. With this method, each service gets it's own IP address.
12
+ A LoadBalancer service is the standard way to expose a service to the internet. With this method, each service gets its own IP address.
13
13
14
14
15
15
## Using ` minikube tunnel `
@@ -53,25 +53,25 @@ Status:
53
53
54
54
#### Create a kubernetes deployment
55
55
```
56
- kubectl create deployment hello-minikube1 --image=k8s.gcr.io/echoserver:1.4
56
+ kubectl create deployment hello-minikube1 --image=k8s.gcr.io/echoserver:1.4
57
57
```
58
58
#### Create a kubernetes service type LoadBalancer
59
59
```
60
- kubectl expose deployment hello-minikube1 --type=LoadBalancer --port=8080
60
+ kubectl expose deployment hello-minikube1 --type=LoadBalancer --port=8080
61
61
```
62
62
63
63
### Check external IP
64
64
```
65
65
kubectl get svc
66
66
```
67
67
<pre >
68
- $ kc get svc
69
- NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
68
+ $ kc get svc
69
+ NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
70
70
hello-minikube1 LoadBalancer 10.96.184.178 10.96.184.178 8080:30791/TCP 40s
71
71
</pre >
72
72
73
73
74
- note that without minikube tunnel, it would kubernetes would be showing external IP as "pending".
74
+ note that without minikube tunnel, kubernetes would be showing external IP as "pending".
75
75
76
76
### Try in your browser
77
77
open in your browser (make sure there is no proxy set)
@@ -80,7 +80,7 @@ http://REPLACE_WITH_EXTERNAL_IP:8080
80
80
```
81
81
82
82
83
- Each service will get it's own external ip.
83
+ Each service will get its own external ip.
84
84
85
85
----
86
86
### DNS resolution (experimental)
0 commit comments