Successfully reported this slideshow.
Your SlideShare is downloading. ×

AKS 與開發人員體驗 (Kubernetes 大講堂)

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad

Check these out next

1 of 15 Ad

More Related Content

Slideshows for you (20)

Similar to AKS 與開發人員體驗 (Kubernetes 大講堂) (20)

Advertisement

More from Will Huang (17)

Recently uploaded (20)

Advertisement

AKS 與開發人員體驗 (Kubernetes 大講堂)

  1. 1. AKS 與開發人員體驗 多奇數位創意有限公司 技術總監 黃保翕 ( Will 保哥 ) 部落格:http://blog.miniasp.com/ Azure Kubernetes Services and Developers
  2. 2. 在 Azure 中部署 Kubernetes 叢集 Azure Kubernetes Services
  3. 3. 關於 Azure Kubernetes Service (AKS) • 輕鬆部署及管理 Kubernetes • 放心調整及執行應用程式 • 保護您的 Kubernetes 環境 • 加速容器化應用程式開發 • 利用開放原始碼工具與 API,依您希望的方式來工作 • 輕易的設定 CI/CD 3
  4. 4. 建立 AKS 叢集 • 擁有一個 Azure 訂用帳戶 (Azure Subscription) • 安裝 Azure CLI v2.0.43 以上版本 • 部署 Kubernetes 1.9.6 以上版本支援的地區 – EastUS, CentralUS, WestUS2, CanadaCentral, CanadaEast, WestEurope • 建立資源群組 ( 2 ~ 10 秒 ) ( 地區千萬不要用英文大寫 ) – az group create --name MyAKS --location westus2 • 建立 AKS 叢集 ( ~ 17 分鐘 ) – az aks create -g MyAKS -n myaks --location westus2 --kubernetes-version 1.11.2 --enable-addons http_application_routing 4
  5. 5. 在 AKS 進行開發測試 The Developer Experiences
  6. 6. 常見的 Kubernetes 開發/測試/部署工具 • Helm - The Kubernetes Package Manager – https://helm.sh/ – 在 Azure Kubernetes Service (AKS) 中使用 Helm 安裝應用程式 • Draft - Streamlined Kubernetes Development – https://draft.sh/ – 使用 Draft 搭配 Azure Kubernetes Service (AKS) • Azure Dev Spaces – https://docs.microsoft.com/en-us/azure/dev-spaces/ • OpenFaaS – https://www.openfaas.com/ – 在 AKS 上使用 OpenFaaS 6
  7. 7. Azure Dev Spaces (AZDS) 7 A rapid, iterative Kubernetes development experience for teams. “ ”
  8. 8. AZDS 如何簡化 Kubernetes 開發? • 盡可能減少每個團隊成員的本機開發人員機器設定 • 直接在 Kubernetes 中快速地反覆執行和偵錯程式碼。 • 從開發到生產環境中使用一套 Docker 與 Kubernetes 組態 (configuration-as-code) • 與團隊共用受管理的 Kubernetes 叢集 (AKS),並共同合作。 • 在隔離環境中開發程式碼,並對其他元件進行端對端測試, 而無須複寫或模擬相依性。 8
  9. 9. 9
  10. 10. Demo: Azure Dev Spaces with ASP.NET Core • Enable Dev Spaces for an AKS cluster (VS2017) • F5 • Edit Code  Refresh Container  See Updates 10
  11. 11. 初始化 Azure Dev Spaces 設定 11
  12. 12. 啟用 Azure Dev Spaces 12
  13. 13. Demo: Azure Dev Spaces with Node.js • 在 AKS 啟用 Dev Spaces – az aks use-dev-spaces -g MyAKS -n MyAKS • 取得原始碼 – git clone https://github.com/Azure/dev-spaces.git – cd dev-spaces/samples/nodejs/getting-started/webfrontend • 初始化 Dev Spaces 環境 – azds prep --public • 建置與執行站台 – azds up – azds up • 刪除測試資料 – azds down 13 • 使用 Visual Studio Code 進行偵錯 – code . – Azure Dev Spaces: Prepare configuration files – Attach to Server (AZDS)
  14. 14. References • Azure Dev Spaces - Visual Studio • Azure Dev Spaces | Microsoft Docs • Azure/dev-spaces ( GitHub ) • Introducing Dev Spaces for AKS | Blog | Microsoft Azure • Announcing the public preview of Azure Dev Spaces 14
  15. 15. 聯絡資訊 • The Will Will Web 記載著 Will 在網路世界的學習心得與技術分享 – http://blog.miniasp.com/ • Will 保哥的技術交流中心 (臉書粉絲專頁) – http://www.facebook.com/will.fans • Will 保哥的噗浪 – http://www.plurk.com/willh/invite • Will 保哥的推特 – https://twitter.com/Will_Huang

×