当前位置: 首页 > news >正文

112. Rancher v2.x Windows 日志收集脚本

Environment 环境

Rancher 2.x 牧场主 2.x

Windows worker nodes Windows 工作节点

Note: the collector refers to docker and RKE usage which are both deprecated.
注意:收集器指的是 docker 和 RKE 的使用,这两者都已被弃用。

Situation 地理位置
Collecting logs from a Rancher 2.x cluster with Windows worker nodes using the Rancher v2.x Windows worker node log collection script.
使用 Rancher v2.x Windows 工作节点日志收集脚本,从带有 Windows 工作节点的集群中收集日志。
N.B. The script needs to be downloaded and run directly on a Windows worker node using a Powershell session with Administrator Privileges.
注意:脚本需要下载,并通过带有管理员权限的 Powershell 会话直接在 Windows 工作节点上运行。

Resolution 结局

To run the script, open a new Powershell window with Administrator Privileges and run the following command:
要运行脚本,请用管理员权限打开一个新的 Powershell 窗口,并执行以下命令:

Set-ExecutionPolicy Bypass -Scope Process -Force iwr -useb https://raw.githubusercontent.com/rancherlabs/support-tools/master/collection/rancher/v2.x/windows-log-collector/win-log-collect.ps1 -OutFile win-log-collect.ps1 & .\win-log-collect.ps1

Upon successful completion, the log bundle will be written to the root of the C:\ drive in a file namedrancher_<hostname>_<datetime>.tar.gz.
成功完成后,日志包将写入 C:\ 驱动器根节点,文件名为rancher_<hostname>_<datetime>.tar.gz

Cause 病因
Additional Information 附加信息
See here for readme: 这里有阅读说明:
https://github.com/rancherlabs/support-tools/tree/master/collection/rancher/v2.x/windows-log-collector

访问Rancher-K8S解决方案博主,企业合作伙伴 :
https://blog.csdn.net/lidw2009

http://www.jsqmd.com/news/577437/

相关文章:

  • 本土化突围:Gitee如何重新定义企业级项目管理工具价值
  • 3个维度解锁SillyTavern:打造专属AI对话体验的全攻略
  • HarmonyOS 5.0实战:基于Promise与拦截器构建企业级网络请求库
  • PX4开发环境一站式配置:源码、QGroundControl、MAVROS与ROS Melodic联调全记录
  • 用“目标→策略→动作→标准”四步法,把挂在墙上的目标,变成落在地上的结果
  • ESP32远程OTA升级踩坑实录:HTTPS证书处理、固件链接失效与阿里云配置的那些‘坑’(附避坑代码)
  • 115. OOM(内存不足),高内存消耗,基本故障排除步骤
  • 5大核心功能解析:GHelper轻量替代方案如何优化华硕笔记本性能
  • Mac上IntelliJ IDEA 2024.1.1启动报错?手把手教你删除-javaagent修复(附详细路径)
  • 知网AIGC检测算法2026年更新了什么这样降AI才有效
  • 收藏备用!小白程序员必看:从基础到进阶,彻底吃透Prompt与提示工程
  • Debian 12.0 + Nginx + Let’s Encrypt:5分钟搞定HTTPS配置(含自动续期)
  • 给技术人的另类书单:从《纳瓦尔宝典》的‘代码杠杆’谈到工程师的财富与幸福实践
  • 全球与中国边缘保护系统市场现状洞察与未来走向研判
  • 46397
  • 离线应急方案:OpenClaw断开网络时调用本地Qwen3-4B继续工作
  • 【电路】从零开始掌握大学电路核心定律与分析方法
  • 茉莉花插件:5分钟快速上手Zotero中文文献智能管理终极指南
  • 跨平台性能监控实战:从本地到服务器的全面指南
  • RTX 4090专属优化:造相-Z-Image防爆显存+BF16高精度实战解析
  • 【嵌入式实战】环形缓冲区在数据流处理中的核心应用与避坑指南
  • 保姆级教程:在Windows 10/11上搞定Carsim 2019.0安装与破解(含防火墙关闭和许可文件配置)
  • SEO优化教程网推广技巧有哪些
  • Windows 11 24H2 LTSC 微软商店部署指南:从原理到实践
  • 从零构建STM32F429智能控制终端:基于TouchGFX GUI与FreeRTOS的多任务IO调度实践
  • 告别编译报错!Ubuntu 22.04 LTS下x264库的保姆级安装指南(含configure参数详解)
  • FPGA项目实战:如何用PWM波同时搞定电机和舵机?Ego1避障小车中的双PWM控制核心解析
  • Qwen3-14B大模型落地实践:中小企业私有AI助手部署完整流程
  • 告别Permission denied!5分钟搞定GitHub多账号SSH密钥配置(含可视化操作指南)
  • 安卓逆向实战:Frida检测绕过与反制策略全解析