nginx: client_max_body_size 15m; client_body_buffer_size 15m; ingress-nginx: "nginx.ingress.kubernetes.io/client-body-buffer-size": "15m", "nginx.ingress.kubernetes.io/proxy-body-size": "...
Linux
通过conntrack-tools排查连接到Redis最多的kubernetes pod客服端ip对应的服务
yum install conntrack-tools conntrack -L conntrack | grep "192.168.4.131"|awk '{print $5}' | cut -d "=" -f 2 | sort | uniq -c | sort -nr | head -n 10 kubectl get pod --all-namespaces...
docker容器替换镜像源
Debian sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list Alpine sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
GitLAb获取Tag发布信息非Release notes
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 ...
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...
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:~...