上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: 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 阅读(1394) 评论(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)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页