上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 基于kubeadm Etcd集群数据恢复方案 etcd HA集群中单台etcd故障不更换ip恢复方式 概述 单master节点,会将90作为故障节点删除并进行修复 查看节点 root@wangshile-vendor-4:/opt# kubectl -nkube-system get po|grep 阅读全文
posted @ 2020-06-19 16:55 Wshile 阅读(340) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python # coding: utf-8 import re, os DiamondPath = "cat /root/diamond-v1.100.0010-SNAPSHOT/diamond.yaml" user = "ubuntu" keyPath = "1.key" 阅读全文
posted @ 2020-06-09 16:06 Wshile 阅读(195) 评论(0) 推荐(0) 编辑
摘要: grafana配置邮件告警 修改配置 grafana.ini 实现告警 [smtp] enabled = true host = #邮箱SMTP服务器地址 user = #你登录邮箱的账号 password = #你邮箱账号的密码 from_address = #发邮件的账号 from_name = 阅读全文
posted @ 2020-06-03 18:41 Wshile 阅读(665) 评论(0) 推荐(0) 编辑
摘要: Git连接Gitlab并提交内容 安装Git 1. 下载Git Windows版本 2. 新建Git目录(用于存放代码)并进入该目录 3. 安装完毕后鼠标右击选择Git Bash Here 配置分支 生成公钥和私钥 $ ssh-keygen -t rsa 将生成的公钥粘贴Github上 通过Git 阅读全文
posted @ 2020-06-01 23:10 Wshile 阅读(372) 评论(0) 推荐(0) 编辑
摘要: docker自定义bridge 创建bridge [root@server02 ~]# yum install -y bridge-utils # 创建 [root@server02 ~]# docker network create -d bridge my_bridge # 查看 [root@s 阅读全文
posted @ 2020-05-31 16:36 Wshile 阅读(396) 评论(0) 推荐(0) 编辑
摘要: docker-compose入门示例 以下将启动一个zabbix_server端作为compose的使用案例 docker命令启动方式 启动mysql [root@wshile zabbix]# docker run --name mysql-server -t \ -e MYSQL_DATABAS 阅读全文
posted @ 2020-05-31 16:19 Wshile 阅读(593) 评论(1) 推荐(0) 编辑
摘要: Xshell生成秘钥免密登录 导出生成的公钥 将公钥导出并上传到需要免密登录的服务器 [root@server02 ~]# cat wshile.pub /root/.ssh/authorized_keys 直接将私钥当初存放到桌面并上传到跳板服务器 跳板服务器执行该命令 [root@server0 阅读全文
posted @ 2020-05-29 18:58 Wshile 阅读(440) 评论(0) 推荐(0) 编辑
摘要: docker常用命令总结 docker run -d, --detach=false # 后台运行容器,并返回容器ID; -i, --interactive=false # 以交互模式运行容器,通常与 -t 同时使用; -t, --tty=false # 为容器重新分配一个伪输入终端,通常与 -i 阅读全文
posted @ 2020-05-29 17:38 Wshile 阅读(719) 评论(0) 推荐(1) 编辑
摘要: Pod的升级和回滚 Deployment的升级 apiVersion: apps/v1beta1 kind: Deployment metadata: name: nginx-deployment namespace: test spec: replicas: 3 template: metadat 阅读全文
posted @ 2020-05-28 15:51 Wshile 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 玩转Pod调度 Deployment或RC:全自动调度 apiVersion: apps/v1beta1 kind: Deployment metadata: name: nginx-deployment spec: replicas: 3 template: metadata: labels: a 阅读全文
posted @ 2020-05-25 16:58 Wshile 阅读(335) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页