본문 바로가기

CKA &. CKAD

(104)
Service
Namespaces & Practic Test 같은 namespace에서의 호출은 단순히 서비스 네임만 호출 mysql.connect("db-service") mysql.connect("db-service") 다른 namespace로의 호출은 서비스 네임 다음에 namesapce.svc.clustername을 붙인다. dev namespace에 있는 db-service를 호출한다면 mysql.connect("db-service.dev.svc.cluster.local") mysql.connect("db-service.dev.svc.cluster.local") default namespace에서의 pod 조회 kubectl get pods kube-system namespace 에 대해서 조회할 경우 kubectl get pods --namespace=..
Practice Test - Deployment ㅁ 생성 kubectl create -f deployment-definition.yml ㅁ 조회 kubectl get deployments Deployment와 동일한 이름으로 replicaset 생성됨 kubectl get replicaset ㅁ 전체 조회 kubectl get all [Practice] ㅁ Create a new Deployment using the deployment-definition-1.yaml file located at /root/ kubectl create deployment --image=httpd:2.4-alpine httpd-frontend --dry-run=client -o yaml > httpd-deploymnet.yaml ㅁ fix error image kubec..
CKA Tip 1 (yaml) YAML 파일을 만들고 편집하는 것은 약간 어렵다. 특히 CLI에서 시험 중에 브라우저에서 터미널로 YAML 파일을 복사하여 붙여 넣기가 어려울 수 있다. 이 경우 kubectl run 명령어를 사용하면 YAML 템플릿을 생성하는 데 도움이 될 수 있으며 때로는 YAML 파일을 전혀 만들지 않고도 kubectl run 명령 만 사용하면 된다. 예를 들어 특정 이름과 이미지로 포드 또는 배포를 생성하라는 요청을받은 경우 간단히 kubectl run 명령을 실행할 수 있다. 아래 명령어 세트를 사용하고 이전 연습 테스트를 다시 시도하지만 이번에는 YAML 파일 대신 아래 명령어를 사용해보면서 많이 연습해 봐야 한다.. 참조 (시험용으로이 페이지를 북마크에 추가하십시오. 매우 편리합니다) : https://k..
Practice Test - Replicaset/ReplicationController ㅁ ReplicationController 정의 kubectl create -f rc-definition.yml kubectl get replicationcontroller kubectl get pod ㅁ Replicaset 정의 kubectl create -f replicaset-definition.ymml kubectl get replicaset kubectl get pods 기존 Replicaset 3 --> 6으로 증가하는 방법 kubectl replace -f replicaset-definition.yml kubectl scale --replicas=6 -f replicaset-definition.yml kubectl scale --replicas=6 replicaset myapp-replica..
Practice Test - Core Concept ㅁ Create a new pod with the NGINX imagekubectl run nginx --image=nginx ㅁ What is the image used to create the new pods?You must look at one of the new pods in detail to figure this outkubectl describe pod newpod kubectl get pods -o wide ㅁ Which nodes are these pods placed on?You must look at all the pods in detail to figure this outkubectl get pods -o wide ㅁ Why do you think the container 'agent..
ETCD-명령 (선택 사항) ETCD-명령 (선택 사항) ETCDCTL 유틸리티에 대한 추가 정보 ETCDCTL은 ETCD와 상호 작용하는 데 사용되는 CLI 도구입니다. ETCDCTL은 두 가지 API 버전 (버전 2 및 버전 3)을 사용하여 ETCD 서버와 상호 작용할 수 있습니다. 기본적으로 버전 2를 사용하도록 설정됩니다. 각 버전에는 다른 명령 집합이 있습니다. 예를 들어 ETCDCTL 버전 2는 다음 명령을 지원 etcdctl backup etcdctl cluster-health etcdctl mk etcdctl mkdir etcdctl set Version3에서 다른 부분 etcdctl snapshot save etcdctl endpoint health etcdctl get etcdctl put ETCDCTL_API 명..
CKA 참고 자료 Below are some references: 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