k8s操作手册 2.3
cgroupdriver=systemd" ] } # mkdir -p /etc/systemd/system/docker.service.d # docker info ★docker会修改防火墙规则,导致pod网络不通 # vi /usr/lib/systemd/system/docker.service #在[Service]下的ExecStart=/usr/bin/dockerd 置文件并编辑 # vi /etc/kubeadm-init.yaml apiVersion: kubeadm.k8s.io/v1beta2 bootstrapTokens: - groups: - system:bootstrappers:kubeadm:default-node-token token: abcdef.0123456789abcdef �l: 24h0m0s usages: io/v1beta2 cer�ficatesDir: /etc/kubernetes/pki clusterName: kubernetes controllerManager: {} dns: type: CoreDNS etcd: local: dataDir: /var/lib/etcd imageRepository: cof-lee.com:5443/k8s kind: ClusterConfigura�on0 码力 | 126 页 | 4.33 MB | 1 年前3The DevOps Handbook
organization iii. ENABLING ORGANIZATIONAL LEARNING AND A SAFETY CULTURE 1. When we work within a complex system, by definition it is impossible for us to perfectly predict all the outcomes for any action we processes, often to help individual departments maintain their “turf.” Failure is processed through a system of judgment, resulting in either punishment or justice and mercy. c. Generative organizations SYSTEMS OF RECORD AND SYSTEMS OF ENGAGEMENT i. Gartner Bi-modal IT 1. Type 1 – System of Record – “Doing it right” 2. Type 2 – System of Engagement – “Doing it fast” ii. DevOps helps reject the bi-modal0 码力 | 8 页 | 22.57 KB | 5 月前3postgresql操作手册
mv /var/lib/pgsql/13/* /data_pg/ #将原数据目录下所有内容移动到新 数据目录下 # vi /usr/lib/systemd/system/postgresql-13.service #pg-13版本,修改systemd服 务文件,指定数据目录 #修改这行:Environment=PGDATA=/var/lib/pgsql/13/data/ # mv /var/lib/pgsql/* /data_pg/ #将原数据目录下所有内容移动到新数 据目录下 # vi /usr/lib/systemd/system/postgresql.service #pg-10版本,修改systemd服务 文件,指定数据目录 #修改这行:Environment=PGDATA=/var/lib/pgsql/data/ 为 pg_catalg 的 schema 下 的 pg_hba_file_rules表里: INSERT INTO "pg_hba_file_rules" ("line_number", "type", "database", "user_name", "address", "netmask", "auth_method", "options", "error") VALUES (94, 'host'0 码力 | 17 页 | 445.84 KB | 1 年前3The Phoenix Project
Unlimited. Key Concepts The Three Ways [2] The First Way emphasizes the performance of the entire system, as opposed to the performance of a specific silo of work or department. The outcomes of putting degradation, always seeking to increase flow, and always seeking to achieve profound understanding of the system (as per Deming). The Second Way is about creating the right to left feedback loops. The goal of daily work, creating rituals that reward the team for taking risks, and introducing faults into the system to increase resilience. Four Types of Work 1. Business projects 2. IT projects 3. Changes 40 码力 | 3 页 | 154.45 KB | 5 月前3python3学习手册
Appearance → 选 中 Show whitespaces ★不进行拼写检查 File → Se�ngs → Editor → Inspec�ons → Proofreading → Type 取消勾选 ★设置项目的python解释器 File → Se�ngs → Project: xxx →Python Interpreter → 右 侧 选 择 目 标 python解释器 #a和b中不同时存在的元素 ★判断变量类型 type(x) #返回x的类型,如isinstance(x, int) #返回True或False type()不会 认为子类是父类的一种类型 isinstance(x,int)会认为子类是父类的一种类型 ★类型转换 map(type, listxx) 将字符串str型list转为int型list # 类型为 str 长度 3 bytesxx = strxx.encode("utf8") # 将str编码为utf8,返回类 型bytes,长度 7 print(type(bytesxx[0])) #返回int, bytesxx本身为bytes 类型,其元素则为 int ★string的元素仍为str stryy=bytesxx.decode("utf8") 0 码力 | 213 页 | 3.53 MB | 1 年前3The DevOps Handbook
Logging Levels 1. Debug – anything that happens in the program 2. Info – user driven actions or system specific 3. Warn – conditions that could become an error and will likely trigger an alert 4. Error GTP Security & Risk Management group) 1. Authentication/authorization decisions 2. System and data access 3. System and application changes, especially privileged changes 4. Data changes (CRUD) 5. Invalid friction by adding more steps/approvals which tends to increase batch size ii. Toyota Production System – “people closest to a problem typically know the most about it.” iii. 2014 State of DevOps Report0 码力 | 8 页 | 24.02 KB | 5 月前3Redis操作手册
#先结束刚刚运行的进程 # cat > /etc/systemd/system/redis.service <Type=forking ExecStart=/usr/local/bin/redis-server /root/redis-6 0 码力 | 5 页 | 80.37 KB | 1 年前3A Seat at the Table - IT Leadership in the Age of Agility
and last, that the business should be thought of as a community, or perhaps as a Complex Adaptive System, which needs to be led and managed through an inspect-and- adapt, feedback-and-vision-oriented approach dysfunctional transformation cycle. It lies, I believe, in our distinction between the development of a system and its operation and maintenance. Dividing our IT spending into development and maintenance buckets way to incrementally modernize a legacy system as defined by Martin Fowler. Instead of building an entirely new system, we take a small piece of the legacy system and rebuild it in a way that lets it0 码力 | 4 页 | 379.23 KB | 5 月前3The DevOps Handbook
consistent, & secure c. CREATE OUR SINGLE REPOSITORY OF TRUTH FOR THE ENTIRE SYSTEM i. ALL parts (code & environments) of the system are shared in a version control repository ii. Version control is for When a change causes the build or automated tests to fail: 1. No new work is allowed to enter the system until the problem is fixed. 2. Bring in whatever help is needed to resolve the problem iii. Prioritize tests of the integrated system as a whole 3. Work towards single-piece flow iii. Trunk & state of Deployment Pipeline represents & communicates the current state of the system iv. Modified Definition0 码力 | 8 页 | 23.08 KB | 5 月前3The DevOps Handbook
Accidents are due to the inevitable design problems in complex systems that we build; they are system problems – not individual problems iii. Effective practices 1. Blameless post-mortems 2. Controlled “could have” a. These are counterfactual statements b. Frames the problem as the system as imagined rather than the system that actually exists 4. Focus on – “Why did it make sense to me when I took that and behavior of libraries and components ii. Test suite becomes the living documentation of the system specification and represent working examples of API use e. DESIGN FOR OPERATIONS THROUGH CODIFIED0 码力 | 9 页 | 25.13 KB | 5 月前3
共 17 条
- 1
- 2