上一页 1 2 3 4 5 6 ··· 21 下一页
摘要: 需求: 删除es 中指定IP 相关的数据 (remoteAddr: ip) 日志格式 fields.product:wantwords_zxxxx_feature @timestamp:Oct 12, 2023 @ 18:56:39.000 date_timeLocal:12/Oct/2023:18 阅读全文
posted @ 2023-10-12 18:59 lixinliang 阅读(122) 评论(0) 推荐(0) 编辑
摘要: ### 会话保持模式 - 基于客户端地址的会话保持模式,即来自同一个客户端发起的所有请求都会转发到固定的一个Pod上。此模式可以使在spec中添加sessionAffinity:ClientIP配置 ``` # service 中增加 sessionAffinity: ClientIP ; 默认 s 阅读全文
posted @ 2023-08-30 10:23 lixinliang 阅读(261) 评论(0) 推荐(0) 编辑
摘要: ### crictl和ctr的用法 ``` crictl是遵循CRI接口规范的一个命令行工具,通常用它来检查和管理kubelet节点上的容器运行时和镜像 ctr是containerd的一个客户端工具, 接下来就是crictl的的常见命令,其中能完全替代docker命令的参照下列表格 操作 crict 阅读全文
posted @ 2023-08-25 14:10 lixinliang 阅读(276) 评论(0) 推荐(0) 编辑
摘要: ### filebeat 配置nginx 日志采集 - filebeat 采集需求 ``` 1.需要将以往30 天的日志输出到es,并且以时间按天展示 2.将不同的时间字段解析出来,输出到es ``` - nginx 配置json 日志 ``` log_format log_json '{ "rem 阅读全文
posted @ 2023-08-24 21:03 lixinliang 阅读(428) 评论(0) 推荐(0) 编辑
摘要: ### 防止恶意ip绑定至服务器公网ip地址 ``` server { listen 80 default; listen 8088 default; server_name _; return 403; } ``` 阅读全文
posted @ 2023-08-22 12:12 lixinliang 阅读(45) 评论(0) 推荐(0) 编辑
摘要: ### 场景需求 ``` node 节点上不允许有两个一样的pod,即每个节点上每个应用仅仅允许一个pod 运行 ``` - 测试yaml ``` [root@k8sNode0 podqinhexing]# cat test.yaml apiVersion: apps/v1 kind: Deploy 阅读全文
posted @ 2023-08-21 20:44 lixinliang 阅读(64) 评论(0) 推荐(0) 编辑
摘要: ### 迁移记录 - 需求 ``` A账号和B账号是不同的阿里云认证主体,要求A账号下的资源要迁移到B 账号下,方便统一管理。 A账号资源vpc: 10.0.0.0/8 B账号资源vpc: 172.16.0.0/12 A账号和B账号已做了vpc对等连接。 ``` - 操作步骤 ``` 1.A账号: 阅读全文
posted @ 2023-08-18 20:27 lixinliang 阅读(113) 评论(0) 推荐(0) 编辑
摘要: ### 准备基本环境 服务器node1(10.0.3.1)|服务器node2(10.0.3.2)|服务器node3(10.0.3.3) --|:--:|:-- mongos 20000 | mongos 20000 | mongos 20000 config server 21000 |config 阅读全文
posted @ 2023-08-05 17:32 lixinliang 阅读(131) 评论(0) 推荐(0) 编辑
摘要: ### 准备基本环境 名称|ip地址|cpu|内存|es监听端口 --|:--:|:--|:--|:-- redis-651|10.0.2.1|8c|64G|9200 redis-652|10.0.2.2|8c|64G|9200 redis-653|10.0.2.3|8c|64G|9200 ### 阅读全文
posted @ 2023-08-01 21:59 lixinliang 阅读(219) 评论(0) 推荐(0) 编辑
摘要: - elastcisearch 生命周期策略 ``` PUT _ilm/policy/deeplang-logger-policy { "policy" : { "phases" : { "warm" : { "min_age" : "7d", "actions" : { "allocate" : 阅读全文
posted @ 2023-07-20 13:19 lixinliang 阅读(161) 评论(1) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 21 下一页