- 博客(4)
- 收藏
- 关注
原创 安装Kubernetes-1.9.2脚本全自动化
安装Kubernetes-1.9.2一、简介docker.sh 安装docker17.03.2,kubeadm,kubectl,kubelet;install.sh 主脚本,安装集群;interface.sh 判断keepalived绑定网卡类型;keepalived.sh 安装keepalived;kubernetes1.9.2/ 必须的rpm包以及镜像。全部脚本下载地址链接:https:...
2018-03-07 15:29:33 1241 1
原创 php脚本检测haproxy后端的可用性
一、检测资源类型 mysql;memcache;redis;rabbitmq 二、脚本 error_reporting(1); //awk '{if($1 != "#") {print $0}}' haproxy.conf|grep -v '#-' //exec("ps aux|grep haproxy|grep -v grep|awk -F '-f' '{print $2}'|aw
2018-01-09 13:50:02 412
原创 Kubernetes开机脚本
一、脚本使用情况 1、nfs挂载; 2、检查集群服务; 二、脚本内容 #! /bin/bash #Description: 宕机后,启动服务脚本。慎用 # init env umask 022 PATH="/sbin:/usr/sbin:/bin:/usr/bin" export PATH # Get a sane screen width [ -z "${COLUMNS:-
2018-01-09 13:40:58 1086
原创 python实现kubernetes生成Excel报表并且Email
一、首先是一个主脚本串联起两个Python脚本 #!bin/bash cd /baobiao kubectl get namespaces > namespaces.txt kubectl get svc -o wide --all-namespaces > service.txt kubectl get pods -o wide --all-namespaces > pods.txt
2017-09-19 16:30:34 635
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人