{
 "Service:穩定的內部入口#1": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   1,
   3
  ],
  "nodes": [
   {
    "label": "前端"
   },
   {
    "label": "Service",
    "sub": "穩定 IP 與 DNS"
   },
   {
    "label": "後端 Pod",
    "sub": "符合標籤且就緒"
   }
  ]
 },
 "Service:穩定的內部入口#2": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "nodes": [
   {
    "label": "selector",
    "sub": "找到有標籤的 Pod"
   },
   {
    "label": "EndpointSlice",
    "sub": "位址清單"
   },
   {
    "label": "kube-proxy",
    "sub": "設定網路規則"
   },
   {
    "label": "Ready Pod",
    "sub": "才收到流量"
   }
  ]
 },
 "Service:穩定的內部入口#3": {
  "type": "cards",
  "reveal": [
   0,
   0,
   1,
   2,
   3,
   3
  ],
  "cards": [
   {
    "title": "port",
    "points": [
     "Service 在叢集內開放的埠"
    ],
    "value": "80"
   },
   {
    "title": "targetPort",
    "points": [
     "Pod 容器實際監聽的埠",
     "不寫則同 port"
    ],
    "value": "8080"
   },
   {
    "title": "nodePort",
    "points": [
     "節點上開放的埠"
    ],
    "value": "僅 NodePort 類型"
   }
  ]
 },
 "Service:穩定的內部入口#7": {
  "type": "table",
  "head": [
   "指令",
   "用途"
  ],
  "rows": [
   [
    "get svc web",
    "看類型與 Cluster IP"
   ],
   [
    "get endpointslices -l",
    "看後端 Pod 位址"
   ],
   [
    "describe svc web",
    "看 Endpoints 一行"
   ]
  ],
  "reveal": [
   0,
   1,
   1,
   2,
   3
  ],
  "widths": [
   2,
   2
  ]
 },
 "NodePort、LoadBalancer 與 Service 類型#1": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "ClusterIP",
    "points": [
     "預設值",
     "只有叢集內部連得到"
    ]
   },
   {
    "title": "NodePort",
    "points": [
     "每個節點開固定埠",
     "預設範圍 30000-32767"
    ]
   },
   {
    "title": "LoadBalancer",
    "points": [
     "向雲端要外部負載平衡器",
     "含 NodePort 與 ClusterIP"
    ]
   }
  ]
 },
 "NodePort、LoadBalancer 與 Service 類型#2": {
  "type": "table",
  "head": [
   "類型",
   "說明"
  ],
  "rows": [
   [
    "ExternalName",
    "名稱對應外部 DNS 名稱,不做代理"
   ],
   [
    "Headless",
    "clusterIP 設為 None,DNS 回傳各 Pod IP"
   ]
  ],
  "reveal": [
   0,
   1,
   2
  ],
  "widths": [
   1,
   2
  ]
 },
 "NodePort、LoadBalancer 與 Service 類型#3": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   4,
   4,
   4
  ],
  "nodes": [
   {
    "label": "使用者"
   },
   {
    "label": "節點",
    "sub": "埠 30080"
   },
   {
    "label": "Service",
    "sub": "埠 80"
   },
   {
    "label": "Pod",
    "sub": "埠 8080"
   }
  ]
 },
 "NodePort、LoadBalancer 與 Service 類型#6": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   2
  ],
  "cards": [
   {
    "title": "雲端託管叢集",
    "points": [
     "數分鐘後外部 IP 從 pending 變成位址"
    ]
   },
   {
    "title": "本機叢集",
    "points": [
     "停在 pending 是正常的",
     "minikube tunnel 可模擬"
    ]
   }
  ]
 },
 "Ingress:HTTP 路由與 TLS#1": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   1,
   3
  ],
  "nodes": [
   {
    "label": "使用者"
   },
   {
    "label": "Ingress",
    "sub": "單一對外入口"
   },
   {
    "label": "Service",
    "sub": "依網域與路徑分流"
   }
  ]
 },
 "Ingress:HTTP 路由與 TLS#2": {
  "type": "cards",
  "reveal": [
   0,
   2,
   2,
   3,
   3,
   3
  ],
  "cards": [
   {
    "title": "Ingress",
    "points": [
     "路由規則物件",
     "自己不處理流量"
    ]
   },
   {
    "title": "Ingress Controller",
    "points": [
     "真正處理流量",
     "需另外安裝"
    ]
   },
   {
    "title": "Ingress Class",
    "points": [
     "ingressClassName",
     "指定由哪個 controller 處理"
    ]
   }
  ]
 },
 "Ingress:HTTP 路由與 TLS#3": {
  "type": "table",
  "head": [
   "路徑",
   "後端 Service",
   "埠"
  ],
  "rows": [
   [
    "/",
    "web",
    "80"
   ],
   [
    "/api",
    "api",
    "8080"
   ]
  ],
  "reveal": [
   0,
   0,
   1,
   2,
   2,
   2
  ],
  "widths": [
   1,
   2,
   1
  ]
 },
 "Ingress:HTTP 路由與 TLS#7": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   1,
   1,
   3,
   4,
   4,
   4
  ],
  "nodes": [
   {
    "label": "tls.hosts",
    "sub": "shop.example.test"
   },
   {
    "label": "secretName",
    "sub": "指向 TLS Secret"
   },
   {
    "label": "TLS Secret",
    "sub": "憑證與私鑰"
   },
   {
    "label": "openssl",
    "sub": "自簽憑證 30 天"
   }
  ]
 }
}