摘要: 25 pod 自动扩展和缩减HPA Horizontal Pod Autoscaling (pod水平自动伸缩)基本原理: HPA监控分析 RC、Deployment 控制的pod的负载变化 来调整副本的数量 监控:CPU负载(Heapster)、自定义监控的负载以容器的方式安装:heapster 阅读全文
posted @ 2019-11-07 20:21 walkersss 阅读(812) 评论(0) 推荐(0) 编辑
摘要: grafana.yaml apiVersion: extensions/v1beta1kind: Deploymentmetadata: name: monitoring-grafana namespace: kube-systemspec: replicas: 1 template: metada 阅读全文
posted @ 2019-11-07 18:00 walkersss 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 以容器的方式安装:heapster influxdb grafana 三个插件:cd heapster/vi heapster.yamlvi influxdb.yamlvi grafana.yamlkubectl create -f .kubectl get pods -n kube-system 阅读全文
posted @ 2019-11-07 17:48 walkersss 阅读(421) 评论(0) 推荐(0) 编辑
摘要: //查看kubernetes-dashboard create -f xxx.yaml 拉取失败的原因:ErrImagePull、ImagePullBackOff kubectl describe pod kubernetes-dashboard-669f9bbd46-dph47kubectl ge 阅读全文
posted @ 2019-11-07 11:46 walkersss 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 22 初始化容器 Init Containerkubectl get pods --all-namespaces -o widessh node01docker ps |grep liveness-execdocker psk8s.gcr.io/pause-amd64.3.1 就是infra容器do 阅读全文
posted @ 2019-11-07 11:42 walkersss 阅读(165) 评论(0) 推荐(0) 编辑