시험보기전에 해야할 것
1. Mock Exam 풀기
2. Exam Simulator Test 하기
3. 시험 dump문제 찾아서 풀어보기
4. Exam Environment Demo
참고 URL
Certified Kubernetes Administrator: https://www.cncf.io/certification/cka/
Exam Curriculum (Topics): https://github.com/cncf/curriculum
Candidate Handbook: https://www.cncf.io/certification/candidate-handbook
Exam Tips: http://training.linuxfoundation.org/go//Important-Tips-CKA-CKAD
주의사항
- 총 2시간 17문항
- 15분전에 입장하기
- 문제마다 weight가 다르니 쉬운 문제부터 풀기!!
- 66점부터 합격 (합격 메일로 통보)
- kubectl config use-context XXX로 cluster 변경해서 시험 진행
참고 강의)
https://trainingportal.linuxfoundation.org/learn/dashboard
Course: Certified Kubernetes Administrator (CKA) with Practice Tests | Udemy Business
CKA Tips!!
- Pod나 deployment 등을 만들 때 kubectl run 등과 같은 command 를 사용해서 만든다.
# Pod 생성
$ kubectl run nginx --image=nginx --dry-run=client -o yaml
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: nginx
name: nginx
spec:
containers:
- image: nginx
name: nginx
resources: {}
dnsPolicy: ClusterFirst
restartPolicy: Always
status: {}
# Deployment 생성
$ kubectl create deployment deploy-nginx --imag
e=nginx --dry-run=client -o yaml
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: deploy-nginx
name: deploy-nginx
spec:
replicas: 1
selector:
matchLabels:
app: deploy-nginx
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: deploy-nginx
spec:
containers:
- image: nginx
name: nginx
resources: {}
status: {}
- Service 관련 명령
# Create a Service named redis-service of type ClusterIP to expose pod redis on port 6379
$ kubectl expose pod redis --port=6379 --name redis-service --dry-run=client -o yaml
$ kubectl create service clusterip redis --tcp=6379:6379 --dry-run=client -o yaml
# Create a Service named nginx of type NodePort to expose pod nginx's port 80 on port 30080 on the nodes:
$ kubectl expose pod nginx --type=NodePort --port=80 --name=nginx-service --dry-run=client -o yaml
$ kubectl create service nodeport nginx --tcp=80:80 --node-port=30080 --dry-run=client -o yaml
- k8s 1.19 이상부터는 --replicas 옵션을 사용해서 deployement를 만들 수 있다.
kubectl create deployment --image=nginx nginx --replicas=4 --dry-run=client -o yaml > nginx-deployment.yaml
반응형
'Container > Kubernetes' 카테고리의 다른 글
[K8S] kube-scheduler (0) | 2024.04.25 |
---|---|
[K8S] ETCD Backup 및 Restore (0) | 2024.04.21 |
[K8S] cordon & drain (0) | 2024.04.13 |
[K8S] Taint & Toleration (0) | 2024.04.12 |
[K8S] Affinity & antiAffinity (0) | 2024.03.25 |