helm3 部署prometheus


helm3 部署 prometheus 监控prometheus 架构简介用 helm 来部署 prometheus 来监控我们的 k8s 集群。exporter 是用来收集数据的,要监测不同的东西,就需要有不同的 exporter。比如要监测 mysql,需要创建一个 mysql 的 export

Zabbix 微信报警python脚本


#!/usr/bin/python#_*_coding:utf-8 _*_ import urllib,urllib2import jsonimport sysimport simplejson reload(sys)sys.setdefaultencoding('utf-8') def gett

Prometheus + Grafana


1.全局配置文件官方手册: https://prometheus.io/docs/prometheus/latest/configuration/configuration/2.scrape_configsscrape_config是用来配置Prometheus数据拉取的static_configs

一键部署k8s集群


#!/bin/bash#check md5summd5_clmg=ab25fc92d9156e8c28119b0d66d44f3amd5_cy=88180a7a7abcef317a8e5a99ad4962d6md5_cordns=53834f3808a1a90c8895c15ded5fcdcdmd5

健康性检查


健康性检查使用probe探针配置探测器Probe 有很多配置字段,可以使用这些字段精确的控制存活和就绪检测的行为:initialDelaySeconds:容器启动后要等待多少秒后存活和就绪探测器才被初始化,默认是 0 秒,最小值是 0。periodSeconds:执行探测的时间间隔(单位是秒)。默认

kubernetes集群节点多网卡,calico/flannel组件如何指定网卡


kubernetes集群节点多网卡,calico/flannel组件如何指定网卡今天kubectl top nodes 查看节点状态,发现报错了查看pod状态,发现有个calico状态有问题查看日志发现他是用的是br-6...这张网卡进去calico.yaml发现 # Auto-detect the

监控容器


容器监控cadvisor[root@cka-node1 ~]# docker history hub.c.163.com/xbingo/cadvisor:latest IMAGE CREATED CREATED BY

限制资源


限制容器资源[root@cka-node1 ~]# free -h total used free shared buff/cache availableMem: 1.8G 525M

使用harbor搭建私有仓库


使用registry搭建私有仓库获取yum源wget ftp://ftp.rhce.cc/k8s/* -P /etc/yum.repos.d/拉取镜像[root@registry ~]# docker pull hub.c.163.com/library/registry:latest查看镜像

使用registry搭建私有仓库


使用registry搭建私有仓库获取yum源wget ftp://ftp.rhce.cc/k8s/* -P /etc/yum.repos.d/拉取镜像[root@registry ~]# docker pull hub.c.163.com/library/registry:latest查看镜像