摘要:
自动水平伸缩,是指运行在k8s上的应用负载(POD),可以根据资源使用率进行自动扩容、缩容,它依赖metrics-server服务pod使用资源指标收集;我们知道应用的资源使用率通常都有高峰和低谷,所以k8s的HPA特性应运而生;它也是最能体现区别于传统运维的优势之一,不仅能够弹性伸缩,而且完全自动 阅读全文
摘要:
k8s Dashboard Github 主页: https://github.com/kubernetes/dashboard Dashboard 资源清单: https://github.com/kubernetes/dashboard/tree/v1.10.0/src/deploy/recom 阅读全文
摘要:
Traefik官网(默认V2.0版本): https://traefik.io/ 官方手册(v1.7版本): https://doc.traefik.io/traefik/v1.7/ Github地址(v1.7版本): https://github.com/traefik/traefik/relea 阅读全文
摘要:
1.创建deployment kubectl create -f nginx-deployment.yaml 2.查看deployment kubectl get deployment 3.查看Pod kubectl get pod -o wide 4.测试Pod访问 curl --head 10. 阅读全文
摘要:
1.1 ) 保证系统安装了 sendmail: 1.1.1 ) yum install sendmail -y 1.1.2 ) echo 'test' | mail -s '主题' XXXX@qq.com 1.2 ) 下载altermanager: cd /data/src wget https:/ 阅读全文
摘要:
服务发现方式: #Prometheus数据源的配置主要分为静态配置和动态发现, 常用的为以下几类: static_configs: #静态服务发现 file_sd_configs: #文件服务发现 dns_sd_configs: DNS #服务发现 kubernetes_sd_configs: #K 阅读全文
摘要:
。。。。。。 略过Prometheus的安装 1 ) 基于文件的服务发现是仅仅略优于静态配置的服务发现方式, 它不依赖于任何平台或者第三方服务, 因为也是最为简单和通用的方式. 1.1 文件使用Json和YAML 格式,它含有定义的Target列表,以及可选的标签信息. 1.2 下面第一个配置,能够 阅读全文
摘要:
1 ) 下载 mysqld_exporter : wget https://github.com/prometheus/mysqld_exporter/releases/download/v0.12.1/mysqld_exporter-0.12.1.linux-amd64.tar.gz tar -z 阅读全文
摘要:
1 ) Prometheus Server 端安装 # 1.1 ) Promethrus Server 端下载: cd /data/src/ wget https://github.com/prometheus/prometheus/releases/download/v2.23.0/prometh 阅读全文
摘要:
Prometheus 监控Redis需要用到redis_exporter客户端, Prometheus → redis_exporter这个模式, 类似监控Mysql 一个思路. 1 ) 设置系统代理,golang有可能被墙,导致编译失败. # Enable the go modules featu 阅读全文