7.容器的基本监控
Previous[6.k8s基础网络Cluster Network](编程学习/部署运维虚拟化/Kubernetes/6.k8s基础网络Cluster Network.md)Next8.4Label-小标签大作为
Last updated
Was this helpful?
Last updated
Was this helpful?
容器中运行的进程:docker top
容器的系统占用状态:docker stats
图形化监控工具——weavescope
scope lauch 192.168.99
wrk -t12 -c 400 -d30s http://192.168.
kubectl run php-apache --image=k8s.gcr.ip/hpa-example --requests=cpu=100m --expose --port=80
kubectl autoscale deployment php-apache --cpu-percent=50 --min=1 --max=10
获取水平扩展:kubectl ger horizontalpodautoscaler
while true;do wget -q -o-
ELK Stack(ElasticSearch+Logstash+Kibana)
hosted log服务
Fluentd(log转发)
ElasticSearch(log Index)
Kibana(log可视化)
LogTrail(log UI查看)
为所有节点打lable(Fluentd需要):kubectl label node --all beta.kubernetes.io/fluentd-ds-ready=true
创建logging目录下的所有资源:kubectl create -f logging/
在kubernetes/kubernetes源码的cluster/fluentd-elasticsearch目录中可以找到Log采集和展示需要的yaml文件(es,fluentd,kibana)
pull方式