一、如何报名
报考地址:https://www.cncf.io/certification/cka,我是在做活动的时候买的,好像是可以打六折,还有培训课程,挺便宜的,大家可以关注一下黑色星期五呀,或者网购星期一等美国的活动。
小福利:报名优惠码(DCUBEOFFER),可以优惠16%,相当于300大洋人民币哦~
二、考试大纲
考纲地址:https://github.com/cncf/curriculum
我们就拿最新的 1.17
版本来说,其实和版本关系也不太大,因为很多新版本的新功能官方并不考察,主要还是一些基本的用法。
5% - Scheduling
- Use label selectors to schedule Pods.
- Understand the role of DaemonSets.
- Understand how resource limits can affect Pod scheduling.
- Understand how to run multiple schedulers and how to configure Pods to use them.
- Manually schedule a pod without a scheduler.
- Display scheduler events.
- Know how to configure the Kubernetes scheduler.
5% - Logging/Monitoring
- Understand how to monitor all cluster components.
- Understand how to monitor applications.
- Manage cluster component logs.
- Manage application logs.
8% - Application Lifecycle Management
- Understand Deployments and how to per form rolling updates and rollbacks.
- Know various ways to configure applications.
- Know how to scale applications.
- Understand the primitives necessary to create a self-healing application.
11% - Cluster Maintenance
- Understand Kubernetes cluster upgrade process.
- Facilitate operating system upgrades.
- Implement backup and restore methodologies.
12% - Security
- Know how to configure authentication and authorization.
- Understand Kubernetes security primitives.
- Know to configure network policies.
- Create and manage TLS certificates for cluster components.
- Work with images securely.
- Define security contexts.
- Secure persistent key value store.
7% - Storage
- Understand persistent volumes and know how to create them.
- Understand access modes for volumes.
- Understand persistent volume claims primitive.
- Understand Kubernetes storage objects.
- Know how to configure applications with persistent storage.
10% - Troubleshooting
- Troubleshoot application failure.
- Troubleshoot control plane failure.
- Troubleshoot worker node failure.
- Troubleshoot networking.
19% - Core Concepts
- Understand the Kubernetes API primitives.
- Understand the Kubernetes cluster architecture.
- Understand Services and other network primitives.
11% - Networking
- Understand the networking configuration on the cluster nodes.
- Understand Pod networking concepts.
- Understand service networking.
- Deploy and configure network load balancer.
- Know how to use Ingress rules.
- Know how to configure and use the cluster DNS.
- Understand CNI.
12% - Installation, Configuration & Validation
- Design a Kubernetes cluster.
- Install Kubernetes masters and nodes.
- Configure secure cluster communications.
- Configure a Highly-Available Kubernetes cluster.
- Know where to get the Kubernetes release binaries.
- Provision underlying infrastructure to deploy a Kubernetes cluster.
- Choose a network solution.
- Choose your Kubernetes infrastructure configuration.
- Run end-to-end tests on your cluster.
- Analyse end-to-end tests results.
- Run Node end-to-end tests.
- Install and use kubeadm to install, configure, and manage Kubernetes clusters
三、考试注意事项
3.1、考试形式
- 3个小时, 24道题目。 需要在封闭无人的房间进行, 要求桌面没有其他东西, 并且房间没有人进出
- 在线考试, 需要网络环境十分稳定, 并且 *** 也需要稳定, 不然断线了的话会很麻烦
- 考试全部都是实际操作题, 会给出多个 kubernetes 集群, 要求你完成指定的操作
- 考试题目的分数按照操作的难度变化, 1~8分不等
- 开始需要出示有英文名字的官方证件, 一般护照最好。 如果没有护照可以使用身份证+英文其他证明的方式
- 考试中是可以查阅 kubernestes.io 的官网的, 并且可以使用事先定义好的书签, 来快速查找到自己之前查看过得内容
- 考试题目普遍不难, 但是细节上批改地非常严格, 需要做题时仔细阅读题干
- 如果笔记本的分辨率比较小,或者屏幕比较小,不方便操作,允许笔记本外接一个大的显示器进行考试
- 在考试过程中, 考官需要你进行共享屏幕和共享摄像头, 并且摄像头需要完整地能够看到你的脸的
3.2、考试界面
- 在考试过程中,可以选择具体的语言, 我考试的时候记得有三种语言可选,中文,英文,日文。 但是中文翻译有时不是很准确, 因此需要对照进行
- 考试过程中可以使用记事本,方便我们进行记录与修改,因为终端比较卡,我们可以先把命令写在记事本上,然后再复制到终端进行执行
3.3、参加考试
在我们预约好考试时间之后,我们会收到官方的邮件,点击里面的地址,等待考试的开始,在倒计时还剩余15分钟左右,我们就可以提前进入,以供监考老师检查我们的环境。
3.4、应答技巧
- 只允许打开多一个Chrome的 Tab,考生可以使用Chrome或Chromium浏览器打开一个新的标签页,以便访问 https://kubernetes.io/docs/ 及其子域、https://github.com/kubernetes/ 及其子域或 https://kubernetes.io/blog/ 。 考试期间不能打开其他标签页,或浏览到其他站点。 以上允许的网站可能包含指向外部网站的链接,考生有责任不点击任何导致他们导航到不允许的域的链接。
-
考生有义务甄别不是上述两个地址的网址,千万不要点开!
-
建议平时多练习,总结kubectl的一些技巧;了解k8s资源yaml文件的结构,参考k8s的api文档学习里边相关参数的含义,可以按着官方文档把里边的例子搞一搞。
-
可以事先把官方文档分类放到浏览器的收藏夹里(考试用的Google Chrome),这样遇到相关内容的考题就可以快速打开查看。
- 考试的时候网络一定要好,毕竟是国外的考试。
- 多多利用记事本功能。
3.5、答题技巧
1、审题:
审题一定要仔细再仔细。题目有中文翻译的版本,但标点符号特别少,断句可能会出现问题,建议切换成英文版本再看一遍。
其中有一题是关于 DNS 查询的,把查询结果写入指定的文件中,这里请注意,中文写入的文件和英文版本写入的文件不一样,中文的文件首字母变成了大写,所以答题完之后,在英文版本下检查一遍所有文件。
2、答题策略
整场考试总计24道题,分值高的题目花费的时间较多,我遇见的是集群故障排查、和 TLS Bootstraping,以及节点失联、一般较为靠后。但不是所有分值高的题目都在最后,(我的最后一题是创建 PV,2%)。合理规划答题策略。
3、网络问题
根据同行交流经验所得,CKA 考试普遍网络较慢,表现为考试系统 Lost Connection,终端反应较慢、无法进入终端的情况:
Lost Connection:在考试计时器停止后,考官会给你相应的额外时间。
无法进入终端:这种情况使用考试系统上的 reflash exam window 按钮。刷新后重新进入终端,此时会退出特权模式,需要重新使用 sudo -i 进入。且bash环境需要重新配置。(bash这块不确定,反正kubectl的自动补全我是执行了好几次)
终端反应慢:这块无解,只能重其他技巧节省时间。
不要刷新浏览器!不要刷新浏览器!不要刷新浏览器!刷新浏览器会导致考试被终止。
4、节省时间的技巧
source <(kubectl completion bash)
#创建Pod
kubectl run <podname> --image=<imagename> --generator=run-pod/v1
#创建Deployment
kubectl run <deploymentname> --image=<imagename>
#暴露Service
kubectl expose <deploymentname> --port=<portNo.> --name=<svcname>
- 养成使用
--dry-run
、kubectl apply -f
、kubectl delete -f
的习惯,同时将答案和 yaml 写入到文件里,方便根据命令模板修改 yaml,以及后面检查答案时重做题目。
- 见到不懂或忘记的命令参数,甭管什么 kubectl,etcdctl 的命令,盘他 -h,-h是万能的。里面有示例
- 最后,考试环境中一定要留意 k8s 环境和尤其是主机名和用户名,默认可以使用 ssh 进入 node, 进入node做完题目后记得退出,不然节点内是无法ssh到下一个题目的node当中去的,节点内终端一般显示
student@<worknodename>
3.6、与考官交流
考试全程与考官在Live Chat上英文交流(文字),考前考官会跟你提示注意事项。考验平时英语作文词汇量的时候到了。国外的考官都很人性化的,考试中有意外状况,询问考官,并向考官争取你应有的权益。
- 一开始考官会让你展示你的证件,直接护照就可以,如果没有,可以是信用卡,护照的有效期也要展示出来。
- 然后考官会让你拿摄像头环绕考试环境一周,记得桌子上不要放任何书本和电子产品。
- 然后考官会让我们打开屏幕监控,把所有的屏幕都放在监控列表中,因为我接了显示器,所以我有两个屏幕
- 最后考官会告诉我们一些注意事项,比如 记事本功能,以及可以查阅哪些网站资料等等
考试过程中,我们的头要始终在监控图像中,嘴要闭着,不然以为你在说话,脸部不要有什么小动作。
欢迎大家扫码关注,获取更多信息
CKA 报考指南与准备事项
原文:https://blog.51cto.com/wzlinux/2483807