摘要:
Compose和Docker兼容性: Compose 文件格式有3个版本,分别为1, 2.x 和 3.x 目前主流的为 3.x 其支持 docker 1.13.0 及其以上的版本 常用参数: version # 指定 compose 文件的版本 services # 定义所有的 service 信息 阅读全文
posted @ 2022-06-07 15:08
蒲公英PGY
阅读(247)
评论(0)
推荐(0)
摘要:
wwechat.py ```python #!/usr/bin/python # coding:utf-8 # 2016-01-18 import urllib, urllib2 import json import sys import logging import subprocess relo 阅读全文
posted @ 2022-06-07 14:46
蒲公英PGY
阅读(147)
评论(0)
推荐(0)
摘要:
templet.yml ```yaml groups: - name: 主机状态-监控告警 rules: - alert: 主机状态 expr: up *on(instance)group_left(nodename)(node_uname_info) == 0 for: 5m labels: le 阅读全文
posted @ 2022-06-07 14:42
蒲公英PGY
阅读(1174)
评论(0)
推荐(0)
摘要:
jenkins_rbac.yml apiVersion: v1 kind: ServiceAccount metadata: name: jenkins namespace: jenkins kind: ClusterRole apiVersion: rbac.authorization.k8s.i 阅读全文
posted @ 2022-06-07 14:38
蒲公英PGY
阅读(66)
评论(0)
推荐(0)
摘要:
SpringCloud微服务容器云进阶之路 Springboot应用配合Actuator开启: 监控检查 , 优雅停机 , 监控metrics 等endpoints 根据 Dockerfile 定义制作Docker镜像并上传 Harbor 私有Docker Registry 渲染K8S部署模板文件并 阅读全文
posted @ 2022-06-07 14:30
蒲公英PGY
阅读(138)
评论(0)
推荐(0)
摘要:
jenkinsfile k8s部署模板 def label = "slave-${UUID.randomUUID().toString()}" podTemplate(label: label, containers: [ containerTemplate(name: 'maven', image 阅读全文
posted @ 2022-06-07 14:03
蒲公英PGY
阅读(270)
评论(0)
推荐(0)
摘要:
```python # -*- coding: utf-8 -*- # @Time : 2020-07-14 # @Author : pugongying import smtplib from email.mime.text import MIMEText from email.utils imp 阅读全文
posted @ 2022-06-07 14:00
蒲公英PGY
阅读(47)
评论(0)
推荐(0)
摘要:
# python使用AliyunOpenApi获取MongoDB监控数据 Mongo_cpu.py ```python import sys import json import datetime,time from json import loads, dumps from typing impo 阅读全文
posted @ 2022-06-07 13:58
蒲公英PGY
阅读(117)
评论(0)
推荐(0)
摘要:
# python使用AliyunOpenApi获取ecs监控数据 ecs.py ```python #!/usr/bin/env python #coding=utf-8 import json import datetime,time from aliyunsdkcore.client impor 阅读全文
posted @ 2022-06-07 13:51
蒲公英PGY
阅读(126)
评论(0)
推荐(0)
摘要:
# python使用AliyunOpenApi获取arms数据 arms_class.py ```python from aliyunsdkcore.client import AcsClient from aliyunsdkcore.acs_exception.exceptions import 阅读全文
posted @ 2022-06-07 13:49
蒲公英PGY
阅读(195)
评论(0)
推荐(0)
摘要:
alertmanager.yml ```yaml global: resolve_timeout: 5m # 定义模板信心 templates: - '/prometheus/alertmanager/wechat.tmpl' route: # group_by: ['alertname'] gro 阅读全文
posted @ 2022-06-07 13:43
蒲公英PGY
阅读(230)
评论(0)
推荐(0)
摘要:
kubenetes 官方文档 https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/ system requirement 2C2G k8s基础知识学习 k8s训练营:https:/ 阅读全文
posted @ 2022-06-07 13:36
蒲公英PGY
阅读(287)
评论(0)
推荐(0)
摘要:
calico.yml # Source: calico/templates/calico-config.yaml # This ConfigMap is used to configure a self-hosted Calico installation. kind: ConfigMap apiV 阅读全文
posted @ 2022-06-07 11:36
蒲公英PGY
阅读(149)
评论(0)
推荐(0)
摘要:
deploy.yml apiVersion: v1 kind: Namespace metadata: name: ingress-nginx labels: app.kubernetes.io/name: ingress-nginx app.kubernetes.io/instance: ingr 阅读全文
posted @ 2022-06-07 11:34
蒲公英PGY
阅读(40)
评论(0)
推荐(0)
摘要:
# python操作pgsql备份还原 common.py ```python #!/usr/bin/env python # encoding: utf-8 import argparse dbs = [ "test1", "test2" ] # ct: pgsql容器的名称 ct = "pg" 阅读全文
posted @ 2022-06-07 11:29
蒲公英PGY
阅读(297)
评论(0)
推荐(0)
摘要:
# python使用FastAPI返回简单html页面 ```python # pip install uvicorn prometheus_client # pip install fastapi yaml # uvicorn main:app --reload from fastapi impo 阅读全文
posted @ 2022-06-07 11:16
蒲公英PGY
阅读(1393)
评论(0)
推荐(0)
摘要:
# python 调用dingding的API进行消息发送 使用python的fastapi快速构建后端api接口 ```python # pip install fastapi requests uvicorn from typing import Set from fastapi import 阅读全文
posted @ 2022-06-07 11:11
蒲公英PGY
阅读(336)
评论(0)
推荐(0)
摘要:
python 调用Jenkins的API进行发布 # pip install pyyaml==5.4.1 import json import requests,sys,os,time import requests,sys from requests.auth import HTTPBasicAu 阅读全文
posted @ 2022-06-07 11:05
蒲公英PGY
阅读(294)
评论(0)
推荐(0)
摘要:
- hosts: test remote_user: root gather_facts: false vars: ansible_python_interpreter: /usr/bin/python3 #指定python环境 serial: "50%" #更新比例,或者是具体数量serial:1 阅读全文
posted @ 2022-06-07 10:56
蒲公英PGY
阅读(146)
评论(0)
推荐(0)
摘要:
apiVersion: apps/v1 kind: Deployment metadata: name: deploy-service # deployment名称 namespace: test annotations: kubernetes.io/change-cause: "1.0" # 版本 阅读全文
posted @ 2022-06-07 10:51
蒲公英PGY
阅读(155)
评论(0)
推荐(0)

浙公网安备 33010602011771号