owned this note changed a year ago
Linked with GitHub

使用Infrastructure from Code建置更彈性與可移植的雲端架構 - 李琦 (Rich)

歡迎來到 DevOpsDay Taipei 2024 共筆

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

共筆入口:https://hackmd.io/@DevOpsDay/2024
手機版請點選上方 按鈕展開議程列表。

議程介紹

填寫議程滿意度問卷|回饋建言給辛苦的講者

共筆從這開始

講師: 李琦 Rich

  • Cloud Native Development
  • Microservices
  • Event-driven

Agenda

  • IaC 面臨的挑戰 - 工具 / 人 / 架構
  • IfC 概念與工具

Iac 的好處

  • 自動化和效率
  • 一致性與可重複性
  • 版本控制 ( sing source of truch )
  • 模組化與可移植性

流程

  • User → Iac Code → Terraform → environment

問題

Infrastructure Configuration Drift

  • 有人手動登入 web console 改了配置,一段時間後,Iac 與運行環境的設定不一致 !!

大部分的 Infrastructure 配置是根據 Application

  • Ordering
  • Partition ( Message Volume )
  • Retry
  • Error Handing: ( DLQ )

開發者面臨的挑戰

  • 不同雲的運算服務不同
  • 開發需使用不同雲 SDKs
  • 與開發相關服務設定 ( Secret Manager 、 Authn & Authz、Logging 等 )

Infra / SRE 工程師面臨的挑戰

  • 不同雲 Infra 配置不同
  • IaC 設定方式也不相同

不同環境 Infra 配置不同

  • 每一個 Topic 不同需要建置相對應的 Container
  • 需要建立的元件會依照不同雲原生環境而不同

現在雲端應用使用 Serverless 與 Infrastructure 緊密相關

  • Iaas Paas Saas 不同服務在雲上的成本價格不同
  • 建議容器化使用 Serverless 託管應用

About Application Architecture

Classic Iac

  • 傳統階層式佈署

Modern Cloud Automation

  • 使用交互式橫向方式佈署

雲端自動化重點不再於如何建置服務,而是如何關連與整合應用服務

Infrastructure from Code Application Code

Instead of writing low-level, control-plane specific instructions, IfC infers requirements from application logic and provisions the optimal cloud infrastructure automatically.

  • 針對目標環境動態產生 Application 請求

IfC Methods and Flow

Benefits of IfC

  • Seamless Integration with Application Code
  • Improved Consistency
  • Dynamic Infrastructure
    • Iam,Security,etc
  • Enhanced Developer Productivity

IfC Tools

Klotho

Develop for local, deploy for the cloud

IfC Tools

Klotho

  • 需要 pulumi 基礎

Develop for local, deploy for the cloud

GitHub - klothoplatform/klotho: Klotho - write AWS applications at lightning speed

Klotho Capabilities Annotations

  • Execution Unit
  • Expose
  • Persist
  • Pub Sub

Winglang

  • Preflight
    • 一次性類型
  • Inflight

image

重要的不是如何使用工具,而是思維改變

tags: DevOpsDays Taipei 2024

相關連結


聊天區

Select a repo