공부/CKA

    CKA 자격증 취득을 위한 학습 방법 및 시험 팁 및 후기<img src=">

    CKA 자격증 취득을 위한 학습 방법 및 시험 팁 및 후기

    자격증 취득 이유cka를 통해 얻고자 하는 것은 쿠버네티스에 대해 아는 것과, 관리자로써 어느정도 필요한 능력과 검증할 자료를 가지고자 하기 위해서 이다. 인프라 DevOps 에 관심이 있기도 해서 공부할 겸 자격증을 취득하고자 했다.   학습방법1cka 강의를 검색하면 가장 많이 추천하는 Udemy 강의 를 신청했다. 강좌 후반부에 있는 Mock Exam은 최소 2번 이상 하는 것을 추천한다. udemy 에서 연습할 수 있는 실습환경인 kubekloud 도 제공해준다.     2따배쿠 강의 유튜브 구독 or 패스트캠퍼스 강의 유데미에서 이해안가는 내용을 따배쿠에서 들으면 도움이 된다. 즐겨찾기에 대해서도 공유해준다. 근데 이제는 시험에서 즐겨찾기 기능을 사용할 수가 없다. 즐겨찾기 기능 없이 문서 내에..

    [CKA] Udemy - Mock Exam3 문제풀이

    [CKA] Udemy - Mock Exam3 문제풀이

    Q1.Create a new service account with the name pvviewer. Grant this Service account access to list all PersistentVolumes in the cluster by creating an appropriate cluster role called pvviewer-role and ClusterRoleBinding called pvviewer-role-binding. Next, create a pod called pvviewer with the image: redis and serviceAccount: pvviewer in the default namespace. ServiceAccount: pvviewer ClusterRole:..

    [CKA] Udemy - Mock Exam2 문제풀이

    Q1. Take a backup of the etcd cluster and save it to /opt/etcd-backup.db. A1. controlplane ~ ➜ cat /etc/kubernetes/manifests/etcd.yaml controlplane ~ ➜ ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379 \ --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key \ snapshot save /opt/etcd-backup.db Q2.Create a Pod called re..

    [CKA] Udemy - Mock Exam1 문제풀이

    Q1. Deploy a pod named nginx-pod using the nginx:alpine image. Once done, click on the Next Question button in the top right corner of this panel. You may navigate back and forth freely between all questions. Once done with all questions, click on End Exam. Your work will be validated at the end and score shown. Good Luck! Name: nginx-pod Image: nginx:alpine A1. kubectl run nginx-pod --image=ngi..

    CKA 자격증 신청하기

    CKA 자격증 신청하기

    https://training.linuxfoundation.org/certification/certified-kubernetes-administrator-cka/   할인코드가 있으면 입력한다         초록색 체크표시 내용을 완료  확인이되면 주황색 스케줄 표시가 활성화가 된다.   시험 날짜 선택   나라와 시간을 선택하면 시험볼 수 있는 날짜 및 시간이 나온다. 시험은 2일전에는 신청해야한다.    테스트 환경 제공 및 2번의 테스트 문제 제공https://killer.sh/ 킬러는 아래 표시된 박스로 이동하면 확인할 수 있다.  2개의 테스트를 제공하는데 나는 풀어보지는 않았다.킬러는 문제를 풀어보기 보다는 ..

    [CKA] Udemy - Troubleshooting - control plane failure 문제풀이

    [CKA] Udemy - Troubleshooting - control plane failure 문제풀이

    Q1.The cluster is broken. We tried deploying an application but it's not working. Troubleshoot and fix the issue. Start looking at the deployments. A1. 작동안하는 서비스 찾기 kubectl get no kubectl get po pod에 Pending 상태의 것 발견 kube-system 을 조회해 kube-scheduler 의 상태를 확인한다. kubectl get pods -n kube-system kube-scheduler의 manifast 파일을 수정해야 한다.

    [CKA] Udemy - Troubleshooting - worker node failure 문제풀이

    [CKA] Udemy - Troubleshooting - worker node failure 문제풀이

    Q1. Fix the broken cluster A1. 노드 조회 kubectl get nodes NotReady 노드 접속 ssh node01 컨테이너와 kubelet 상태 조회 systemctl status containerd systemctl status kubelet kubelet 이 작동하지 않음 kubelet 실행시키기 systemctl start kubelet 실행되었는지 상태 확인하기 systemctl status kubelet 이미지처럼 Active 에 active 표시가 되어있어야 한다. node 접속을 종료하고 상태를 조회한다. kubectl get nodes Q2. The cluster is broken again. Investigate and fix the issue. A2. 노드..

    [CKA] kubectl JSON Path 사용법

    JSON이란 JSON 데이터는 객체 {} ,배열 [] 형태를 가진다. 쿠버네티스에서 필요한 정보만 걸러내어 확인할 수 있게 사용한다. kubectl get -o json kubectl get pods -o jsonpath='{표현식}' https://kubernetes.io/docs/reference/kubectl/jsonpath/ 문법 요소 문법 뜻 $ 루트노드, JSON Path의 모든 표현식은 이것으로 시작 @ 현재노드 . 하위노드 .. 중첩된 전체 하위 요소들 [] 배열 인덱스 * 모든 요소와 매칭되는 와이들 카드 ? (boolean expression) 조건부 필터 표현식 json path 연습문제 1. Get all pod names $[*].metadata.name [ { "apiVersio..

    [CKA] 문제풀이 - Cluster Upgrade - only Master

    [CKA] 문제풀이 - Cluster Upgrade - only Master

    문제 작업 클러스터 : kubelet config use-context k8s upgrade system : hk8s-m Given an existing Kubernetes cluster running version 1.22.4 , upgrade all of the Kubernetes control plane and node components on the master node only to version 1.23.3 Be sure to drain the master node before upgrading it and uncordon it after the upgrade. 클러스터 변경하기 kubelet config use-context hk8s-m kubeadm 업그레이드 https://kubernet..

    [CKA] 문제풀이 -  따배쿠 02. Pod 생성하기

    [CKA] 문제풀이 - 따배쿠 02. Pod 생성하기

    강의 : 따배쿠 02. Pod 생성하기 문제 1. 사용자 변경 kubectl config use-context k8s 2. 네임스페이스 만들기 kubectl create namespace ecommerce 3. 네임스페이스 안에 파드 생성하기 ## --dry-run=client 을 사용해 실행하는데 문제가 없는지 확인한다 kubectl run eshop-main --image=nginx:1.17 --env=DB=mysql --namespace=ecommerce --dry-run=client ## 환경 변수가 제대로 들어갔는지 yaml 로 확인하기 kubectl run eshop-main --image=nginx:1.17 --env=DB=mysql --namespace=ecommerce --dry-run=..