上一页 1 2 3 4 5 6 7 8 9 10 ··· 64 下一页
摘要: 一、背景 好多业务容器做了裁剪,没法进行基本的调试,所以需要启动一个单独的集成很多排错工具的镜像 二、现有方案 https://hub.docker.com/r/nicolaka/netshoot (1)k8s ❯ kubectl -n prod run tmp-debug --rm -i --tt 阅读全文
posted @ 2023-01-12 18:34 arun_yh 阅读(30) 评论(0) 推荐(0)
摘要: 有状态服务的存储状态 下面我们来继续探究StatefulSet对存储状态的管理机制,在前面我们创建Pod需要使用存储的时候,只需要在资源文件中添加spec.volumes字段声明使用volume就可以,比如设置为hostpath或者emptyDir 。但实际环境中开发人员并不清楚我们那些Volume 阅读全文
posted @ 2023-01-11 21:09 arun_yh 阅读(332) 评论(0) 推荐(0)
摘要: 简介:es之索引别名的使⽤ 别名有什么用 在开发中,随着业务需求的迭代,较⽼的业务逻辑就要⾯临更新甚⾄是重构,⽽对于es来说,为了适应新的业务逻辑,可能就要对原有的索引做⼀些修改,⽐如对某些字段做调整,甚⾄是重建索引。⽽做这些操作的时候,可能会对业务造成影响,甚⾄是停机调整等问题。由此,es提供了索 阅读全文
posted @ 2023-01-05 23:33 arun_yh 阅读(117) 评论(0) 推荐(0)
摘要: 一、安装haproxy sudo add-apt-repository ppa:vbernat/haproxy-2.6 -y sudo apt install haproxy -y sudo systemctl status haproxy sudo systemctl enable haproxy 阅读全文
posted @ 2023-01-03 12:09 arun_yh 阅读(95) 评论(0) 推荐(0)
摘要: 一、背景 如二、描述所示pods频繁地重启,导致听云的探针收集规则文件占用大量的空间,需要查询"063915dd-c5b8-4137-9e9c-119488992b56"对应的是哪个pod 听云data下存储的探针收集规则: 二、 (1)对应pod查询 kubectl get po -A -o js 阅读全文
posted @ 2022-12-22 21:48 arun_yh 阅读(280) 评论(0) 推荐(0)
摘要: 零、快速解决ops无法登录问题 chage -M -1 ops && chage -M 90 ops tr -dc '@A-Za-z0-9%_' </dev/urandom | head -c 15 > /tmp/testpass echo ops:`cat /tmp/testpass` | chp 阅读全文
posted @ 2022-12-20 22:52 arun_yh 阅读(65) 评论(0) 推荐(0)
摘要: 一、Shell中将分隔符的字符串转为数组的常用方法 [root@host ~]# str="ONE,TWO,THREE,FOUR" [root@host ~]# arr=(`echo $str | tr ',' ' '`) [root@host ~]# echo ${arr[@]} ONE TWO 阅读全文
posted @ 2022-12-01 10:46 arun_yh 阅读(372) 评论(0) 推荐(0)
摘要: 一、 docker search portainer NAME DESCRIPTION STARS OFFICIAL AUTOMATED portainer/portainer This Repo is now deprecated, use portainer/p… 2303 docker run 阅读全文
posted @ 2022-11-30 11:07 arun_yh 阅读(75) 评论(0) 推荐(0)
摘要: 写在之前 prometheus 配置文件大体框架有以下几个部分: data: prometheus.yml: | # rule_files: - etc/prometheus/rules.yml alerting: alertmanagers: - static_configs: - targets 阅读全文
posted @ 2022-11-28 21:12 arun_yh 阅读(1197) 评论(0) 推荐(0)
摘要: Prometheus 从数据源拉取数据后,会对原始数据进行编辑 其中 ​​metric_relabel_configs​​​是 Prometheus 在保存数据前的最后一步标签重新编辑(relabel_configs)。所以,哪怕你将 ​​metric_relabel_configs​​​模块放在  阅读全文
posted @ 2022-11-28 19:08 arun_yh 阅读(1286) 评论(1) 推荐(2)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 64 下一页