使用 Ansible 时服务文件更改时重启服务
使用template模块创建一个 systemd 服务 - name: Systemd service template: src: sonar.unit.j2...
使用template模块创建一个 systemd 服务 - name: Systemd service template: src: sonar.unit.j2...
1.el-table和右键菜单视图代码 @row-contextmenu="rightClick"是右键点击事件 @row-click=&q...
Echarts笔记1-饼图,自定义tooltip tooltip: { trigger: "item", position: ["...
先贴上初始代码 axisLabel: { textStyle: { color: "#999", //坐标轴字颜色 }, formatter...
tooltip: { trigger: "axis", backgroundColor: "#54AEEC", //设置...
Jenkins API https://www.jenkins.io/doc/book/using/remote-access-api/ https://wik...
基础环境: k8s集群,集群中已经安装prometheus。 第一步:下载监控使用的agent github连接:jmx_exporter wget https...
参数解释 使用Prometheus配置kubernetes环境中Container的CPU使用率时,会经常遇到CPU使用超出100%,下面就来解释一下 cont...
内置变量ansible_version获取到ansible的版本号 ansible web -m debug -a "msg={{ansible_ve...
什么是按条件使用过滤器 条件过滤就是HttpConnectionManager的过滤器可以有条件的执行,比如请求头或响应头是某个值时执行这个过滤器,如果匹配某个...
最新评论
好
好文章
集群节点宕机后无法开启组复制,原因:节点宕机重启后svc默认不添加未就绪的pod,1.24版本在无头svc下添加: annotations: service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" 1.24版本以上添加: 1.24版tolerate-unready-endpointsService 中的注解,改用Service.spec.publishNotReadyAddresses
在使用try_files的时候,能不能根据URI计算MD5访问文件啊,找了很久没找到相关的文章。
post { always { script{ if (currentBuild.currentResult == "ABORTED" || currentBuild.currentResult == "FAILURE" || currentBuild.currentResult == "UNSTABLE" ){ slackSend channel: "#机器人", message: "Build failure: ${env.JOB_NAME} -- No: ${env.BUILD_NUMBER}, please check detail in email!" } else { slackSend channel: "#机器人", message: "Build Success: ${env.JOB_NAME} -- Build No: ${env.BUILD_NUMBER}, please check on http://www.yourwebsite.com" } } } }
根据 pipeline 或阶段的完成状态,post 部分分成多种条件块,包括: • always:不论当前完成状态是什么,都执行。 • changed:只要当前完成状态与上一次完成状态不同就执行。 • fixed:上一次完成状态为失败或不稳定(unstable),当前完成状态为成功时执行。 • regression:上一次完成状态为成功,当前完成状态为失败、不稳定或中止(aborted)时执行。 • aborted:当前执行结果是中止状态时(一般为人为中止)执行。 • failure:当前完成状态为失败时执行。 • success:当前完成状态为成功时执行。 • unstable:当前完成状态为不稳定时执行。 • cleanup:清理条件块。不论当前完成状态是什么,在其他所有条件块执行完成后都执行。post部分可以同时包含多种条件块。