CKA

CKA (Certified Kubernetes Administrator) #

Pass CKA on 2024/12 #

2024真题 #

2024 CKA考试

K8S认证 2024年CKA考题汇总(解析+答案)

【CKA&CKS认证】2024最详细CKA认证考试教程,手把手带你11小时轻松拿下CKA认证(kubernetes/k8s/CKA考试/CKA认证/CKA证书)

不再迷茫!2024年CKA真题全解,专家带你逐一击破考点!

Articles #

https://www.cnblogs.com/yangmeichong/p/17971901

https://juejin.cn/post/7330079146515988519

https://blog.csdn.net/weixin_53851491/article/details/137040823

Goal #

English, Chinese

CNCF Project Desc, Kubernetes, Github

CKA-upcoming-2024/12

CNCF Curriculum

CKA 2023 Exam Objectives #

These are the exam objectives you review and understand in order to pass the test.



🌈 Cluster Architecture, Installation, and Configuration 25% #

  1. Manage role based access control

    • Lab: RBAC with Kubernetes in Minikube
  2. Use kubeadm to install a basic cluster

  3. Manage a highly available Kubernetes cluster

  4. Provision underlying infrastructure to deploy Kubernetes cluster

  5. Peform a version upgrade on Kubernetes cluster using kubeadm

  6. Implment etcd backup and restore

    Kubecon Europe 2020: Kubeadm deep dive

sample commands used during backup/restore/update of nodes

#etcd backup and restore brief
export ETCDCTL_API=3  # needed to specify etcd api versions, not sure if it is needed anylonger with k8s 1.19+ 
etcdctl snapshot save -h   #find save options
etcdctl snapshot restore -h  #find restore options

## possible example of save, options will change depending on cluster context, as TLS is used need to give ca,crt, and key paths
etcdctl snapshot save /backup/snapshot.db  --cert=/etc/kubernetes/pki/etcd/server.crt  --key=/etc/kubernetes/pki/etcd/server.key --      cacert=/etc/kubernetes/pki/etcd/ca.crt


# evicting pods/nodes and bringing back node back to cluster
kubectl drain  <node># to drain a node
kubectl uncordon  <node> # to return a node after updates back to the cluster from unscheduled state to Ready
kubectl cordon  <node>   # to not schedule new pods on a node

#backup/restore the cluster (e.g. the state of the cluster in etcd)


# upgrade kubernetes worker node
kubectl drain <node>
apt-get upgrade -y kubeadm=<k8s-version-to-upgrade>
apt-get upgrade -y kubelet=<k8s-version-to-upgrade>
kubeadm upgrade node config --kubelet-version <k8s-version-to-upgrade>
systemctl restart kubelet
kubectl uncordon <node>


#kubeadm upgrade steps
kubeadm upgrade plan
kubeadm upgrade apply

🌈 Workloads & Scheduling – 15% #

  1. Understand deployments and how to perform rolling update and rollbacks
  2. Use ConfigMaps and Secrets to configure applications
  1. Know how to scale applications
  1. Understand the primitives used to create robust, self-healing, application deployments
  1. Understand how resource limits can affect Pod scheduling
  2. Awareness of manifest management and common templating tools

🌈 Services & Networking – 20% #

  1. Understand host networking configuration on the cluster nodes

  2. Understand connectivity between Pods

  3. Understand ClusterIP, NodePort, LoadBalancer service types and endpoints

  4. Know how to use Ingress controllers and Ingress resources

  5. Know how to configure and use CoreDNS

  6. Choose an appropriate container network interface plugin

🌈 Storage – 10% #

  1. Understand storage classes, persistent volumes
  2. Understand volume mode, access modes and reclaim policies for volumes
  3. Understand persistent volume claims primitive
  4. Know how to configure applications with persistent storage
StorageClass, PersistentVolume, and PersitentVolumeClaim examples

#### Storage Class example
#

#### Persistent Volume Claim example
#
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: local-pvc
spec:
  accessModes:
  - ReadWriteOnce
  storageClassName: local-storage-sc
  resources:
    requests:
      storage: 100Mi

## Persistent Volume example
#
apiVersion: v1
kind: PersistentVolume
metadata:
  name: local-pv
spec:
  accessModes:
  - ReadWriteOnce
  capacity:
    storage: 200Mi
  local:
    path: /data/pv/disk021
  persistentVolumeReclaimPolicy: Retain
  storageClassName: local-storage-sc
  volumeMode: Filesystem

###  Pod using the pvc
#
apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    name: nginx
spec:
  containers:
  - name: nginx
    image: nginx
    volumeMounts:
      - name: local-persistent-storage
        mountPath: /var/www/html
  volumes:
    - name: local-persistent-storage
      persistentVolumeClaim:
        claimName: local-pvc

🌈 Troubleshooting – 30% #

  1. Evaluate cluster and node logging
  2. Understand how to monitor applications
  3. Manage container stdout & stderr logs
  4. Troubleshoot application failure
  5. Troubleshoot cluster component failure
  6. Troubleshoot networking

Tips: #

Mock Exams #

序号题目Note
第一题RBAC访问控制
第二题Node节点维护
第三题K8S集群版本升级
第四题ETCD数据库备份及恢复
第五题NetworkPolicy网络策略
第六题Service四层负载
第七题Ingress七层负载
第八题deployment扩容
第九题调度pod到指定节点
第十题统计Ready状态节点数量
第十一题创建多容器的pod
第十二题按要求创建PV
第十三题创建和使用PVC
第十四题监控pod的日志
第十五题Sidecar代理
第十六题查看cpu使用率最高的pod
第十七题排查集群中故障节点

👍 CKA Certification Exam Guide For CKA Aspirants

https://blog.csdn.net/weixin_45310323/article/details/132650026

https://www.xjx100.cn/news/251445.html?action=onClick

互联网最全cka真题解析-2022.9.9

😇91 道面试题

👍 cka Practice Test

k8s学习-CKA考试必过宝典

cka Exercises

CKA、CKAD考试经验, CKAD-exercises

Reference #

CKA (Certified Kubernetes Administrator)

👍 Kubernetes Shorts video series, Github, Website

Storge: Object vs Block vs FileSystem

Killer Shell CKA

Reference2 #

https://www.itexams.com/exam/CKA

👍 cka-crash-course

CKA Upcoming Program Changes –> 2024.11