git 操作手册
#查看指定的tag信息 # git push rmtRepo v1.2 #将指定的tag推送到远程仓库,先参考下一节 进行远程仓库的映射 # git push rmtRepo --tags #推送所有tag到远程仓库 # git tag -d v1.0.1 #进入克隆后的项目目录 # git remote -v #直接克隆的话,默认将远程仓库映射到本地,别 名为origin origin h�ps://gitlab.cof-lee.com/cof/pro-1.git (fetch) origin h�ps://gitlab.cof-lee 远程仓库 # git branch -d -r origin/bran4 #删除远程分支的映射,远程仓库上还有bran4, 本地没有remotes/origin/bran4了 # git push origin --delete bran4 #删除本地上关于远程分支的映射以及在远程 上也真的删除远程分支 Username for 'h�ps://gitlab.cof-lee0 码力 | 35 页 | 1.69 MB | 1 年前3k8s操作手册 2.3
roxy会使用负 载均衡机制。 ★每创建一个service资源,就会创建一个同名的EndPoints Endpoints:记录了service的targetPort与目标pod的 ip:port映射关系,当目标pod 漂移或重启时,endpoints会自动更新 service-ip:是虚拟的ip,是由kube-proxy去建立相应的iptables/ipvs规则进行流量 的转发 ★kube-proxy的代理规则模式有: ClusterIp 只能用于集群内部,iptables,ipvs cluster-ip:port --> real pod ip:port NodePort 通过每个node ip上的静态端口 映射到内部自动创建的一个 cluster ip, NodePort默认的有效端口范围是 30000-32768 LoadBalancer k8s创建NodePort与Cluster-ip;云服务商云上的负载均衡器 上的目标service Port或node port,目标node上的ipvs规则是 直接将此node port/servce port转发到此node上的pod里) ExternalName 将服务映射到集群外部的某个资源,要求v1.7及以上版本 例: kind: Service spec: type: NodePort ports: - port: 4430 码力 | 126 页 | 4.33 MB | 1 年前3python3学习手册
★类型转换 map(type, listxx) 将字符串str型list转为int型list strlist = ["23","15","6","44"] #元素类型为str strnn = list(map(int, strlist)) #map()将strlist的元素 都转为int型,map()返回的是map类型,需要再使用 list()转为list型 list()转为list型 tuple(map(int, strlist)) #返回tuple型 int(x) 将x输出为10进制的整型,这里的x为number int(x,base=n) 将x输出为10进制的整型,这里的x必须是n进制的 string型 如 int("A", base=16)返回值为10 chr(n) 输入0~255内的整数,返回对应ascii字符,输入可为 ProcessPool(processes=32) # 在线程中执行 work_func 并返回执行结果 start_time2 = time.time() results2 = pool.map(work_func, range(32)) pool.close() pool.join() time2 = time.time() - start_time2 print("单线程顺序执行耗时:"0 码力 | 213 页 | 3.53 MB | 1 年前3DevOps Meetup
schedule your recurring maintenance. Do define a primary purpose and measure it. Do process map. Do focus on Quality first. Do start a book club. Book List Scaling Lean & Agile Development:0 码力 | 2 页 | 246.04 KB | 5 月前3The DevOps Handbook
responsible for ensuring meets or exceeds…requirements…from start to finish b. CREATE A VALUE STREAM MAP TO SEE THE WORK i. Gain concrete understanding of how work is performed ii. Focus investigation and0 码力 | 8 页 | 22.57 KB | 5 月前3A Seat at the Table: IT Leadership in the Age of Agility - Part 2
the plan for the future is to continue exploring the ideas originally brainstormed in the impact map. That makes it easy. This oversight approach is simple and powerful. Requiring only four short documents0 码力 | 7 页 | 387.61 KB | 5 月前3
共 6 条
- 1