Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Common commands of kubectl Command Line tools for K8s

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

`View the access log in the master1 operation (Note: if other node cannot be accessed and check the proxy component) `[root@master1 ~] # kubectl get pods # there will be three replica sets NAME READY STATUS RESTARTS AGEnginx-dbddb74b8-7hdfj 1 5d5hnginx-deployment-5477945587 1 Running 0 5d5hnginx-deployment-5477945587-2dljt 1 Running 0 10hnginx-deployment-5477945587-tt8vx 1ax 1 Running 0 10hnginx-deployment-5477945587-wsb69 1 bind 1 Running 0 10h` look back at the access log at this time: `[root@master1 ~] # kubectl logs nginx-deployment-5477945587- 2dljt172.17.40.1-[12/Feb/2020:11:44:46 + 0000] "GET / HTTP/1.1" 200612 "-" Mozilla/5.0 (Windows NT 10.0) Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.131 Safari/537.36 ""-"172.17.40.1-- [12/Feb/2020:11:44:46 + 0000]" GET / favicon.ico HTTP/1.1 "404 555" http://192.168.18.145:48330/"Mozilla/5.0 (Windows NT 10.0; Win64 X64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.131 Safari/537.36 ""-"[root@master1 ~] # kubectl logs nginx-deployment-5477945587-tt8vx [root@master1 ~] # kubectl logs nginx-deployment-5477945587-wsb69172.17.32.1-[12/Feb/2020:11:47:07 + 0000]" GET / HTTP/1.1 "200612"-"" Mozilla/5.0 (Windows NT 10.0; Win64 X64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.131 Safari/537.36 "-" 172.17.32.1-- [12/Feb/2020:11:47:07 + 0000] "GET / favicon.ico HTTP/1.1" 404 555 "http://192.168.18.148:48330/"" Mozilla/5.0 (Windows NT 10.0; Win64 X64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.131 Safari/537.36 ""-"# at this time, nginx-deployment-5477945587-wsb69 and nginx-deployment-5477945587- 2dljt have respectively visited the home page of nginx, indicating that the service has been successfully released, and the other party is polling to access multiple Pod resources 3. Update nginx to version 1.14

To view the nginx version, F12 opens the developer option-- "F5 Refresh access"-- "find network---" and click "name---" to find the headers header information.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report