Skip to content

Commit 35a3360

Browse files
committed
Nginx Ingress的使用
Nginx Ingress的使用
1 parent c2550d0 commit 35a3360

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

proxy/(04)Nginx Ingress的使用.md renamed to proxy/(05)Nginx Ingress的使用.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,18 @@ spec:
253253
```
254254
对应的访问方式是`curl fqhnode/myetcd/v2/members`
255255

256-
最后要说的是,如果需要在k8s集群外部访问的话,只需要在外部的客户端主机上`/etc/hosts`添加一个域名`192.168.56.101 fqhnode`即可
256+
最后要说的是,如果需要在k8s集群外部访问的话,只需要在外部的客户端主机上`/etc/hosts`添加一个域名`192.168.56.101 fqhnode`即可。
257+
258+
通常可以使用对外使用多个域名,但后面用的都是同一个IP。
259+
```
260+
foo.bar.com --| |-> foo.bar.com s1:80
261+
| 178.91.123.132 |
262+
bar.foo.com --| |-> bar.foo.com s2:80
263+
```
257264
258265
## 参考
266+
[Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/#)
267+
259268
[官方ingress模板](https://github.com/kubernetes/kubernetes/tree/8d3a19229fe97b4dcee9167ca4538466f7720314/test/e2e/testing-manifests/ingress/http)
260269
261270
[Kubernetes Nginx Ingress 教程](https://mritd.me/2017/03/04/how-to-use-nginx-ingress/)

0 commit comments

Comments
 (0)