k8s操作手册 2.3
containerd.io -y # containerd --version #查看版本 containerd containerd.io 1.6.24 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523 ★配置containerd服务 # mkdir -p /etc/containerd # containerd config &version.Info{Major:"1", Minor:"28", GitVersion:"v1.28.2", GitCommit:"89a4ea3e1e4ddd7f7572286090359983e0387b2f", GitTreeState:"clean", BuildDate:"2023-09-13T09:34:32Z", GoVersion:"go1.20.8", Compiler:"gc" crictl ps #查看容器,默认固定为k8s.io的命名空间 # crictl logs xxxx #查看容器日志,支持带-f参数 # crictl inspect xxx #查看镜像或容器信息 ★附、安装cri-dockerd Kubernetes自v1.24移除了对docker-shim的支持,而Docker0 码力 | 126 页 | 4.33 MB | 1 年前3python3学习手册
★PyCharm快捷键 Alt + Shi� 列选择模式,可同时选择多列 Ctrl + Alt + L 重新格式化代码,Reformat Code Ctrl + B 跳转到鼠标指定的函数定义处 Shi� + F10 运行程序 Ctrl + R 查找替换 ★设置字体颜色 File → Se�ngs → Editor → Color Scheme → Language Defaults → 选中目 标Scheme "这是第%2d号,体重%5.2f公折" % (num, wei) ) %-6.3f 表示左对齐,共6位宽,3位小数,浮点型(默认左对齐) 类 型 码 含义 类型码 含义 %c 字符 %s 字符串 %d 十进制整数 %u 无符号整数 %o 八进制数 %x 小写十六进制数 %X 大写十六进制数 %f 浮点数 %e 科学计数法,小写e %g 自动采用最短的%f或%e %F 同%f,会把inf,nan写成 输出带0o前缀 #x 输出带0x前缀 ,数字分组分隔 让数字以3个一组带上逗号分隔符 ,d 仅对应,d,不可用,f ,x之类 _d _o _x _b 可对应这4个,以每4个字符为一组带_下划线输出 %百分比形式 {:%} 自动将数字乘以100带上%号,浮点数表示了,默认6位小数0 码力 | 213 页 | 3.53 MB | 1 年前3The DevOps Handbook
with Information Security and Compliance: e. Myth—DevOps Means Eliminating IT Operations, or “NoOps” f. Myth—DevOps is Just “Infrastructure as Code” or Automation: g. Myth—DevOps is Only for Open Source Partially done work: b. Extra processes: c. Extra features: d. Task switching: e. Waiting: f. Motion: g. Defects: h. Nonstandard or manual work:i. Heroics: d. The Second Way: The Principles your condition now? d. What is your next target condition? e. What obstacle are you working on now? f. What is your next step? g. What is your expected outcome? h. When can we check? 6. PART II—WHERE0 码力 | 8 页 | 22.57 KB | 5 月前3The DevOps Handbook
day every exercise and new piece of information is evaluated and debated; more similar to R&D lab. f. REDEFINE FAILURE AND ENCOURAGE CALCULATED RISK-TAKING i. Leaders reinforce the culture through their fast flow, deployability, and operations will derive NFRs. Codify these into the tests and pipeline f. BUILD REUSABLE OPERATIONS USER STORIES INTO DEVELOPMENT i. Goal – make recurring work as repeatable conferences, give talks, and then sharing back to the organization what was learned ii. Attend Meetups! f. CREATE INTERNAL CONSULTING AND COACHES TO SPREAD PRACTICES i. Capital One – SMEs hold open office0 码力 | 9 页 | 25.13 KB | 5 月前3git 操作手册
★查看日志 # gitlab-ctl tail #查看日志 # tail -f /var/log/gitlab/gitlab-rails/produc�on.log # tail -f /var/log/gitlab/gitlab-rails/produc�on_json.log ★web界面 ★管理员账号登录web界面及修改密码 0), reused 0 (delta 0), pack-reused 0 To https://gitlab.cof-lee.com/cof/pro-1.git + 2447ea5...dd101f2 main -> main (forced update) branch 'main' set up to track 'rmtRepo/main'. ★添加用户的ssh密钥 由用户登录gitlab界面,自行添加ssh 件 # ssh-keygen -t rsa -b 2048 -C "cof@cof-lee.com" -P "" -f cof-sshkey #直接生成key文件及公钥.pub文件,无需交互,-C指定密钥的描述信息,-P指定 加密密钥的密码,-f指定生成的文件名,生成的密钥文件: cof-sshkey为私钥, cof-sshkey.pub为公钥 将公钥文件的内容复制粘贴到git0 码力 | 35 页 | 1.69 MB | 1 年前3The DevOps Handbook
with overlays of production changes iii. Tools – StatsD, JMX, codahale, New Relic, Prometheus, etc. f. CREATE SELF-SERVICE ACCESS TO TELEMETRY AND INFORMATION RADIATORS i. Spread the information – anyone deliberate change scheduling, gather representatives, not authorize changes, but to schedule and sequence. f. ENABLE PEER REVIEW OF CHANGES i. Require peer reviews, not external board approval ii. Peer review0 码力 | 8 页 | 24.02 KB | 5 月前3The DevOps Handbook
tests fail 3. Developers working in small batches on trunk rather than long-lived feature branches f. BUILD A FAST AND RELIABLE AUTOMATED VALIDATION TEST SUITE i. Slow and periodic feedback kills – larger Enable fast flow through common promotion process anyone can run without manual steps and handoffs f. INTEGRATE CODE DEPLOYMENT INTO THE DEPLOYMENT PIPELINE i. Ensures packages created by CI are suitable0 码力 | 8 页 | 23.08 KB | 5 月前3
共 7 条
- 1