Skip to content

Commit

Permalink
Update 3.ingress使用样例.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancger authored Sep 20, 2019
1 parent 2b9d21c commit ea49837
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions components/ingress/3.ingress使用样例.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,14 @@ deployment.apps/nginx-pod create
service/nginx-service create
ingress.extensions/nginx-ingress create
```

## 3、访问刚创建的资源

首先这里需要先找到traefik-ingress pod 分布到到了那个节点,这里我们发现是落在了10.199.1.159的节点,然后我们绑定该节点对应的公网IP,这里假设为16.21.26.139

16.21.26.139 k8s.nginx.com

```
[root@master ingress]# kubectl get pod -A -o wide|grep traefik-ingress
kube-system traefik-ingress-controller-7d454d7c68-8qpjq 1/1 Running 0 21h 10.46.2.10 10.199.1.159 <none> <none>
```

0 comments on commit ea49837

Please sign in to comment.