 k8s操作手册 2.3k8s操作手册 前言: 1.蓝色字体表示命令行命令,正式执行时不要复制前面的#号,#号只是提示应 该使用root权限操作 2.绿色字体表示注释,有时注释太多就不用绿色表示了 3.注意:本文档的所有操作请先在测环境进行实践,请不要直接在真实的服务 器中操作! 版权声明: 本文档以开源的形式发布,所有条款如下: (1)无担保:作者不保证文档内容的准确无误,亦不承担由于使用此文档所导致的任何后果 更新日期:2023-12-29 ★第0章、K8S集群搭建准备工作 相关单词原义: docker 码头工人 pod 集装箱 kubernetes 舵手,领航员 helm 舵轮,驾驶盘 chart 图表,海图 ①k8s对系统要求 linux内核在3.10及以上 ②规划主机名及ip k8s的服务器使用固定ip地址,配置主机名,要求能解析相应的主机名(master 结点)到对应的ip地址,可以使用内网集群的dns服务器或写入/etc/hosts文件 里。如: 主机名 ip地址 k8s-master1.cof-lee.com 10.99.1.51 k8s-master2.cof-lee.com 10.99.1.52 k8s-master3.cof-lee0 码力 | 126 页 | 4.33 MB | 1 年前3 k8s操作手册 2.3k8s操作手册 前言: 1.蓝色字体表示命令行命令,正式执行时不要复制前面的#号,#号只是提示应 该使用root权限操作 2.绿色字体表示注释,有时注释太多就不用绿色表示了 3.注意:本文档的所有操作请先在测环境进行实践,请不要直接在真实的服务 器中操作! 版权声明: 本文档以开源的形式发布,所有条款如下: (1)无担保:作者不保证文档内容的准确无误,亦不承担由于使用此文档所导致的任何后果 更新日期:2023-12-29 ★第0章、K8S集群搭建准备工作 相关单词原义: docker 码头工人 pod 集装箱 kubernetes 舵手,领航员 helm 舵轮,驾驶盘 chart 图表,海图 ①k8s对系统要求 linux内核在3.10及以上 ②规划主机名及ip k8s的服务器使用固定ip地址,配置主机名,要求能解析相应的主机名(master 结点)到对应的ip地址,可以使用内网集群的dns服务器或写入/etc/hosts文件 里。如: 主机名 ip地址 k8s-master1.cof-lee.com 10.99.1.51 k8s-master2.cof-lee.com 10.99.1.52 k8s-master3.cof-lee0 码力 | 126 页 | 4.33 MB | 1 年前3
 python3学习手册★遍历字典dic�onary ①遍历key dictx = {"k1": "v1", "k2": "v2", "k3": "v3"} for key in dictx.keys(): print(key, "-------->", dictx[key]) ②遍历value dictx = {"k1": "v1", "k2": "v2", "k3": "v3"} for value in dictx dictx.values(): print(value) ③遍历item dictx = {"k1": "v1", "k2": "v2", "k3": "v3"} for k, v in dictx.items(): print(k, "---->", v) ★list/set/dic�onary增删改查操作 ①list数据操作(有序,数值可重复) listxx.append(x) #添加多个键值对,lx为另一 dictionary value2 = dictxx["k2"] # 取指定key对应的值 k,v=dictxx.popitem() # 随机返回并删除一个键值对 del dictxx["k2"] # 删除指定key的这对键值对 ★string和bytes转换0 码力 | 213 页 | 3.53 MB | 1 年前3 python3学习手册★遍历字典dic�onary ①遍历key dictx = {"k1": "v1", "k2": "v2", "k3": "v3"} for key in dictx.keys(): print(key, "-------->", dictx[key]) ②遍历value dictx = {"k1": "v1", "k2": "v2", "k3": "v3"} for value in dictx dictx.values(): print(value) ③遍历item dictx = {"k1": "v1", "k2": "v2", "k3": "v3"} for k, v in dictx.items(): print(k, "---->", v) ★list/set/dic�onary增删改查操作 ①list数据操作(有序,数值可重复) listxx.append(x) #添加多个键值对,lx为另一 dictionary value2 = dictxx["k2"] # 取指定key对应的值 k,v=dictxx.popitem() # 随机返回并删除一个键值对 del dictxx["k2"] # 删除指定key的这对键值对 ★string和bytes转换0 码力 | 213 页 | 3.53 MB | 1 年前3
 The DevOps HandbookTutorials and standards ii. Google – Single repository with over 1B files and over 2B SLOC, over 25K engineers for every Google property d. SPREAD KNOWLEDGE BY USING AUTOMATED TESTS AS DOCUMENTATION versions of the same library iii. 2014 Verizon PCI Data Breach Investigation Report – studies over 85K cardholder breaches. 10 vulnerabilities accounted for 97% of the exploits used. 8 of the 10 exploits telemetry to help fulfill infosec objectives and integrate security telemetry into the same tools k. CREATING SECURITY TELEMETRY IN OUR APPLICATIONS i. Create relevant telemetry 1. Successful/unsuccessful0 码力 | 9 页 | 25.13 KB | 5 月前3 The DevOps HandbookTutorials and standards ii. Google – Single repository with over 1B files and over 2B SLOC, over 25K engineers for every Google property d. SPREAD KNOWLEDGE BY USING AUTOMATED TESTS AS DOCUMENTATION versions of the same library iii. 2014 Verizon PCI Data Breach Investigation Report – studies over 85K cardholder breaches. 10 vulnerabilities accounted for 97% of the exploits used. 8 of the 10 exploits telemetry to help fulfill infosec objectives and integrate security telemetry into the same tools k. CREATING SECURITY TELEMETRY IN OUR APPLICATIONS i. Create relevant telemetry 1. Successful/unsuccessful0 码力 | 9 页 | 25.13 KB | 5 月前3
 The DevOps HandbookGoogle – single, share repository of billions of files. 50% of code is changed each month. 40K code commits/day, 120K automated test suites, 75M tests cases/day e. CONTINUOUSLY BUILD, TEST, AND INTEGRATE unreliable tests and false positives iv. Focus on automating tests that genuinely validate business goals k. INTEGRATE PERFORMANCE TESTING INTO OUR TEST SUITE i. Discovering performance issues in production0 码力 | 8 页 | 23.08 KB | 5 月前3 The DevOps HandbookGoogle – single, share repository of billions of files. 50% of code is changed each month. 40K code commits/day, 120K automated test suites, 75M tests cases/day e. CONTINUOUSLY BUILD, TEST, AND INTEGRATE unreliable tests and false positives iv. Focus on automating tests that genuinely validate business goals k. INTEGRATE PERFORMANCE TESTING INTO OUR TEST SUITE i. Discovering performance issues in production0 码力 | 8 页 | 23.08 KB | 5 月前3
 OutwardMindsetTaking criminals down hard; no respect for “bad guys” vs Think about what others need Complaints $70k per, 2-3/month Cutting 100M from budget Finding a way to keep others from cutting their budgets vs0 码力 | 2 页 | 235.43 KB | 5 月前3 OutwardMindsetTaking criminals down hard; no respect for “bad guys” vs Think about what others need Complaints $70k per, 2-3/month Cutting 100M from budget Finding a way to keep others from cutting their budgets vs0 码力 | 2 页 | 235.43 KB | 5 月前3
 The DevOps Handbookinfrastructure – shared databases iv. Bounded context – compartmentalized and well-defined interfaces k. KEEP TEAM SIZES SMALL (THE “2-PIZZA TEAM” RULE) 10. Ch. 8 How to Get Great Outcomes by Integrating0 码力 | 8 页 | 22.57 KB | 5 月前3 The DevOps Handbookinfrastructure – shared databases iv. Bounded context – compartmentalized and well-defined interfaces k. KEEP TEAM SIZES SMALL (THE “2-PIZZA TEAM” RULE) 10. Ch. 8 How to Get Great Outcomes by Integrating0 码力 | 8 页 | 22.57 KB | 5 月前3
共 6 条
- 1














