-
Notifications
You must be signed in to change notification settings - Fork 0
/
考试说明.txt
110 lines (72 loc) · 4.37 KB
/
考试说明.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
报名优惠券地址:
https://cloud.tencent.com/developer/article/1394491 (我报名的时候是8折,优惠了60美金)
1. # 考试要求
1. 考试环境:房间一个,要求安静无人,桌面干净。
2. 考试方式: 只使用chrome浏览器,不会使用到其他软件。通过浏览器调用摄像头,麦克风,桌面分享等功能。
3. 考官交流: 与对方聊天全程打字,对方全程监控,并下达各种指令。对方会要求我们分享摄像头,分享桌面,没事不要乱动。全英文交流,所以只要英文阅读能力不错就行,其他时间可以全程 输入ok!
4. 考前准备步骤:
1 在https://www.cncf.io/certification/CKA/处用信用卡报名,在https://examslocal.com 处预订考试时间,直接预约15 天以后考试即可,时间够了,给自己紧迫感。
2 看好华为云视频,主要是操作部分<https://www.bilibili.com/video/av46687897?from=search&seid=2972341230258168358> 。
3 官方文档一定要熟悉。<https://kubernetes.io/docs/home/>
4 按照几套真题题目做一遍(就做这个,每一个都了解透彻就够了,老外很懒,每次考试90%的
题目都是相似的,7月14号的一定要滚瓜烂熟,文档都是按照考题顺序记录下来的)
5 练习集群可以通过本地虚拟机搭建,也可以申请华为云免费的体验集群。部署集群的方式(3.K8S集群部署)
注意点:
1 最好有签证,没有的话使用身份证和带英文名字的证件即可,比如驾照翻译件。
2 考试时的环境不能使用右键复制,mac 是原先的复制黏贴键,windows 是使用ctrl+insert
和shift+insert,windows 笔记本一定要带外接键盘,不然按insert 有点麻烦,考试模拟的时
候,记得熟悉这样的复制黏贴操作。
3 考试时每次做题目前,记得看看是不是需要切换上下文环境,考试会给相应命令,需要的
话,不要忘记切换,考试有好几个集群,上下文切换会转到不同的集群。注意要关注是否处
在跳板机,某个集群某个node 的普通用户还是特殊用户,退出到跳板机使用的是exit 命令。
4 每个创建的yaml 你要知道是哪一题哪一个小题,来命名,否则检查时会搞混。
5 考试时只允许有考试网站和k8s 文档两个标签页。你可以用书签记录下有用的k8s 文档网
站
6 考试第一次没过没关系,有两次机会,记住题目差的不多,熟悉环境,熟悉题目第二次过
就行。
2. # 考试技巧
1. 要翻墙。要求稳定的梯子。
2. 最好安排早上: 因为国际网络出口早上比较轻松。我就是预约9点的。
3. 加快考试速度。
2.1使用命令补全:
```
source <(kubectl completion bash)
```
2.2使用别名;
```
alias kc='kubectl'
alias kgp='kubectl get pods'
alias kgs='kubectl get svc'
```
2.3能用命令行,就不要自己写yaml文件;
2.4 能够从kubernetes.io中复制粘贴的,就不要自己敲命令;复制粘贴我用的是鼠标的粘贴复制,没有使用shift+insert,ctrl+insert,不支持ctrl+c,ctrl+v。
4. 注意审题,认真做题
3.1中英文切换审题,特别是有歧义的时候。
3.2 注意切换运行环境,kubectl config set-config。
5. 命令行和yaml问题
考试中有关kubernetes本身的题目,除了pv和pvc,其他情况下基本都可以使用kubectl命令行去转换成yaml文件,没有命令行的可以直接粘贴复制kubernetes.io文件,请各位多加练习。可以将kubectl 命令行撸个好几遍。
### 常用举例
生成pod
```
kubectl run pod --image=nginx --restart=Never --requests=
```
生成job
```
kubectl run job --image=nginx --restart=OnFailure
```
生成deploy
```
kubectl run deploy --image=nginx --replicas=2
```
生成svc
```
kubectl expose deployment sd2 --type=ClusterIP --target-port=80 --name=sd2
```
生成名称空间
```
kubectl create ns ns
```
生成configmap
```
kubectl create configmap db2 --from-literal=nt=nt
```