摘要: Haproxy 安装配置 官方文档参考https://docs.haproxy.org/ 四层的haproxy不支持把客户端真实的IP地址传到后端服务器。 1、安装 1.1 二进制编译安装。 https://github.com/haproxy/haproxy/releases/tag/v2.8.0 阅读全文
posted @ 2024-05-14 11:18 Gshelldon 阅读(1) 评论(0) 推荐(0) 编辑
摘要: redis 生产哨兵的测试 1、helm release的版本 helm repo add bitnami https://charts.bitnami.com/bitnami helm pull bitnami/redis --version 18.2.2 sentinel-redis]# ls 阅读全文
posted @ 2024-04-18 10:10 Gshelldon 阅读(6) 评论(0) 推荐(0) 编辑
摘要: helm 安装redis的主从、哨兵 主要的配置还是得看helm values中的注释说明 安装库 $ helm repo add bitnami https://charts.bitnami.com/bitnami # 查询redis资源 $ helm repo update $ helm sea 阅读全文
posted @ 2024-03-15 21:53 Gshelldon 阅读(56) 评论(0) 推荐(0) 编辑
摘要: ingress 注释常用功能总结 --annotations-prefix # 特定于 NGINX 控制器的入口注释的前缀。(默认“nginx.ingress.kubernetes.io”) 1、域名重定向 这个配置会把www.kailinhr.com跳转到www.zhuoliehr.com。 # 阅读全文
posted @ 2024-03-12 11:54 Gshelldon 阅读(37) 评论(0) 推荐(0) 编辑
摘要: systemctl disable myservice.service systemctl stop myservice.service systemctl status myservice.service rm -fr /usr/lib/systemd/system/myservice.servi 阅读全文
posted @ 2024-03-08 10:37 Gshelldon 阅读(43) 评论(0) 推荐(0) 编辑
摘要: # mysql 迁移 docker run -d --name=mysql \ -e TZ=Asia/Shanghai \ -e MYSQL_ROOT_PASSWORD=qwer1234 \ -p 3306:3306 \ -v /opt/mysql:/var/lib/mysql \ mysql:5. 阅读全文
posted @ 2024-02-27 17:05 Gshelldon 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 关闭了持久化,和对客户端的链接进行了简单的调优,使用的是本地存储。 redis.conf: |- dir /tmp #appendonly yes #appendfsync everysec #auto-aof-rewrite-percentage 100 #auto-aof-rewrite-min 阅读全文
posted @ 2024-02-27 17:01 Gshelldon 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、下载官方yaml 做简单的修改把安装的命名空间放在kube-system中。 修改默认存储的path路径为:/data/local-path-sc。 wget https://raw.githubusercontent.com/rancher/local-path-provisioner/mas 阅读全文
posted @ 2024-02-26 12:28 Gshelldon 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 文章目录 目录文章目录一、创建 Namespace二、创建 ServiceAccount三、创建 Namespace 的 RBAC 权限1、方式一:使用系统提供角色分配 Namespace 权限2、方式二:使用自定义角色分配 Namespace 权限四、解决登录 Dashboard 不能选择 Nam 阅读全文
posted @ 2024-02-01 16:36 Gshelldon 阅读(15) 评论(0) 推荐(0) 编辑
摘要: systemd 管理node_exporter https://prometheus.io/download/#node_exporter wget https://github.com/prometheus/node_exporter/releases/download/v1.7.0/node_e 阅读全文
posted @ 2024-01-29 10:26 Gshelldon 阅读(34) 评论(0) 推荐(0) 编辑