2021年9月10日

elk收集docker容器的json格式日志

摘要: 参考链接:https://www.cnblogs.com/William-Guozi/p/elk-docker.html 阅读全文

posted @ 2021-09-10 14:55 一直用这名字 阅读(93) 评论(0) 推荐(0) 编辑

2021年9月8日

Nginx配置中的location、root、alias

摘要: Nginx配置中的location、root、alias location & root 初始配置 [root@adailinux vhost]# cat rio.conf server { listen 80; server_name rio.com; location /r/ { root /d 阅读全文

posted @ 2021-09-08 16:34 一直用这名字 阅读(1194) 评论(0) 推荐(0) 编辑

2021年8月12日

prometheus-operator监控k8s资源

摘要: 使用helm3安装prometheus-operator 部署后,prometheus不能正确监控etcd跟proxy,etcd需要配置成https-metrics并且需要将etcd的ca挂载进prometheus容器 参考:https://www.cnblogs.com/lvcisco/p/125 阅读全文

posted @ 2021-08-12 11:07 一直用这名字 阅读(110) 评论(0) 推荐(0) 编辑

2021年8月5日

fluentd收集k8s集群pod日志

摘要: 方案: 使用fluentd部署在每个node节点上,通过配置node节点的标签可选择daemonset-fluentd部署在选定的node节点上 通过在每个pod打上logging:true标签,结合fluentd的containers.input.conf可以有选择的匹配想要过滤的pod日志,从而 阅读全文

posted @ 2021-08-05 14:38 一直用这名字 阅读(3369) 评论(0) 推荐(0) 编辑

2021年7月26日

kvm

摘要: 宿主机:ubuntu20.04 安装kvm,参考:https://zhuanlan.zhihu.com/p/349878449 kvm启动ubuntu虚拟器: $ cat ./kvm_install.sh #!/bin/bash virt-install --name u1604 --memory 阅读全文

posted @ 2021-07-26 15:48 一直用这名字 阅读(149) 评论(0) 推荐(0) 编辑

2021年5月20日

k8s配置storage-class

摘要: 安装nfs服务器 dnf install nfs-utils 启动nfs-server systemctl start nfs-server && systemctl enable nfs-server 创建共享目录 mkdir /data 配置共享目录 vi /etc/exports /data 阅读全文

posted @ 2021-05-20 17:07 一直用这名字 阅读(3971) 评论(0) 推荐(0) 编辑

2021年5月18日

vmware共享文件夹

摘要: 参考链接,配置好共享文件夹,https://jingyan.baidu.com/article/335530dac167c219cb41c3fc.html 执行/usr/bin/vmhgfs-fuse .host:/ centos挂载路径 阅读全文

posted @ 2021-05-18 18:00 一直用这名字 阅读(56) 评论(0) 推荐(0) 编辑

kubeadmin配置高可用k8s集群

摘要: 参考链接:https://www.cnblogs.com/lfl17718347843/p/13417304.html kubeadm-config.yaml文件中的imageRepository: k8s.gcr.io修改成registry.cn-hangzhou.aliyuncs.com/goo 阅读全文

posted @ 2021-05-18 11:18 一直用这名字 阅读(291) 评论(0) 推荐(0) 编辑

2021年4月30日

docker-compose

摘要: docker-compose up -d 作用是创建与启动容器,会重建有变化的服务器(删掉以前建立的容器)docker-compose up -d --no-create 如果存在与yaml中描述的容器就会直接启动,不会重建stop start retart只是针对已存在容器的操作。 阅读全文

posted @ 2021-04-30 14:40 一直用这名字 阅读(212) 评论(0) 推荐(0) 编辑

2021年4月22日

elasticsearch配置ik分词器

摘要: es集群,三台,每台都得安装ik插件,重启,先重启Node节点,最后重启master节点 ik分词器的github地址:https://github.com/medcl/elasticsearch-analysis-ik 选择与es集群版本对应的ik版本,下载zip包 在es的plugins目录下新 阅读全文

posted @ 2021-04-22 16:10 一直用这名字 阅读(931) 评论(0) 推荐(0) 编辑

导航