### Import SSH Private Key (Manual Input Example) Source: https://chaterm.cn/docs/manage/keys Demonstrates how to manually input or paste the content of an SSH private key. This method is useful when file drag-and-drop is not feasible. Ensure the key format is correct, typically starting with '-----BEGIN...' and ending with '-----END...'. ```text -----BEGIN RSA PRIVATE KEY----- ... -----END RSA PRIVATE KEY----- ``` -------------------------------- ### Install Chaterm on Debian/Ubuntu Source: https://chaterm.cn/docs/start/downloads Installs Chaterm using a .deb package on Debian-based Linux distributions. This method is recommended for system integration and includes desktop icons and command-line tools. ```bash sudo apt install ./chaterm-*.deb ``` -------------------------------- ### Run Chaterm AppImage on Linux Source: https://chaterm.cn/docs/start/downloads Executes the Chaterm AppImage on any Linux distribution without requiring installation. This portable version allows direct execution after granting executable permissions. ```bash chmod +x chaterm-*.AppImage ./chaterm-*.AppImage ``` -------------------------------- ### Kubernetes Pod 故障排查 Skill 示例 (Markdown) Source: https://chaterm.cn/docs/skills/usage 一个 Markdown 格式的 Skill 示例,用于演示 Kubernetes Pod 故障排查的完整流程。它包含了描述、操作步骤(如检查 Pod 状态、日志、资源使用情况)以及提供修复建议的指导。 ```markdown # Kubernetes Pod 故障排查 ## 描述 当用户遇到 Pod 异常时,自动执行完整的排查流程 ## 操作步骤 1. 检查 Pod 状态和事件 - 执行 `kubectl get pod -n -o yaml` - 查看 `kubectl describe pod -n ` 输出的事件信息 2. 查看最近 100 行日志 - 执行 `kubectl logs -n --tail=100` 3. 分析资源使用情况 - 检查 CPU 和内存使用:`kubectl top pod -n ` - 查看资源限制配置:`kubectl get pod -n -o jsonpath='{.spec.containers[*].resources}'` 4. 提供修复建议 - 根据检查结果,提供针对性的修复建议 - 如果资源不足,建议调整资源限制 - 如果配置错误,提供正确的配置示例 ``` -------------------------------- ### Skill 资源文件引用示例 (Markdown) Source: https://chaterm.cn/docs/skills/usage 演示了如何在 Skill 中引用外部资源文件,如脚本和配置文件。这允许 Skill 包含实际可执行的代码和配置。 ```markdown ## 资源文件 - scripts/deploy.sh - templates/config.yaml ```