Day 02:CKA簡介
Kubernetes 簡介
Kubernetes是現在最熱門的分散式系統架構。簡單來說,就是將各個伺服器 (Server) 當成節點 (Node) ,使用一套系統來集中管理,在各個節點上部署容器 (Container) 來執行各種任務。而這些任務可大可小,有可能是網站的後端、深度學習用來對資料進行預處理的小程式,甚至只是一個只會定期發送”Hello world!”的腳本。
而早期的版本是以Docker為基礎,使用其當作預設CRI (容器運行時街口, Container Runtime Interface) 來建立容器。 而在版本1.24以後,若是想要繼續使用Docker來建造容器,則需要安裝cri-docker。
CNCF之Kubernetes證照
- CKA (Certified Kubernetes Admin, Kubernetes 管理員認證)
- CKAD (Certified Kubernetes Application Developer, Kubernetes 應用程式開發者認證)
- CKS (Certified Kubernetes Security Specialist, Kubernetes 認證安全專家,須先通過CKA認證)
CKA簡介
- Cluster Architecture, Installation & Configuration (25%)
- Manage role based access control (RBAC)
- Use Kubeadm to install a basic cluster
- Manage a highly-available Kubernetes cluster
- Provision underlying infrastructure to deploy a Kubernetes cluster
- Perform a version upgrade on a Kubernetes cluster using Kubeadm
- Implement etcd backup and restore
- Workloads & Scheduling (15%)
- Understand deployments and how to perform rolling update and rollbacks
- Use ConfigMaps and Secrets to configure applications
- Know how to scale applications
- Understand the primitives used to create robust, self-healing, application deployments
- Understand how resource limits can affect Pod scheduling
- Awareness of manifest management and common templating tools
- Services & Networking (20%)
- Understand host networking configuration on the cluster nodes
- Understand connectivity between Pods
- Understand ClusterIP, NodePort, LoadBalancer service types and endpoints
- Know how to use Ingress controllers and Ingress resources
- Know how to configure and use CoreDNS
- Choose an appropriate container network interface plugin
- Storage (10%)
- Understand storage classes, persistent volumes
- Understand volume mode, access modes and reclaim policies for volumes
- Understand persistent volume claims primitive
- Know how to configure applications with persistent storage
- Troubleshooting (30%)
- Evaluate cluster and node logging
- Understand how to monitor applications
- Manage container stdout & stderr logs
- Troubleshoot application failure
- Troubleshoot cluster component failure
- Troubleshoot networking
這些是從CNCF找到的考試範圍,可以發現範圍非常的廣,很多東西都是在準備考試之前根本沒摸過的,像是etcd的備份與還原。
參考資料
https://www.gushiciku.cn/pl/pupM/zh-tw
https://medium.com/@Appletone/cka-考試全攻略流程-3a28d1b73eea
https://training.linuxfoundation.org/certification/certified-kubernetes-administrator-cka/