摘要: python3 源码编译 # 编译环境准备 yum install gcc patch libffi-devel python-devel zlib-devel bzip2-devel openssl-devel \ ncurses-devel sqlite-devel readline-devel 阅读全文
posted @ 2020-12-10 22:03 31407 阅读(2820) 评论(0) 推荐(0)
摘要: 1. 当前安装环境 CentOS Linux release 7.3.1611 (Core) gitlab-ce-12.5.6-ce.0.el7.x86_64.rpm 2. 关闭gitlab服务,并备份数据文件 gitlab-ctl stop scp -r /opt/gitlab backup_no 阅读全文
posted @ 2020-11-23 11:06 31407 阅读(1366) 评论(0) 推荐(0)
摘要: 1. 修改kubernetes组件镜像地址 cat inventory/mycluster/group_vars/k8s-cluster/k8s-cluster.yml |grep kube_image_repo kube_image_repo: "registry.cn-beijing.aliyu 阅读全文
posted @ 2020-11-19 17:42 31407 阅读(692) 评论(0) 推荐(0)
摘要: 1. 需要一台联网的CentOS7.6 mini安装的机器 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) 2. 配置yum缓存包保留 [root@localhost ~]# cat / 阅读全文
posted @ 2020-11-19 14:48 31407 阅读(967) 评论(0) 推荐(0)
摘要: CentOS的云镜像下载地址: http://cloud.centos.org/centos/7/images/ 1. 简单粗暴法:创建虚拟机时,在“配置”选项里填写脚本,强制配置root密码 2. 推荐委婉法:首先创建密钥对,获取私钥,然后创建虚拟机时在“密钥对”选项中添加对应的公钥。这样就可以通 阅读全文
posted @ 2020-10-23 14:29 31407 阅读(2095) 评论(0) 推荐(0)
摘要: 1. 登陆Horizon web页面,导航到“项目-> 计算-> 实例” 2. 点击“创建实例”,填写实例名称和说明,点击“下一步” 3. 选择虚拟机镜像,不同镜像代表了不同的操作系统和版本,添加所选镜像后点击“下一步” 4. 选择虚拟机的配置,主要为cpu核数,内存和磁盘大小,添加所选规格后点击“ 阅读全文
posted @ 2020-10-22 22:09 31407 阅读(474) 评论(0) 推荐(0)
摘要: 创建认证文件 通过htpasswd工具生成用户密码文件 # htpasswd是apache httpd工具包中的工具 # 安装htpasswd ## centos yum install httpd-tools -y ## ubuntu apt install apache2-utils -y # 阅读全文
posted @ 2020-10-19 20:28 31407 阅读(2065) 评论(2) 推荐(0)
摘要: 在Kubernetes中,授权有ABAC(基于属性的访问控制)、RBAC(基于角色的访问控制)、Webhook、Node、AlwaysDeny(一直拒绝)和AlwaysAllow(一直允许)这6种模式。 从1.6版本起,Kubernetes 默认启用RBAC访问控制策略。 从1.8开始,RBAC已作 阅读全文
posted @ 2020-10-19 20:25 31407 阅读(136) 评论(0) 推荐(0)
摘要: 1. 更新系统 更新系统和软件,可以修补部分已知的bug和漏洞 # CentOS sudo yum makecache sudo yum update -y # 如果机器对内核有特俗要求不需要升级 yum update --exclude=kernel* -y # Ubuntu sudo apt u 阅读全文
posted @ 2020-10-19 20:05 31407 阅读(1070) 评论(0) 推荐(0)
摘要: 系统选泽、运行时选择、编排规划、网络选泽 系统选择(CentOS VS Ubuntu) 注:操作系统均为服务器版本,包含但不限于CentOS和Ubuntu 共同点: 开源和免费的社区支持的操作系统 基于Linux内核 不同点: CentOS在国内有良好的群众基础,Ubuntu则稍微不足 Ubuntu 阅读全文
posted @ 2020-10-19 19:58 31407 阅读(300) 评论(0) 推荐(0)
摘要: # 修改主机名,设置后注销重新登录即可 hostnamectl set-hostname nodexxx.localdomain.local && logout # 同步公网时间(无法访问公网需要配置指向内网ntp服务器) yum install chrony systemctl start chr 阅读全文
posted @ 2020-10-19 19:56 31407 阅读(113) 评论(0) 推荐(0)
摘要: destination rule、virtual service、subset、gateway destionationrule(服务注册) apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata: name: 阅读全文
posted @ 2020-10-19 19:27 31407 阅读(842) 评论(0) 推荐(0)
摘要: helm、kubernetes 安装 1: 配置kubectl认证文件 Windows: $User/.kube/config Linux: $HOME/.kube/config 2: 下载二进制文件 Windows: https://get.helm.sh/helm-v3.0.0-windows- 阅读全文
posted @ 2020-10-19 19:26 31407 阅读(654) 评论(0) 推荐(0)
摘要: gitlab-ce-9.2.6升级到gitlab-ce-14.4.2 升级方案 备份!备份!备份 升级预研测试 实际环境升级 测试完整性 备份 # 自动创建数据备份文件到/var/opt/gitlab/backup目录下 gitlab-rake gitlab:backup:create # 备份完成 阅读全文
posted @ 2020-10-19 19:24 31407 阅读(716) 评论(0) 推荐(0)
摘要: 关键词:对象存储、minio、分布式、集群 官方示例 # 32个node,每个node启动32个driver export MINIO_ACCESS_KEY=<ACCESS_KEY> export MINIO_SECRET_KEY=<SECRET_KEY> minio server http://h 阅读全文
posted @ 2020-10-19 19:20 31407 阅读(1470) 评论(0) 推荐(0)
摘要: 通过模板创建修改多个中间件应用,并提交到本地仓库,比如elasticsearch、redis、mysql、postgresql等 wangw@DESKTOP:~/helmapp$ helm search NAME CHART VERSION APP VERSION DESCRIPTION local 阅读全文
posted @ 2020-10-19 19:19 31407 阅读(164) 评论(0) 推荐(0)
摘要: 通过修改模板创建mysql应用 创建mysql模板 wangw@DESKTOP:~/app$ helm create mysql Creating mysql 修改mysql/Chart.yaml wangw@DESKTOP:~/app$ cat mysql/Chart.yaml apiVersio 阅读全文
posted @ 2020-10-19 19:18 31407 阅读(153) 评论(0) 推荐(0)
摘要: helm部署 安装helm客户端 # 下载二进制包 wget https://storage.googleapis.com/kubernetes-helm/helm-v2.14.3-linux-amd64.tar.gz # 减压文件 tar xvf helm-v2.14.3-linux-amd64. 阅读全文
posted @ 2020-10-19 19:16 31407 阅读(198) 评论(0) 推荐(0)
摘要: 升级Centos7内核为kernel-ml版 内核升级需要依照实际需求使用,目前需要的地方是为了更好支持容器和使用新特性 导入公钥 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org 安装内核源 yum install https:/ 阅读全文
posted @ 2020-10-19 19:13 31407 阅读(134) 评论(0) 推荐(0)
摘要: rsync参数说明 -v: 显示rsync过程中详细信息。可以使用"-vvvv"获取更详细信息。 -P: 显示文件传输的进度信息。(实际上"-P"="--partial --progress",其中的"--progress"才是显示进度信息的)。 -n --dry-run: 仅测试传输,而不实际传输 阅读全文
posted @ 2020-10-19 19:11 31407 阅读(513) 评论(0) 推荐(0)