k8s操作手册 2.3server地址 --pod-network-cidr=10.244.0.0/16 \ # pod容器网段 --service-cidr=10.7.0.0/16 \ # service网段,即cluster ip网段 --ignore-preflight-errors=Swap \ #忽略swap未关闭而导致的检查错误 --image-repository="cof- lee.com:5443/k8s" cof-lee.com:5443/k8s kind: ClusterConfigura�on kubernetesVersion: v1.19.4 networking: dnsDomain: cluster.local serviceSubnet: 10.7.0.0/16 podSubnet: 10.244.0.0/16 scheduler: {} --- apiVersion: kubelet server地址 --pod-network-cidr=10.244.0.0/16 \ # pod容器网段 --service-cidr=10.7.0.0/16 \ # service网段,即cluster ip网段 --ignore-preflight-errors=Swap \ #忽略swap未关闭而导致的检查错误 --image-repository="cof- lee.com:5443/k8s"0 码力 | 126 页 | 4.33 MB | 1 年前3
The DevOps Handbookchanges, never mutate existing ii. Remove application assumptions about DB version iii. The Canary & Cluster Immune System Release Patterns 1. Canary Strategy a. Automates the release process of promoting environments b. Successful application behavior moves to the next group; failure stops or rolls back 2. Cluster Immune Strategy a. Expands upon Canary. Links production monitoring with release process to automatically0 码力 | 8 页 | 23.08 KB | 5 月前3
python3学习手册Condi�on()方法创建一个条件对象, 条件对象能让一个进程A暂停下来,等待另一个进程B的通知,当进程B 满足某个条件后通知进程A继续运行 import multiprocessing def operator_func(cond, name): cond.acquire() print(name + ": 我可以变更了吗?") cond.notify() # 发消息给Manager,唤醒一个挂起的线程 变更方案有问题,先不变更,先改方案") cond.notify() # 发消息给Operator,唤醒一个挂起的线程 cond.wait() # 等待Operator的回复 print(name + ": 好,可以变更了") cond.notify() # 发消息给Operator,唤醒一个挂起的线程 cond.release() def main(): cond = multiprocessing.Condition() opuser = multiprocessing.Process(target=operator_func, args=(cond, "cof-lee",)) mgmt = multiprocessing.Process(target=manager_func, args=(cond, "boss",))0 码力 | 213 页 | 3.53 MB | 1 年前3
共 3 条
- 1













