2018年8月3日
摘要: 1.kubectl get namespace annoying-namespace-to-delete -o json > tmp.jsonthen edit tmp.json and remove"kubernetes" curl -k -H "Content-Type: application 阅读全文
posted @ 2018-08-03 18:15 九重霄 阅读(582) 评论(0) 推荐(0) 编辑
  2018年8月1日
摘要: 解压 tar –xvf file.tar //解压 tar包 tar -xzvf file.tar.gz //解压tar.gz tar -xjvf file.tar.bz2 //解压 tar.bz2tar –xZvf file.tar.Z //解压tar.Z 总结 1、*.tar 用 tar –xv 阅读全文
posted @ 2018-08-01 10:27 九重霄 阅读(129) 评论(0) 推荐(0) 编辑
  2018年7月2日
摘要: grafana-dashboard-json prometheus-operator helm 中的grafana dashboard 扩展的时候,需要转换下载(https://grafana.com/dashboards?dataSource=prometheus)的json文件 注意:json 阅读全文
posted @ 2018-07-02 11:20 九重霄 阅读(531) 评论(0) 推荐(0) 编辑
  2018年6月25日
摘要: 在CentOS 7开始使用的systemd使用了journal日志,这个日志的管理方式和以往使用syslog的方式不同,可以通过管理工具维护。 使用df -h检查磁盘文件,可以看到/run目录下有日志目录/run/log/journal,占用了数G空间 在日志目录下有很多历史累积的日志。 检查当前j 阅读全文
posted @ 2018-06-25 09:57 九重霄 阅读(24207) 评论(0) 推荐(2) 编辑
  2018年6月14日
摘要: 1.临时性: export PATH=$PATH:/root/go/binexport PATH=$PATH:/data/tools/jsonnet 2.永久性: vi /etc/profile 在最后添加 export PATH=$PATH:/root/go/binexport PATH=$PAT 阅读全文
posted @ 2018-06-14 09:40 九重霄 阅读(139) 评论(0) 推荐(0) 编辑
  2018年6月13日
摘要: k8s addon中prometheus为测试事例,官方推荐生产环境使用Prometheus Operator and kube-prometheus. 1.clone 源码 git clone https://github.com/coreos/prometheus-operator.git 2. 阅读全文
posted @ 2018-06-13 09:59 九重霄 阅读(570) 评论(0) 推荐(0) 编辑
  2018年6月12日
摘要: Linux如何查看端口 1、lsof -i:端口号 用于查看某一端口的占用情况,比如查看8000端口使用情况,lsof -i:8000 可以看到8000端口已经被轻量级文件系统转发服务lwfs占用 2、netstat -tunlp |grep 端口号,用于查看指定的端口号的进程情况,如查看8000端 阅读全文
posted @ 2018-06-12 17:29 九重霄 阅读(700) 评论(0) 推荐(0) 编辑
  2018年6月7日
摘要: CentOS 6及以前 $ free total used free shared buffers cached Mem: 4040360 4012200 28160 0 176628 3571348 -/+ buffers/cache: 264224 3776136 Swap: 4200956 1 阅读全文
posted @ 2018-06-07 19:05 九重霄 阅读(588) 评论(0) 推荐(0) 编辑
摘要: 进程使用的总的内存 M ps aux | awk '{sum+=$6} END {print sum / 1024}' 进程使用的内存的详情 ps aux --sort -rss free shows more memory used than top process total See also  阅读全文
posted @ 2018-06-07 18:38 九重霄 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 可以通过在启动时使用--graph参数来指定存储路径。 或者使用systemd来管理服务, 就在/lib/systemd/system/docker.service中修改这一行: 1.ExecStart=/usr/bin/dockerd --graph=/ultrapower/docker 2.sy 阅读全文
posted @ 2018-06-07 14:41 九重霄 阅读(223) 评论(0) 推荐(0) 编辑