摘要: 目标:导出所有helm values.yaml,chart信息,namespace,输入大restore.sh脚本当中,然后执行restore.sh脚本,部署到另外一个k8s,实现快速灾难恢复 #!/bin/bash # 导出指定关键字的 helm release 配置 NAMESPACE_LIST 阅读全文
posted @ 2025-10-14 16:20 力王7314 阅读(8) 评论(0) 推荐(0)
摘要: 编辑 /etc/gitlab/gitlab.rb 文件 external_url 'http://192.168.60.118' registry_external_url 'http://192.168.60.118:5005' gitlab_rails['registry_enabled'] = 阅读全文
posted @ 2025-10-10 16:22 力王7314 阅读(5) 评论(0) 推荐(0)
摘要: falco是CNCF的项目,可以审计k8s容器下发生的动作,包括命令,进程等 部署: values.yaml文件内容如下: customRules: rulescustom.yaml: |- - macro: container condition: container.id != host - r 阅读全文
posted @ 2025-07-25 14:53 力王7314 阅读(38) 评论(0) 推荐(0)
摘要: 把命令放置到aa.txt文件中 #!/bin/bash # 定义命令文件和错误日志 command_file="aa.txt" error_log="curl_errors.log" # 清空或创建错误日志 echo "错误报告 - $(date)" > $error_log # 记录总命令数和失败 阅读全文
posted @ 2025-03-05 17:41 力王7314 阅读(19) 评论(0) 推荐(0)
摘要: 1.编辑prometheus的configmap文件 kubectl edit cm prometheus-1738826520-server 2.添加如下红色字体 apiVersion: v1 data: alerting_rules.yml: |- groups: - name: deploym 阅读全文
posted @ 2025-02-11 15:36 力王7314 阅读(36) 评论(0) 推荐(0)
摘要: #runner安装 yum -y install docker systemctl restart docker wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/ 阅读全文
posted @ 2024-11-20 18:10 力王7314 阅读(20) 评论(0) 推荐(0)
摘要: version: '3' services: apollo-configservice: image: apolloconfig/apollo-configservice:2.2.0 container_name: apollo-configservice restart: always netwo 阅读全文
posted @ 2024-07-23 14:07 力王7314 阅读(76) 评论(0) 推荐(0)
摘要: [root@ip-10-32-49-66 ~]# cat rocketmq.yaml version: '3.8' services: # RocketMQ Nameserver namesrv: image: apache/rocketmq:4.7.1 container_name: rmqnam 阅读全文
posted @ 2024-07-23 11:26 力王7314 阅读(16) 评论(0) 推荐(0)
摘要: 背景:elasticsearch7需要开启https才可以创建报警,因此就需要搭建https的elasticsearch 参考官方网站:https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-elasticsearch.html 阅读全文
posted @ 2024-04-30 11:43 力王7314 阅读(461) 评论(0) 推荐(0)
摘要: 具体实现方式 第一步,安装istio,这里省略 第二步,查看istio的访问地址 [ec2-user@io-jumpserver ~]$ kubectl -n istio-system get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE isti 阅读全文
posted @ 2024-04-24 15:44 力王7314 阅读(19) 评论(0) 推荐(0)