SRE Conference
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # 你相信服務上 Kubernetes 真的比 VM 好管理? - 邱宏瑋 (hwchiu) {%hackmd @sre-conf/SybJShjx0 %} > 從這開始 ###### tags: `SRE Conference` `2024` ## 講者資訊 個人網站:https://www.hwchiu.com/ 投影片:https://speakerdeck.com/hwchiu/does-kubernetes-is-really-easy-than-vm-for-cluster-administrator ## Call for paper KCD Taipei 2024 > [linkedin - Cloud Native Taiwan User Group 的 Post 連結](https://www.linkedin.com/posts/cloudnative-taiwan_coscup-2024-activity-7180534424466341890-DpUR/) https://blog.coscup.org/2024/03/coscup-2024-coscup-2024-call-for.html CFP Deadline: 2024/05/09 會出現在 CNCF 有好棒棒獎章 Broadcom 收購VMWare 但是價格翻倍 四種架構 1. application on bm 2. application/container on vm 3. application/container in k8s on bm 4. application/container in k8s on vm - VM 上架 node 比 bare-metal 上架,效能一定會減損 - CERN 組織曾調較 VM,從 20% 降到 5%,仍是無法避免 [IBM加碼混合雲管理,以64億美元收購雲端基礎架構工具業者HashiCorp](https://www.ithome.com.tw/news/162514) 難說某一天,open source 不 open 了 vm 正在萎縮,但有時還是需要。 ## k8s 的痛點 kubetools: https://collabnix.github.io/kubetools/ k8s 生態系爆炸性擴張,要追完,頭很痛。睡一覺起來,redis 就沒了 multi-tenancy 不是很支援 (kubecon-na 2022, apple 的 talk) 開發者要學習超多 ![](https://i.redd.it/zdp044lszvz61.jpg) Resources - pod 有 overcommit,很少人用 Guranteed pod - 在 busy 下可能導致 node 爆炸不穩 - P95 & P99問題變多 - Request / Limited(cgroup) ## Exclusive Cost vm 4 cores -> 永遠相同 contaienr 4 cores - cpu 會換來換去,會有 cache miss 與 context switch - NUMA :fire:必看!!!!!!! - [Kubernetes Enhancement Proposals (KEPs) Kubernetes Contributors](https://www.kubernetes.dev/resources/keps/) - [kubernetesenhancements Enhancements tracking repo for Kubernetes](https://github.com/kubernetes/enhancements) - [enhancementskepssig-node1287-in-place-update-pod-resourcesREADME.md at master · kubernetesenhancements](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/1287-in-place-update-pod-resources/README.md) k8s support node swap (1.28 Beta) [:link:KEP-Ref](https://github.com/kubernetes/enhancements/tree/3feb698013b4c227686a972e1da7e93e5fd0dcee/keps/sig-node/2400-node-swap) ## Live migration VM 不太會中斷,客戶無感,很漂亮 k8s - 需要 drain node - pod ip changed, 所有 tcp 連線重建 - double drain nodes 時,可能會有 pod 被多次犧牲 - unexpected node crash: - only work well on stateless application - [2268-non-graceful-shutdown](https://github.com/kubernetes/enhancements/tree/3feb698013b4c227686a972e1da7e93e5fd0dcee/keps/sig-storage/2268-non-graceful-shutdown): statefulset 直接卡死在上面,沒有所謂的 self-heal。kubelet 已經掛了,`kubectl delete` 沒有用,只能加上 `--force --grace-period=0` 強制 node 如果 40 秒都沒有回應,會被標為 not ready pod 預設 300 秒才會在 not ready node 離開 -> 因此 pod 需要 340 秒後,才會 redeploy ## how to evaluate - opensource changed issues: 如果 opensource 付費後的轉移成本 - stateless / stateful choose - too many backing services to maintain: k8s 版本更迭超快 - certificates (Bonus but not a mandatory): - 熟悉 k8s 不是只有 yaml 而已 (要跟著版本去看 spec) - Design documents and proposals: Keps, cni, cri, csi, containerd - 會 container 不代表 k8s :link: tsmc it Community meetup 週四夜在陽明交大工程三館 技術交流 --- ====以下聊天區==== ![image](https://hackmd.io/_uploads/Byi3bJYZ0.png) 巨巨 巨巨巨 大!! 大肌肌 邱牛先跪<(_ _)> ᕦ(ò_óˇ)ᕤ 請問如何成為巨巨

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully