k8s操作手册 2.3#检测tcp端口是否可连接 port: 80 ini�alDelaySeconds: 10 #pod刚拉起时延迟10秒再检测,默认0秒 �meoutSeconds: 2 #检测超时2秒,默认1秒 periodSeconds: 3 tcpSocket: #检测tcp端口是否可连接 port: 80 ini�alDelaySeconds: 10 #pod刚拉起时延迟10秒再检测,默认0秒 readinessProbe: #pod就绪性探测,失败后不会重启pod,只是服务不可访 问 tcpSocket: tcpSocket: #检测tcp端口是否可连接 port: 80 ini�alDelaySeconds: 10 #pod刚拉起时延迟10秒再检测,默认0秒 readinessProbe: #pod就绪性探测,失败后不会重启pod,只是服务不可访 问 tcpSocket:0 码力 | 126 页 | 4.33 MB | 1 年前3
python3学习手册scheduler(time.time, time.sleep) # 创建一个调度器 sched1.enter(3, 1, schedule_func, (index,)) # 延迟3 秒,优先级1,回调函数,参数 sched1.run() # 运行调度器,默认是blocking=True,阻塞模式, 等时间到了才运行,运行回调函数后才继续 print(f'index:0 码力 | 213 页 | 3.53 MB | 1 年前3
共 2 条
- 1













