 k8s操作手册 2.3#默认使用的docker镜像是quay.io/coreos/的仓库,可改为自己集群的docker仓库 保存,退出 # kubectl apply -f kube-flannel.yml #应用flannel配置 如果pod启动失败了,查看日志 # kubectl logs kube-flannel-ds-24�m -n kube-system I0430 11:16:34.505952 ★★创建pod 创建单个pod,在可操作k8s集群的结点上创建一个yaml文件 # vi pod-nginx-web1-v1.19.5.yml #内容如下 apiVersion: v1 kind: Pod metadata: name: pod-nginx-web1-v1.19.5 #pod名,这个名称可带小数点 labels: labels: #给pod打标签,便于其他资源对它的选择 lbname: lbvalue-nginx-web1 spec: containers: #在spec次级,定义一组容器,-表示数组 - name: nginx-v1-19-50 码力 | 126 页 | 4.33 MB | 1 年前3 k8s操作手册 2.3#默认使用的docker镜像是quay.io/coreos/的仓库,可改为自己集群的docker仓库 保存,退出 # kubectl apply -f kube-flannel.yml #应用flannel配置 如果pod启动失败了,查看日志 # kubectl logs kube-flannel-ds-24�m -n kube-system I0430 11:16:34.505952 ★★创建pod 创建单个pod,在可操作k8s集群的结点上创建一个yaml文件 # vi pod-nginx-web1-v1.19.5.yml #内容如下 apiVersion: v1 kind: Pod metadata: name: pod-nginx-web1-v1.19.5 #pod名,这个名称可带小数点 labels: labels: #给pod打标签,便于其他资源对它的选择 lbname: lbvalue-nginx-web1 spec: containers: #在spec次级,定义一组容器,-表示数组 - name: nginx-v1-19-50 码力 | 126 页 | 4.33 MB | 1 年前3
 python3学习手册encode("utf8") ★struct.pack()返回的是bytes类型,不可变量 ★第11章、模块,包 包是一个分层次的文件目录结构,它定义了一个由模块及子包组成的 python应用环境 包是一种管理python模块命名空间的形式 包是一个文件夹,包文件夹下必须存在__init__.py文件,该文件可以为 空 (__init__.py文件用于标识当前文件夹是一个包)包下的其他* -S /pypi命令即可 #最后创建一个web server(如nginx)监听7788端口,根目录为python 模块包所在目录 server { listen 7788; loca�on / { root /pypi; } } #测试,在浏览器打开以下地址(10.99.1.248为web server的ip) h�p://10.99.1.248:7788/simple/ == '__main__': test_tk() ★django模块 Django是一个高级的Python Web框架,可以快速开发安全和可维护的 网站。Django项目有一个内置的开发服务器,用于在没有任何外部 Web服务器的情况下立即运行应用程序。 # pip3 install django==5.0.1 import django print(django.get_version())0 码力 | 213 页 | 3.53 MB | 1 年前3 python3学习手册encode("utf8") ★struct.pack()返回的是bytes类型,不可变量 ★第11章、模块,包 包是一个分层次的文件目录结构,它定义了一个由模块及子包组成的 python应用环境 包是一种管理python模块命名空间的形式 包是一个文件夹,包文件夹下必须存在__init__.py文件,该文件可以为 空 (__init__.py文件用于标识当前文件夹是一个包)包下的其他* -S /pypi命令即可 #最后创建一个web server(如nginx)监听7788端口,根目录为python 模块包所在目录 server { listen 7788; loca�on / { root /pypi; } } #测试,在浏览器打开以下地址(10.99.1.248为web server的ip) h�p://10.99.1.248:7788/simple/ == '__main__': test_tk() ★django模块 Django是一个高级的Python Web框架,可以快速开发安全和可维护的 网站。Django项目有一个内置的开发服务器,用于在没有任何外部 Web服务器的情况下立即运行应用程序。 # pip3 install django==5.0.1 import django print(django.get_version())0 码力 | 213 页 | 3.53 MB | 1 年前3
 postgresql操作手册pg_size_pre�y (pg_database_size('postgres')); #查看指定数据 库大小,单位经过优化显示 pg_size_pretty ---------------- 7901 kB #列出所有database的大小,单位经过优化显示 postgres=# select pg_database.datname, pg_size_pre�y (pg_da0 码力 | 17 页 | 445.84 KB | 1 年前3 postgresql操作手册pg_size_pre�y (pg_database_size('postgres')); #查看指定数据 库大小,单位经过优化显示 pg_size_pretty ---------------- 7901 kB #列出所有database的大小,单位经过优化显示 postgres=# select pg_database.datname, pg_size_pre�y (pg_da0 码力 | 17 页 | 445.84 KB | 1 年前3
 Velocity Conference 2015ormance-best-practices-together-for-a-spa  "We have created the web in our own image, and it is obese"  Modern web hourglass, web tier is now thin, smarts moved to browser Metrics, metrics everywhere than any other metric  Web Performance: 2 seconds is the magic number Whom did I meet?Attributions and References [1] Speaker Slides and Videos: http://velocityconf.com/devops-web-performance-2015/pub0 码力 | 4 页 | 176.79 KB | 5 月前3 Velocity Conference 2015ormance-best-practices-together-for-a-spa  "We have created the web in our own image, and it is obese"  Modern web hourglass, web tier is now thin, smarts moved to browser Metrics, metrics everywhere than any other metric  Web Performance: 2 seconds is the magic number Whom did I meet?Attributions and References [1] Speaker Slides and Videos: http://velocityconf.com/devops-web-performance-2015/pub0 码力 | 4 页 | 176.79 KB | 5 月前3
 git 操作手册h�ps://tortoisegit.org/ 使用TortoiseGit时,要求提前安装好git工具 ★部署gitlab仓库 gitlab是一个基于git实现的在线代码仓库软件,提供web可视化管理界面,通常 用于企业团队内部协作开发 ★安装gitlab-ce 部署gitlab-ce要求服务器内存>=4GB,本例使用操作系统为 Rocky Linux 8.8, gitlab-ce版本16 /var/log/gitlab/gitlab-rails/produc�on.log # tail -f /var/log/gitlab/gitlab-rails/produc�on_json.log ★web界面 ★管理员账号登录web界面及修改密码 浏 览 器 登 录 gitlab-ce , 用 户 名 root , 初 始 化 密 码 为/etc/gitlab/ini�al_root_password文件里的密码0 码力 | 35 页 | 1.69 MB | 1 年前3 git 操作手册h�ps://tortoisegit.org/ 使用TortoiseGit时,要求提前安装好git工具 ★部署gitlab仓库 gitlab是一个基于git实现的在线代码仓库软件,提供web可视化管理界面,通常 用于企业团队内部协作开发 ★安装gitlab-ce 部署gitlab-ce要求服务器内存>=4GB,本例使用操作系统为 Rocky Linux 8.8, gitlab-ce版本16 /var/log/gitlab/gitlab-rails/produc�on.log # tail -f /var/log/gitlab/gitlab-rails/produc�on_json.log ★web界面 ★管理员账号登录web界面及修改密码 浏 览 器 登 录 gitlab-ce , 用 户 名 root , 初 始 化 密 码 为/etc/gitlab/ini�al_root_password文件里的密码0 码力 | 35 页 | 1.69 MB | 1 年前3
 A Seat at the Table - IT Leadership in the Age of Agilitybook is meant to be, really. About the Author Mark Schwartz is an Enterprise Strategist at Amazon Web Services and the author of The Art of Business Value and A Seat at the Table: IT Leadership in the0 码力 | 4 页 | 379.23 KB | 5 月前3 A Seat at the Table - IT Leadership in the Age of Agilitybook is meant to be, really. About the Author Mark Schwartz is an Enterprise Strategist at Amazon Web Services and the author of The Art of Business Value and A Seat at the Table: IT Leadership in the0 码力 | 4 页 | 379.23 KB | 5 月前3
 The DevOps Handbookability to learn from mistakes and diminish integrating that learning into future work d. Google Web Server (GWS) team was struggling with changes – Hard line: no changes would be accepted into GWS without0 码力 | 8 页 | 23.08 KB | 5 月前3 The DevOps Handbookability to learn from mistakes and diminish integrating that learning into future work d. Google Web Server (GWS) team was struggling with changes – Hard line: no changes would be accepted into GWS without0 码力 | 8 页 | 23.08 KB | 5 月前3
 A Seat at the Table: IT Leadership in the Age of Agility - Part 2book is meant to be, really. About the Author Mark Schwartz is an Enterprise Strategist at Amazon Web Services and the author of The Art of Business Value and A Seat at the Table: IT Leadership in the0 码力 | 7 页 | 387.61 KB | 5 月前3 A Seat at the Table: IT Leadership in the Age of Agility - Part 2book is meant to be, really. About the Author Mark Schwartz is an Enterprise Strategist at Amazon Web Services and the author of The Art of Business Value and A Seat at the Table: IT Leadership in the0 码力 | 7 页 | 387.61 KB | 5 月前3
 A Seat at the Table - IT Leadership in the Age of Agilityrequires some sort of management.About the Author Mark Schwartz is an Enterprise Strategist at Amazon Web Services and the author of The Art of Business Value and A Seat at the Table: IT Leadership in the0 码力 | 7 页 | 387.48 KB | 5 月前3 A Seat at the Table - IT Leadership in the Age of Agilityrequires some sort of management.About the Author Mark Schwartz is an Enterprise Strategist at Amazon Web Services and the author of The Art of Business Value and A Seat at the Table: IT Leadership in the0 码力 | 7 页 | 387.48 KB | 5 月前3
共 9 条
- 1














