1.将用于水平扩展到多个集群
2.负载均衡
3.健康检查和自愈能力
4.实现任务的统一调度,pod 运行在哪个机器上去运行
import socket
import struct
import time
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
#s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.connect(("192.168.137.2",8080))
s.send('88888888888822222222222222222222222222222222222222222222222222222222222222')
# s.settimeout(30)
s.settimeout(0.00000000000000000000000001)
print s.recv(9999)
C:\Python27\python.exe C:/Users/TLCB/PycharmProjects/untitled2/socket/t1.py
Traceback (most recent call last):
File "C:/Users/TLCB/PycharmProjects/untitled2/socket/t1.py", line 12, in <module>
print s.recv(9999)