From ea49837b0b1bdccbef56cca3bb7dfa2341c221bc Mon Sep 17 00:00:00 2001 From: Lancger <1151980610@qq.com> Date: Fri, 20 Sep 2019 17:15:19 +0800 Subject: [PATCH] =?UTF-8?q?Update=203.ingress=E4=BD=BF=E7=94=A8=E6=A0=B7?= =?UTF-8?q?=E4=BE=8B.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...44\275\277\347\224\250\346\240\267\344\276\213.md" | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git "a/components/ingress/3.ingress\344\275\277\347\224\250\346\240\267\344\276\213.md" "b/components/ingress/3.ingress\344\275\277\347\224\250\346\240\267\344\276\213.md" index 3695a1b..28374b0 100644 --- "a/components/ingress/3.ingress\344\275\277\347\224\250\346\240\267\344\276\213.md" +++ "b/components/ingress/3.ingress\344\275\277\347\224\250\346\240\267\344\276\213.md" @@ -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 +```