<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>DevOps on YennJ12 Engineering Blog</title><link>https://yennj12.js.org/yennj12_blog_V4/tags/devops/</link><description>Recent content in DevOps on YennJ12 Engineering Blog</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 30 Apr 2026 11:00:00 +0800</lastBuildDate><atom:link href="https://yennj12.js.org/yennj12_blog_V4/tags/devops/feed.xml" rel="self" type="application/rss+xml"/><item><title>Kubernetes 完整指南（一）：基礎概念與架構詳解</title><link>https://yennj12.js.org/yennj12_blog_V4/posts/kubernetes-complete-guide-part1-introduction-zh/</link><pubDate>Sat, 11 Oct 2025 12:00:00 +0800</pubDate><guid>https://yennj12.js.org/yennj12_blog_V4/posts/kubernetes-complete-guide-part1-introduction-zh/</guid><description>🎯 前言 Kubernetes（常簡稱為 K8s）是目前最流行的容器編排平台，已成為雲原生應用的事實標準。本系列文章將全面介紹 Kubernetes 的核心概念、實務操作與生產部署。
本系列文章規劃：
第一篇（本文）：Kubernetes 基礎概念與架構 第二篇：核心資源與實務操作 第三篇：進階功能與生產實踐 📚 什麼是 Kubernetes？ 核心定義 Kubernetes 是一個開源的容器編排平台，用於自動化部署、擴展和管理容器化應用程式。它最初由 Google 設計，現在由 Cloud Native Computing Foundation（CNCF）維護。
graph TB A[Kubernetes] --&amp;gt; B[容器編排] A --&amp;gt; C[自動化部署] A --&amp;gt; D[服務發現] A --&amp;gt; E[負載均衡] A --&amp;gt; F[自動擴展] A --&amp;gt; G[自我修復] B --&amp;gt; B1[管理數千個容器] C --&amp;gt; C1[滾動更新&amp;lt;br/&amp;gt;零停機部署] D --&amp;gt; D1[DNS 與服務註冊] E --&amp;gt; E1[流量分發&amp;lt;br/&amp;gt;健康檢查] F --&amp;gt; F1[水平/垂直擴展&amp;lt;br/&amp;gt;自動調度] G --&amp;gt; G1[故障恢復&amp;lt;br/&amp;gt;重啟容器] style A fill:#326ce5 style B fill:#4ecdc4 style C fill:#feca57 style D fill:#ff6b6b style E fill:#a8e6cf style F fill:#ffb3ba style G fill:#bae1ff Kubernetes 解決的問題 挑戰 傳統方式 Kubernetes 解決方案 容器管理 手動管理每個容器 聲明式配置，自動管理 服務發現 硬編碼 IP 位址 內建 DNS 與服務發現 負載均衡 外部負載均衡器 內建 Service 負載均衡 擴展性 手動添加實例 自動水平擴展（HPA） 故障恢復 人工介入 自我修復，自動重啟 更新部署 停機維護 滾動更新，零停機 資源利用 低效分配 智慧調度，資源優化 配置管理 散落各處 統一的 ConfigMap/Secret 🔄 為什麼需要 Kubernetes？ 容器化的演進 graph LR A[單體應用&amp;lt;br/&amp;gt;Monolithic] --&amp;gt; B[容器化應用&amp;lt;br/&amp;gt;Containerized] B --&amp;gt; C[容器編排&amp;lt;br/&amp;gt;Orchestrated] C --&amp;gt; D[雲原生&amp;lt;br/&amp;gt;Cloud Native] A1[難以擴展&amp;lt;br/&amp;gt;部署緩慢] --&amp;gt; A B1[可移植&amp;lt;br/&amp;gt;環境一致] --&amp;gt; B C1[自動化&amp;lt;br/&amp;gt;高可用] --&amp;gt; C D1[微服務&amp;lt;br/&amp;gt;彈性伸縮] --&amp;gt; D style A fill:#ff6b6b style B fill:#feca57 style C fill:#4ecdc4 style D fill:#a8e6cf Docker vs Kubernetes graph TB subgraph &amp;#34;Docker 生態&amp;#34; D1[Docker Engine] D2[容器運行] D3[映像管理] D4[Docker Compose&amp;lt;br/&amp;gt;單機編排] end subgraph &amp;#34;Kubernetes 生態&amp;#34; K1[容器編排] K2[叢集管理] K3[服務發現] K4[負載均衡] K5[自動擴展] K6[自我修復] K7[配置管理] K8[儲存編排] end D1 -.</description></item><item><title>Docker 完整指南（一）：基礎概念與入門教學</title><link>https://yennj12.js.org/yennj12_blog_V4/posts/docker-complete-guide-part1-introduction-zh/</link><pubDate>Sat, 11 Oct 2025 10:30:00 +0800</pubDate><guid>https://yennj12.js.org/yennj12_blog_V4/posts/docker-complete-guide-part1-introduction-zh/</guid><description>🎯 前言 Docker 是當今最流行的容器化技術，徹底改變了應用程式的開發、部署和運行方式。本系列文章將從基礎到進階，完整介紹 Docker 的各個面向。
本系列文章規劃：
第一篇（本文）：Docker 基礎概念與入門 第二篇：Docker 指令與實務操作 第三篇：Docker 進階應用與最佳實踐 📚 什麼是 Docker？ Docker 是一個開源的容器化平台，讓開發者可以將應用程式及其所有依賴項打包成一個標準化的單元（容器），然後在任何環境中一致地運行。
核心價值 graph TB A[Docker 核心價值] --&amp;gt; B[環境一致性] A --&amp;gt; C[快速部署] A --&amp;gt; D[資源效率] A --&amp;gt; E[易於擴展] B --&amp;gt; B1[開發環境 = 測試環境 = 生產環境] C --&amp;gt; C1[秒級啟動&amp;lt;br/&amp;gt;快速回滾] D --&amp;gt; D1[共享 OS 核心&amp;lt;br/&amp;gt;輕量級] E --&amp;gt; E1[水平擴展&amp;lt;br/&amp;gt;微服務架構] style A fill:#4ecdc4 style B fill:#a8e6cf style C fill:#ffd3b6 style D fill:#ffaaa5 style E fill:#ff8b94 Docker 解決的問題 傳統問題 Docker 解決方案 環境不一致 容器包含完整運行環境，確保一致性 依賴衝突 每個容器獨立運行，互不干擾 部署複雜 一鍵部署，快速回滾 資源浪費 共享 OS 核心，輕量級虛擬化 擴展困難 容器化應用易於水平擴展 配置管理 Infrastructure as Code，版本控制 🔄 虛擬化技術演進 傳統部署 vs 虛擬機 vs 容器 graph LR subgraph &amp;#34;傳統部署&amp;#34; A1[應用 A] A2[應用 B] A3[應用 C] OS1[作業系統] HW1[硬體] A1 --&amp;gt; OS1 A2 --&amp;gt; OS1 A3 --&amp;gt; OS1 OS1 --&amp;gt; HW1 end subgraph &amp;#34;虛擬機部署&amp;#34; B1[應用 A] B2[應用 B] B3[應用 C] G1[Guest OS] G2[Guest OS] G3[Guest OS] HV[Hypervisor] OS2[Host OS] HW2[硬體] B1 --&amp;gt; G1 B2 --&amp;gt; G2 B3 --&amp;gt; G3 G1 --&amp;gt; HV G2 --&amp;gt; HV G3 --&amp;gt; HV HV --&amp;gt; OS2 OS2 --&amp;gt; HW2 end subgraph &amp;#34;容器部署&amp;#34; C1[應用 A] C2[應用 B] C3[應用 C] DE[Docker Engine] OS3[Host OS] HW3[硬體] C1 --&amp;gt; DE C2 --&amp;gt; DE C3 --&amp;gt; DE DE --&amp;gt; OS3 OS3 --&amp;gt; HW3 end 詳細比較表 特性 傳統部署 虛擬機（VM） Docker 容器 啟動速度 分鐘級 分鐘級 秒級 資源佔用 高 高（需要完整 OS） 低（共享核心） 效能損耗 無 5-20% &amp;lt;5% 隔離性 低 高 中-高 可移植性 差 中 優秀 映像大小 N/A GB 級 MB 級 管理複雜度 低 高 中 密度 低 低（10-100/主機） 高（100-1000/主機） 作業系統 受限於主機 可以不同 共享主機核心 虛擬機 vs Docker 詳細對比 graph TB subgraph &amp;#34;虛擬機架構&amp;#34; VM1[應用程式 + 函式庫&amp;lt;br/&amp;gt;約 5-10 GB] VM2[Guest OS&amp;lt;br/&amp;gt;約 10-20 GB] VM3[Hypervisor&amp;lt;br/&amp;gt;約 1-2 GB] VM4[Host OS] VM5[實體硬體] VM1 --&amp;gt; VM2 VM2 --&amp;gt; VM3 VM3 --&amp;gt; VM4 VM4 --&amp;gt; VM5 end subgraph &amp;#34;Docker 架構&amp;#34; DC1[應用程式 + 函式庫&amp;lt;br/&amp;gt;約 100-500 MB] DC2[Docker Engine] DC3[Host OS] DC4[實體硬體] DC1 --&amp;gt; DC2 DC2 --&amp;gt; DC3 DC3 --&amp;gt; DC4 end style VM1 fill:#ff6b6b style VM2 fill:#ff8787 style DC1 fill:#4ecdc4 style DC2 fill:#45b7d1 關鍵差異說明：</description></item><item><title>Docker 完整指南（二）：指令大全與實務操作</title><link>https://yennj12.js.org/yennj12_blog_V4/posts/docker-complete-guide-part2-commands-zh/</link><pubDate>Sat, 11 Oct 2025 11:00:00 +0800</pubDate><guid>https://yennj12.js.org/yennj12_blog_V4/posts/docker-complete-guide-part2-commands-zh/</guid><description>🎯 前言 在上一篇文章中，我們了解了 Docker 的基礎概念與架構。本文將深入探討 Docker 指令的實務應用，從基礎操作到進階技巧，幫助你全面掌握 Docker CLI 的使用。
本文重點：
Docker 指令體系與結構 容器生命週期管理 映像操作與管理 網路與儲存配置 實用技巧與最佳實踐 📋 Docker 指令體系 Docker CLI 結構 graph TB CLI[Docker CLI] --&amp;gt; MGMT[管理指令&amp;lt;br/&amp;gt;Management Commands] CLI --&amp;gt; LEGACY[傳統指令&amp;lt;br/&amp;gt;Legacy Commands] MGMT --&amp;gt; CONTAINER[docker container] MGMT --&amp;gt; IMAGE[docker image] MGMT --&amp;gt; NETWORK[docker network] MGMT --&amp;gt; VOLUME[docker volume] MGMT --&amp;gt; SYSTEM[docker system] LEGACY --&amp;gt; RUN[docker run] LEGACY --&amp;gt; PS[docker ps] LEGACY --&amp;gt; BUILD[docker build] LEGACY --&amp;gt; PULL[docker pull] style MGMT fill:#4ecdc4 style LEGACY fill:#feca57 指令格式對照 傳統指令 新版管理指令 說明 docker ps docker container ls 列出容器 docker images docker image ls 列出映像 docker rm docker container rm 刪除容器 docker rmi docker image rm 刪除映像 docker inspect docker container inspect 查看容器詳情 建議： 新專案使用管理指令格式，更清晰且易於理解。</description></item><item><title>用 AI Bot 打造顧問團隊（三）：評估、維運與優化計畫</title><link>https://yennj12.js.org/yennj12_blog_V4/posts/ai-agent-team-for-consultant-part3-devops-zh/</link><pubDate>Thu, 30 Apr 2026 11:00:00 +0800</pubDate><guid>https://yennj12.js.org/yennj12_blog_V4/posts/ai-agent-team-for-consultant-part3-devops-zh/</guid><description>前言 你已經建好了 AI 顧問 Agent 團隊（第一篇、第二篇），現在問題來了：
「這系統真的有在正常工作嗎？品質夠好嗎？出了問題怎麼辦？」
AI Agent 系統不像傳統軟體，你不能只看 HTTP 200。你需要評估輸出品質、追蹤推理過程、並且在 LLM 開始說廢話之前就發現它。
本篇從 DevOps/SRE 的角度，完整說明如何讓 AI 顧問團隊穩定、可觀測、持續進化。
一、系統效能評估：怎麼知道 Agent 表現好不好？ 1.1 評估的四個維度 品質（Quality） → 輸出內容是否正確、有用、符合顧問標準 速度（Latency） → 每個 Agent 節點的回應時間 成本（Cost） → 每次顧問對話的 Token 花費 可靠性（Reliability）→ 成功完成整個流程的比率 1.2 建立評估資料集（Golden Dataset） 這是最重要的第一步。準備 20-50 個有代表性的客戶案例：
1# evaluation/golden_dataset.py 2GOLDEN_CASES = [ 3 { 4 &amp;#34;id&amp;#34;: &amp;#34;case-001&amp;#34;, 5 &amp;#34;input&amp;#34;: &amp;#34;我們是一家 50 人的電商公司，客服每天要處理 500 封郵件，想用 AI 減輕負擔。&amp;#34;, 6 &amp;#34;expected_intake&amp;#34;: { 7 &amp;#34;industry&amp;#34;: &amp;#34;電商&amp;#34;, 8 &amp;#34;size&amp;#34;: &amp;#34;50人&amp;#34;, 9 &amp;#34;pain_points&amp;#34;: [&amp;#34;客服郵件量大&amp;#34;], 10 &amp;#34;ai_type&amp;#34;: &amp;#34;自動化&amp;#34; 11 }, 12 &amp;#34;expected_strategy_keywords&amp;#34;: [&amp;#34;聊天機器人&amp;#34;, &amp;#34;郵件分類&amp;#34;, &amp;#34;自動回覆&amp;#34;], 13 &amp;#34;quality_rubric&amp;#34;: { 14 &amp;#34;relevance&amp;#34;: &amp;#34;策略必須針對客服場景&amp;#34;, 15 &amp;#34;feasibility&amp;#34;: &amp;#34;建議的方案在 100 萬預算內可行&amp;#34;, 16 &amp;#34;actionability&amp;#34;: &amp;#34;至少有 3 個具體的下一步行動&amp;#34; 17 } 18 }, 19 # .</description></item><item><title>Crypto Quantitative Trading Part 3: Optimization, Validation, and Production Deployment</title><link>https://yennj12.js.org/yennj12_blog_V4/posts/crypto-quantitative-trading-part3-production-deployment/</link><pubDate>Sat, 24 Jan 2026 22:00:00 +0800</pubDate><guid>https://yennj12.js.org/yennj12_blog_V4/posts/crypto-quantitative-trading-part3-production-deployment/</guid><description>Deploy cryptocurrency trading strategies to production. Master walk-forward analysis, parameter optimization, live trading integration, real-time monitoring, and machine learning enhancements. Complete production-ready system with AWS deployment and comprehensive risk controls.</description></item><item><title>Everything Claude Code: The Ultimate Production-Ready Plugin Collection Guide</title><link>https://yennj12.js.org/yennj12_blog_V4/posts/everything-claude-code-setup-best-practices/</link><pubDate>Sat, 24 Jan 2026 16:30:00 +0800</pubDate><guid>https://yennj12.js.org/yennj12_blog_V4/posts/everything-claude-code-setup-best-practices/</guid><description>Master the everything-claude-code repository: a comprehensive collection of production-ready agents, skills, hooks, and MCP configurations evolved over 10+ months of intensive use. Learn setup, best practices, and advanced techniques to supercharge your Claude Code workflow.</description></item><item><title>Building a Centralized Monitoring System with AWS CloudWatch and Grafana using CDK</title><link>https://yennj12.js.org/yennj12_blog_V4/posts/centralized-monitoring-system-aws-cloudwatch-grafana-cdk/</link><pubDate>Sun, 30 Nov 2025 14:00:00 +0000</pubDate><guid>https://yennj12.js.org/yennj12_blog_V4/posts/centralized-monitoring-system-aws-cloudwatch-grafana-cdk/</guid><description>🎯 Introduction In distributed systems running on AWS, observability is critical for maintaining reliability, debugging issues, and ensuring optimal performance. A centralized monitoring system provides:
Unified Visibility: Single pane of glass for all services, applications, and infrastructure Proactive Alerting: Detect and respond to issues before they impact users Performance Optimization: Identify bottlenecks and optimization opportunities Cost Management: Track resource utilization and spending patterns Compliance: Meet audit and regulatory requirements for logging Troubleshooting: Quickly diagnose and resolve production issues This comprehensive guide demonstrates how to build a production-ready centralized monitoring system using AWS CloudWatch and Grafana, deployed with CDK (TypeScript).</description></item><item><title>Docker Mount Complete Guide: Volumes, Bind Mounts, and tmpfs Comparison</title><link>https://yennj12.js.org/yennj12_blog_V4/posts/docker-mount-complete-guide-comparison/</link><pubDate>Sat, 11 Oct 2025 10:00:00 +0800</pubDate><guid>https://yennj12.js.org/yennj12_blog_V4/posts/docker-mount-complete-guide-comparison/</guid><description>Introduction When working with Docker containers, understanding how to properly manage data persistence is crucial. Docker provides three main approaches for mounting data into containers: Volumes, Bind Mounts, and tmpfs mounts. Each has distinct characteristics, use cases, and trade-offs.
This comprehensive guide explores all Docker mount types, their differences, practical examples, and best practices to help you choose the right approach for your specific needs.
What is Mounting in Docker? Mounting in Docker refers to the process of making host filesystem directories or Docker-managed storage available inside containers.</description></item><item><title>AWS VPC Complete Guide: Enterprise Networking Patterns &amp; VPC Peering</title><link>https://yennj12.js.org/yennj12_blog_V4/posts/aws-vpc-complete-guide-enterprise-networking/</link><pubDate>Mon, 29 Sep 2025 08:35:54 +0800</pubDate><guid>https://yennj12.js.org/yennj12_blog_V4/posts/aws-vpc-complete-guide-enterprise-networking/</guid><description>Introduction Amazon Virtual Private Cloud (VPC) is the foundation of AWS networking, providing isolated virtual networks within the AWS cloud. This guide explores VPC types, enterprise network design patterns, VPC peering strategies, and practical Java implementations for production environments.
AWS VPC Fundamentals What is AWS VPC? AWS VPC lets you provision a logically isolated section of the AWS Cloud where you can launch AWS resources in a virtual network that you define.</description></item></channel></rss>