jenkins pipeline构建发布之后发送发布信息到群通知机器人。提供git commit效果不是很好,最终通过Tag完成 获取TagMessage 非Release notes。如果获取Release notes可以通过API获取 git cat-file ...
hey压测工具安装
root@golan-hey-5f55dcc898-fl7bx:/go# go env -w GO111MODULE=on root@golan-hey-5f55dcc898-fl7bx:/go# go env -w GOPROXY=https://goproxy.cn,direct root@golan-hey-5f55dcc898-fl7bx:/go# go get -u githu...
docker build –build-arg 环境变量不生效的坑
A镜像使用了ARG,B镜像FROM A镜像的前提条件下: A: cat Dockerfile FROM busybox FROM busybox:v12 ARG APP_ENV ENV APP_ENVr=${APP_ENV} docker build -t busybox:v1 --build-arg APP_agr=sit1 ...
ELK日志平台索引备份,迁移及恢复 ELK7.5.1集群部署
从6.7或更早版本直接升级到7.5.1需要 完全重启群集。 创建快照备份索引.kibana https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html 1、修改elasticsear...
Elasticsearch忘记密码重置
误删.sercurty索引 或者忘记密码 创建一个基于本地认证的超级管理员 以下示例将一个新用户添加my_user 。该用户的密码为my_user ,并且该用户与superuserg角色 bin/elasticsearch-users useradd my_...
使用 reindex 来修改 elasticsearch 索引mapping
elasticsearch 在创建好index之后mapping是不能动态修改,如果需要改动只能通过新增字段或者reindex api 来迁移数据,创建新的索引 。 没有通过动态模板来为这个字段指定类型, elasticsearch 默认将这种结构的数...
jenkins pipeline通过Image Tag Parameter插件获取Harbor镜像作为参数
插件 Image Tag Parameter 通过docker镜像实现pipeline回滚 node{ ..... if ("${env.DEPLOY_FLAG}" == 'Deploy'){ ........ } if ("${DEPLOY_FLAG}" == 'Rollback'){ withKubeCo...
jenkins pipeline新增代码覆盖率检查
插件:Cobertura Plugin example //Stage 2 : 单元测试 stage('Test'){ container('py3') { //sh ("python run_unittest.py") sh label: '', script: 'pylint ./servers/ -rn --msg-templa...
istio通过Fluentd收集日志
istio 支持自定义日志格式,并将统一收集到指定位置。这一步操作和 指标采集 类似,通过 instance、handler 和 route 三个 CRD 设置。 logging-stack.yaml # Logging 命名空间。下面的资源都是这个...
GitLab 配置 Let’s Encrypt 颁发的 SSL免费证书
参考: https://certbot.eff.org/docs/ h 安装 Let's Encrypt 客户端 root@iZbp1gzimbaykc3ahbss48Z:~# git clone https://github.com/certbot/certbot 申请ssl证书 root@iZbp1gzimbaykc3ahbss48Z:~...