Common commands of kubectl Command Line tools for K8s
`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.