Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[CNDT2021]Kubernetes GitOps with Rancher Continuous Delivery

5da4f70462de256a566e68adfbb3ca03?s=47 Wenhan Shi
November 02, 2021

[CNDT2021]Kubernetes GitOps with Rancher Continuous Delivery

5da4f70462de256a566e68adfbb3ca03?s=128

Wenhan Shi

November 02, 2021
Tweet

More Decks by Wenhan Shi

Other Decks in Technology

Transcript

  1. © Copyright 2021 Rancher. All Rights Reserved. 1 © Copyright

    2021 Rancher. All Rights Reserved. 1 Kubernetes GitOps with Rancher Continuous Delivery 2nd Nov 2021 Wenhan Shi Support Engineer
  2. © Copyright 2021 Rancher. All Rights Reserved. 2 GitOpsで百万単位のKubernetes クラスタを一元管理

    Rancher Continuous Delivery - • Rancherが開発した独立のプロジェクト - https://github.com/rancher/fleet • CNCF認証のクラスタならデプロイ可能 • Rancher v2.5/v2.6 built-in • k8s 標準APIと連携するk8s controller • Policy/APP/infraなどを操作可能 • クラスタをグルーピングして操作可能 • UIでステータスを可視化
  3. © Copyright 2021 Rancher. All Rights Reserved. 3 アーキテクチャ Fleet

    Controller — Rancherサーバで実行 — Git repositoryと通信 Fleet Agents — 各Downstream cluster で実行 — Fleet Controllerとsync-up — Helmでresourcesをデプロイ
  4. © Copyright 2021 Rancher. All Rights Reserved. 4 アーキテクチャ Bundle

    — クラスタにデプロイするリソースのコ レクション — 設定されたGitRepoの内容をベースに Fleetより自動生成 — Bundleの内容 – Kubernetes resource manifests – Kustomize templates – Helm charts
  5. © Copyright 2021 Rancher. All Rights Reserved. 5 Web UI

  6. © Copyright 2021 Rancher. All Rights Reserved. 6 Cluster Group

    Hands-on:環境 commit Deploy Deploy Monitoring
  7. © Copyright 2021 Rancher. All Rights Reserved. 7 Hands-on:内容 •

    Fleet 基本設定 • Cluster group • GitRepo • Workloadのデプロイ&アップグレード • folk : https://github.com/rancher/fleet-examples • Rancher Appのデプロイとアップデート • https://github.com/ibrokethecloud/core-bundles • https://github.com/ibrokethecloud/user-bundles • k3s cluster upgrade Hands-on URL: https://learn.na.hobbyfarm.io/ Access code: cndt2021fleet
  8. © Copyright 2021 Rancher. All Rights Reserved. 8 8 Thank

    you