{
 "Volume、PV 與 PVC 的關係#1": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   2,
   3
  ],
  "nodes": [
   {
    "label": "容器重啟",
    "sub": "檔案不見"
   },
   {
    "label": "Pod 重建",
    "sub": "資料不留"
   },
   {
    "label": "Volume",
    "sub": "資料與容器分開"
   }
  ]
 },
 "Volume、PV 與 PVC 的關係#2": {
  "type": "table",
  "head": [
   "類型",
   "特性"
  ],
  "rows": [
   [
    "emptyDir",
    "Pod 內共用,Pod 刪除即消失"
   ],
   [
    "ConfigMap 與 Secret",
    "以檔案掛載設定"
   ],
   [
    "hostPath",
    "綁節點目錄,有安全風險"
   ],
   [
    "PVC",
    "引用持久化儲存"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "widths": [
   1,
   2
  ]
 },
 "Volume、PV 與 PVC 的關係#3": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "PV",
    "points": [
     "叢集層級資源",
     "代表實際儲存"
    ],
    "value": "提供者"
   },
   {
    "title": "PVC",
    "points": [
     "屬於某個 namespace",
     "寫明大小與存取模式"
    ],
    "value": "申請單"
   },
   {
    "title": "Pod",
    "points": [
     "只引用 PVC",
     "不必知道底層磁碟"
    ],
    "value": "使用者"
   }
  ]
 },
 "Volume、PV 與 PVC 的關係#4": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   0,
   0,
   1,
   3,
   3
  ],
  "nodes": [
   {
    "label": "volumeMounts",
    "sub": "掛到 /data"
   },
   {
    "label": "volumes",
    "sub": "名稱 data"
   },
   {
    "label": "PVC",
    "sub": "data-pvc 1Gi"
   }
  ]
 },
 "Volume、PV 與 PVC 的關係#7": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   4
  ],
  "cards": [
   {
    "title": "RWO",
    "points": [
     "單一節點讀寫",
     "同節點多 Pod 可共用"
    ],
    "value": "ReadWriteOnce"
   },
   {
    "title": "ROX",
    "points": [
     "多節點唯讀"
    ],
    "value": "ReadOnlyMany"
   },
   {
    "title": "RWX",
    "points": [
     "多節點讀寫",
     "需底層儲存支援"
    ],
    "value": "ReadWriteMany"
   },
   {
    "title": "RWOP",
    "points": [
     "單一 Pod 讀寫",
     "1.29 起穩定"
    ],
    "value": "ReadWriteOncePod"
   }
  ]
 },
 "StorageClass 與動態佈建#1": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   0,
   3
  ],
  "nodes": [
   {
    "label": "建立 PVC"
   },
   {
    "label": "StorageClass",
    "sub": "依類別佈建"
   },
   {
    "label": "自動建立",
    "sub": "磁碟與 PV"
   }
  ]
 },
 "StorageClass 與動態佈建#2": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "cards": [
   {
    "title": "provisioner",
    "points": [
     "負責建立磁碟的驅動"
    ]
   },
   {
    "title": "reclaimPolicy",
    "points": [
     "PV 回收策略",
     "預設 Delete"
    ]
   },
   {
    "title": "allowVolume Expansion",
    "points": [
     "可擴大",
     "不能縮小"
    ]
   },
   {
    "title": "volumeBinding Mode",
    "points": [
     "Immediate",
     "WaitForFirstConsumer"
    ]
   }
  ]
 },
 "StorageClass 與動態佈建#6": {
  "type": "table",
  "head": [
   "欄位",
   "kind 的輸出"
  ],
  "rows": [
   [
    "名稱",
    "standard (default)"
   ],
   [
    "回收策略",
    "Delete"
   ],
   [
    "綁定模式",
    "WaitForFirstConsumer"
   ],
   [
    "允許擴充",
    "false"
   ]
  ],
  "reveal": [
   0,
   0,
   2,
   4
  ],
  "widths": [
   1,
   2
  ]
 },
 "StatefulSet:有狀態應用的穩定身分#1": {
  "type": "cards",
  "reveal": [
   0,
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "穩定網路身分",
    "points": [
     "固定名稱",
     "例如 db-0、db-1"
    ]
   },
   {
    "title": "穩定儲存",
    "points": [
     "每個成員專屬磁碟",
     "重建後掛回原本的"
    ]
   },
   {
    "title": "有序啟動終止",
    "points": [
     "例如先啟動主節點"
    ]
   }
  ]
 },
 "StatefulSet:有狀態應用的穩定身分#2": {
  "type": "table",
  "head": [
   "特性",
   "內容"
  ],
  "rows": [
   [
    "固定名稱",
    "app-0、app-1、app-2"
   ],
   [
    "依序建立",
    "前一個 Ready 才建下一個"
   ],
   [
    "專屬 PVC",
    "data-app-0"
   ],
   [
    "Headless Service",
    "提供穩定 DNS 名稱"
   ],
   [
    "重建保留",
    "同名並掛回原 PVC"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ],
  "widths": [
   1,
   2
  ]
 },
 "StatefulSet:有狀態應用的穩定身分#6": {
  "type": "bar",
  "labels": [
   "app-0",
   "app-1",
   "app-2"
  ],
  "values": [
   40,
   30,
   20
  ],
  "unit": "秒",
  "reveal": [
   0,
   0,
   0,
   1,
   2,
   3
  ]
 },
 "StatefulSet:有狀態應用的穩定身分#7": {
  "type": "table",
  "head": [
   "名稱",
   "狀態",
   "容量"
  ],
  "rows": [
   [
    "data-app-0",
    "Bound",
    "100Mi"
   ],
   [
    "data-app-1",
    "Bound",
    "100Mi"
   ],
   [
    "data-app-2",
    "Bound",
    "100Mi"
   ]
  ],
  "reveal": [
   0,
   0,
   0,
   3,
   3
  ],
  "widths": [
   2,
   1,
   1
  ]
 }
}