Skip to content

Instantly share code, notes, and snippets.

@peter279k
Last active September 26, 2020 05:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peter279k/7977c637cfaf6f18283c479537de3701 to your computer and use it in GitHub Desktop.
Save peter279k/7977c637cfaf6f18283c479537de3701 to your computer and use it in GitHub Desktop.
This is the AKS hands-on-lab on K8s Summit 2020

容器化技術

  • 作業系統層級虛擬化
  • 透過Docker Engine
  • 可以專注在開發應用程式,不用太注意與操作虛擬化相關的操作技術

Docker image 映像檔

  • Docker Engine
  • Docker image
  • Dockerfile
  • Docker Hub 上存取映像檔或是Azure Docker registry

Docker 容器與執行相關工具

Kubernetes CNCF 開源碼專案

  • 自由可攜性
  • 可延伸性
  • 自我恢復能力
  • 由Google提出

Kubernetes 基本名詞

  • Master Node
  • 透過API去跟其他的Node做溝通
  • 可以是Linux Agent Pool 或是 Windows Agent Pool
  • Node可以是一個實體主機或是一個虛擬機器
  • Pod 想像成豆莢,裡面是有好幾個容器,為一個最小的部署單位
  • 磁碟可以用Presistent Volume來建立儲存的空間

Azure and K8s

  • Azure Container Registry (ACR), Like a private Docker hub

AKS, Azure K8s Service

  • 簡化K8s的部署,管理和操作
  • 可以透過Azure CLI或是在Azure Portal上的操作即可輕鬆執行與管理K8s
  • 可以專注在使用與開發應用程式的系統架構上面
  • How Managed K8s on Azure works

AKS 好處

  • Database 存取
  • Security 服務
  • Storage 儲存服務
  • 身份驗證 OAuth
  • 輕易的跟上述相關的服務做綁定與整合

DevOps

  • 對自動化的部署變得很重要
  • Azure DevOps and Azure DevOps service 為Azure DevOps的解決方案
  • 做版控,開發與測試
  • 部署到相關的應用程式,不管是部署到其他的環境上面,不管是Azure上或是地端的server上面

DevOps Flow

  • 上述的環節都可以使用線上或是第三方服務達成
  • e.g. Jenkins, ELK Stack, Teraform, GitHub, Trelo and so on.

Azure Boards

  • 敏捷式工具與小組一起規劃

Azure Pipelines

  • 流程控制,像是CI等等持續整合

Azure DevOps Service, AKS

  • Building image, Azure Repos (Dockerfile)
  • Delopy to AKS
  • Azure SQL Database
  • Azure DevOps
  • Azure K8s

Hands-On-Lab

Azure K8s Workshop (AKS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment