上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: PS 参考博文,致谢 :https://www.jb51.net/article/186336.htm 一、获取Jobs的当前状态 server_1 = jenkins.Jenkins('http://%s:%s@192.168.37.134:8081/',username, password) # 阅读全文
posted @ 2021-05-30 14:24 SRE运维充电站 阅读(1297) 评论(0) 推荐(0) 编辑
摘要: Jenkins库初识(调用Job执行) from threading import Event, Thread import jenkins import threading import logging import datetime FORMAT = '%(asctime)s %(threadN 阅读全文
posted @ 2021-05-30 14:14 SRE运维充电站 阅读(319) 评论(0) 推荐(0) 编辑
摘要: python控制ECS启动或关闭 import sys # from aliyunsdkcore import client from aliyunsdkcore.client import AcsClient from aliyunsdkecs.request.v20140526 import S 阅读全文
posted @ 2021-05-30 14:08 SRE运维充电站 阅读(209) 评论(0) 推荐(0) 编辑
摘要: python修改阿里云ecs密码 # pip # pip install aliyun-python-sdk-core # 安装阿里云SDK核心库 pip install aliyun-python-sdk-core-v3 # Python3.X 阿里云SDK核心库 pip install aliy 阅读全文
posted @ 2021-05-30 14:07 SRE运维充电站 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 官方文档 :https://docker-py.readthedocs.io/en/stable/images.html 安装方式pip :pip install docker -i http://pypi.douban.com/simple --trusted-host pypi.douban.c 阅读全文
posted @ 2021-05-30 14:05 SRE运维充电站 阅读(259) 评论(0) 推荐(0) 编辑
摘要: PS 参考博文,致谢 :https://www.liwenzhou.com/posts/Go/04_basic/ 流程控制是每种编程语言控制逻辑走向和执行次序的重要部分,流程控制可以说是一门语言的“经脉”。 Go语言中最常用的流程控制有if和for,而switch和goto主要是为了简化代码、降低重 阅读全文
posted @ 2021-05-30 12:29 SRE运维充电站 阅读(72) 评论(0) 推荐(0) 编辑
摘要: #! /usr/bin/env python3 # -*- coding:utf-8 -*- # 本脚本只是harbor页面tags清理 # 物理清理:docker run -it --name gc --rm --volumes-from registry goharbor/registry-ph 阅读全文
posted @ 2021-05-29 19:12 SRE运维充电站 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 一、ubuntu安装minikube 1.1、安装docker 安装步骤: 1.更新Ubuntu的apt源索引 $ sudo apt-get update 2.安装包允许apt通过HTTPS使用仓库 $ sudo dpkg --configure -a $ sudo apt-get install 阅读全文
posted @ 2021-05-29 18:36 SRE运维充电站 阅读(2674) 评论(0) 推荐(0) 编辑
摘要: # 允许master节点部署pod kubectl taint nodes --all node-role.kubernetes.io/master- # 如果不允许调度 kubectl taint nodes master1 node-role.kubernetes.io/master=:NoSc 阅读全文
posted @ 2021-05-29 18:34 SRE运维充电站 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 一、Kubewatch介绍 Kubewatch是一款Kubernetes 资源观测工具,实时监控 Kubernetes 集群中各种资源的新建、更新和删除,并实时通知到各种协作软件/聊天软件,目前支持的通知渠道有: slack hipchat mattermost flock webhook 二、He 阅读全文
posted @ 2021-05-29 18:31 SRE运维充电站 阅读(754) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页