运维知识库-BigHead
  • 首页
  • 电子书-知识库老版本
  • VIP视频免费看
  • 联系作者
  • 随笔
https://github.com/yongxiaodong
Jenkins

Jenkins pipeline添加自动获取分支案例

在jenkins构建时,自动从git获取所有的分支名,并显示出来供用户选择过滤 效果图: pipeline代码示例 pipeline { agent any options { buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '15', numToKeepStr: '15') } parameters { string defaultValue: 'https://gitlab…

2021年02月26日 0条评论 3983点热度 3人点赞 阅读全文
K8S

Endpoint建立

如将 以下3个IP的外部elasticsearch做成service名称,提供给pod内应用配置文件使用 - ip: 192.168.12.200 - ip: 192.168.12.201 - ip: 192.168.12.202 apiVersion: v1 kind: Endpoints metadata: name: external-elasticsearch namespace: default subsets: - addresses: - ip: 192.168.12.200 - ip: 192.16…

2021年02月19日 0条评论 1236点热度 0人点赞 阅读全文
ELK

EFK收集K8S和Nginx日志并完成日志分析

效果 入口层日志数据分析 自动索引拆分 filebeat的yaml的文件 采用daemonset方式部署 multiline通过正则对多行日志识别合并 index使用pod的labels来独立index,需要提前给每个deloyment的添加labels,用于自动拆分Index --- apiVersion: v1 kind: ConfigMap metadata: name: filebeat-config namespace: logging labels: k8s-app: filebeat data: fi…

2021年02月06日 0条评论 3665点热度 3人点赞 阅读全文
文章归档
  • 2022年7月
  • 2021年6月
  • 2021年4月
  • 2021年3月
  • 2021年2月
  • 2020年8月
  • 2020年7月
分类目录
  • ELK
  • Jenkins
  • K8S
  • Nginx
  • Openvpn
  • Python
  • 小技能
  • 未分类

COPYRIGHT © 2020 运维知识库-BigHead. ALL RIGHTS RESERVED.

蜀ICP备16012425号