05 2023 档案

摘要:ansible_os_family CentOS - name: Gather facts and filter CentOS hosts hosts: os_version gather_facts: true tasks: - name: Check CentOS hosts assert: t 阅读全文
posted @ 2023-05-28 02:15 MacoPlus 阅读(5) 评论(0) 推荐(0) 编辑
摘要:脚本内容 删除脚本 while IFS= read -r ip; do echo -e "\e[1;32m$ip\e[0m" && sed -i "/$ip/d" node; done < a 校验脚本 while IFS= read -r ip; do if grep -q "$ip" node; 阅读全文
posted @ 2023-05-27 23:23 MacoPlus 阅读(16) 评论(0) 推荐(0) 编辑
摘要:事件查看 查看事件并输出资源类型名称 kubectl get events -A -o=jsonpath='{range .items[*]}{.involvedObject.namespace} {.involvedObject.name} {.involvedObject.kind} {.sou 阅读全文
posted @ 2023-05-20 17:48 MacoPlus 阅读(137) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示