k8s操作手册 2.3
里,也可以装在实体机上 ②规划主机名及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 com k8s-node01 10.99.1.62 k8s-node02.cof-lee.com k8s-node02 EOF ★k8s初始化时要求系统里有/etc/resolv.conf文件及系统对外通信网口上配置有 默认路由;根据实际情况添加 # cat >> /etc/resolv.conf <so� nofile 1000000 * hard nofile 1000000 * so� core unlimited * hard core unlimited * so� memlock unlimited * so� memlock unlimited * so� nproc 0 码力 | 126 页 | 4.33 MB | 1 年前3python3学习手册
/usr/bin/python2 --> /usr/bin/python2.7 (可执行文件) centos8 3.6.8 /usr/libexec/pla�orm-python --> /usr/libexec/pla�orm-python3.6 (可执行文件) ①进入交互模式 # python3 #输入python3 # chmod +x test.py #添加可执行权限 # python3脚本文件开头位置要指定以下2行(使用的python解释器及本 源码文件编码) #!/usr/bin/env python3 # coding=u�-8 # python2脚本文件里要指定以下2行 #!/usr/bin/env python # -*- coding: u�-8 -*- ★设置每行最大长度 File → Se�ngs → Editor → Code Style → 右侧的 General下的 Hard wrap at: 120(默认为120字符) ★设置源码文件字符编码 File → Se�ngs → Editor → File Encodeings → 右侧的“Global Encoding”设 置目标字符编码,默认UTF-8 ★pycharm安装模块0 码力 | 213 页 | 3.53 MB | 1 年前3git 操作手册
#查看git软件版本 git version 2.39.1 ★全局设置 设置用户名和邮箱,只用于提交commit时做metadata信息,不用于身份验证 #全局设置信息保存在 ~/.gitconfig 文件里 # git config --global user.name cof #设置用户名 # git config --global user #查看全局设置 ★本地设置 针 对 单 一 项 目 的 设 置 , 使 用 --local 参 数 , 本 地 设 置 信 息 保 存 在 项 目 目 录/.git/config文件里 # cd 项目目录 # git init #初始化仓库,将在当前路径下生成.git子目录,子目录里有 此git仓库的相关信息 # git config # git config --local --list #查看本地设置 ★系统设置 系统设置信息保存在/etc/gitconfig文件里 # git config --system user.name cof # git config --system user.email cof@cof-lee.com # git0 码力 | 35 页 | 1.69 MB | 1 年前3postgresql操作手册
h�ps://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat- repo-latest.noarch.rpm #或者直接创建repo文件,内容如下 [pgdg13] name=PostgreSQL 13 for RHEL / Rocky $releasever - $basearch baseurl=h�ps://download.postgresql #将原数据目录下所有内容移动到新 数据目录下 # vi /usr/lib/systemd/system/postgresql-13.service #pg-13版本,修改systemd服 务文件,指定数据目录 #修改这行:Environment=PGDATA=/var/lib/pgsql/13/data/ 改为新的路径,如 下: Environment=PGDATA=/data_pg/data/ #将原数据目录下所有内容移动到新数 据目录下 # vi /usr/lib/systemd/system/postgresql.service #pg-10版本,修改systemd服务 文件,指定数据目录 #修改这行:Environment=PGDATA=/var/lib/pgsql/data/ 改为新的路径,如下: Environment=PGDATA=/data_pg/data/0 码力 | 17 页 | 445.84 KB | 1 年前3A Seat at the Table: IT Leadership in the Age of Agility - Part 2
Schwartz “To the talented and hard-working government employees, so resilient in the face of impediments, criticism, and abuse. I have so much fun working alongside you.” – Mark Schwartz Last Time in without requiring changes to the whole ball of EA. It has a robust, automated regression test suite, so that new development does not cause expensive break-fix activity. It has good monitoring tools human beings are making decisions, if an IT product can be acquired “off the shelf,” it is better to do so than to build it. This obvious fact is neat, plausible, and in most cases, wrong. The economics of0 码力 | 7 页 | 387.61 KB | 5 月前3A Seat at the Table - IT Leadership in the Age of Agility
still a given, but we want to drive out as much as we can until it stops being cost-effective to do so. We can take this as yet another definition of what it means to be Agile. Why do people feel like becomes truly necessary to hit a schedule milestone, then we can adjust our scope to be sure that we do so. The importance that we have attached to the timing of FOC is just another example of the misconception are comfortable with the ideathat we will break things in testing, because the end result of doing so is that we can make a decision more quickly and with more good information available. “Failing”0 码力 | 7 页 | 387.48 KB | 5 月前3The Phoenix Project
loops. The goal of almost any process improvement initiative is to shorten and amplify feedback loops so necessary corrections can be continually made. The outcomes of the Second Way include understanding fifty percent idle. The wait time is fifty percent divided by fifty percent, so one unit of time. Let’s call it one hour. So, on average, our task would wait in the queue for one hour before it gets worked would wait in queue nine times longer than if the resource were fifty percent idle.” I conclude, “So, for the Phoenix task, assuming we have seven handoffs, and that each of those resources is busy ninety0 码力 | 3 页 | 154.45 KB | 5 月前3The DevOps Handbook
Transform logs/events into metrics to enable statistical analysis iv. Adrian Cockcraft – “Monitoring is so important that our monitoring systems need to be more available and scalable than the systems being an engineer to implement, it is certainly important enough to generate enough production telemetry so that we can confirm that is it operating as designed and outcomes are being achieved. iii. Logging TELEMETRY DATA HAS NON-GAUSSIAN DISTRIBUTION i. Many operational data sets are non-Gaussian (Bell curve) so standard deviations will likely over or under alertd. USING ANOMALY DETECTION TECHNIQUES i. Anomaly0 码力 | 8 页 | 24.02 KB | 5 月前3A Seat at the Table - IT Leadership in the Age of Agility
impact. Continuous Delivery and DevOps place the entire value stream in the hands of that small team so that it can optimize the whole – a term of art in lean thinking – and be empowered as a team to own projects are evidence that a mistake has been made. The worst of these transformational projects are so-called “modernization projects”— transformational projects undertaken to bring technology platforms beings are making decisions, if an IT product can be acquired “off the shelf,” it is better to do so than to build it. This obvious fact is neat, plausible, and in most cases, wrong. Governance and Oversight:0 码力 | 4 页 | 379.23 KB | 5 月前3The DevOps Handbook
don’t work and reinforcing those that do3. local learnings are rapidly turned into global improvements, so that new techniques and practices can be used by the entire organization iii. ENABLING ORGANIZATIONAL Don’t just make the interest payments, pay down the principle ii. If not managed, services become so fragile, delivery grinds to a halt g. INCREASE THE VISIBILITY OF WORK i. Keep the current state visible0 码力 | 8 页 | 22.57 KB | 5 月前3
共 17 条
- 1
- 2