분류 전체보기 (326) 썸네일형 리스트형 [CKA] Kubernetes Troubleshooting (2) [문제] Not Ready 상태의 노드 활성화 A Kubernetes worker node, named hk8s-w2 is in state NotReady. Investigate why this is the case, and perform any appropriate steps to bring the node to a Ready state, ensuring that any chnages are made permanent. Troubleshooting 문제 풀이 방법 - docker, kubelet , kube-proxy, cni 가 동작중인지 확인 필요 (단계별로 점검) [풀이] Not Ready 상태 노드 확인 및 접근 Not Ready 상태 노드 확인 # kubectl get nodes Not Rea.. [CKA] Kubernetes Troubleshooting (1) [문제] Not Ready 상태의 노드 활성화 A kubernetes worker node, named kh8s-w2 is in state NotReady. Investigate why this is the case, and perform any appropriate steps to bbring the node to a Ready state, ensuring that any changes are mate permanent. ※ worker node의 동작 원리 work node 구성 요소 - docker : 컨테이너를 동작시켜주는 엔진 - kubelet : 클러스터를 운영해주는 역할 - kube-proxy : 쿠버네티스 환경에서 클라이언트 커넥션을 받아주는 역할(네트워크 구성) worker 노드에는 다음.. [CKA] Kubernetes Upgrade [문제] Cluster Upgrage - only Master upgrade system : k8s-master 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. [풀이] 설치 순서 및 update 필요한 내역 Master(api, etcd, scheduler, controller..), Worker1,.. [CKA] Check Resource Information [문제] - List all 'PV's sorted by name saving the full kubectl output to /var/CKA2022/my_volumes. - Use kubectl's own functionally for sorting the output, and do not manipulate it any further. [풀이] Kubernetes docs에서 cheatsheet 검색 후 sort 검색하여 참고 https://kubernetes.io/docs/reference/kubectl/cheatsheet/ # kubectl get pv --sort-by=.metadata.name > /var/CKA/my_volumes # cat /var/CKA/my_volumes [참고] - 유.. [CKA] Persistent Volume Claim을 사용하는 Pod 운영 [문제] Application With Persistent Volume Claim * Create a new PersistentVolumeClaim: Name: app-volume StorageClass: az-c Capacity: 10Mi * Create a new Pod which mounts the PersistentVolumeClaim as a volume: Name: web-server-pod Image: nginx Mount path: /usr/share/nginx/html * Configure the new Pod to have ReadWriteMany access on the volume. [풀이] 아래 docs 링크의 PersistentVolumeClaim 예제 참고 https://kub.. [CKA] Persistent Volume 생성 PV 란? - 퍼시스턴트볼륨 (PV)은 관리자가 프로비저닝하거나 스토리지 클래스를 사용하여 동적으로 프로비저닝한 클러스터의 스토리지이다. https://kubernetes.io/ko/docs/concepts/storage/persistent-volumes/ 퍼시스턴트 볼륨 이 페이지에서는 쿠버네티스의 퍼시스턴트 볼륨 에 대해 설명한다. 볼륨에 대해 익숙해지는 것을 추천한다. 소개 스토리지 관리는 컴퓨트 인스턴스 관리와는 별개의 문제다. 퍼시스턴트볼륨 서 kubernetes.io Access 종류 - RWO : Read Write Once- RWX : Read Wirte Many- ROX : Read Only Many Storage class - 관리자가 제공하는 스토리지의 classes 를 설명할 수 있.. [CKA] Ingress 구성 Ingress 란? - 인그레스는 클러스터 외부에서 클러스터 내부 서비스로 HTTP와 HTTPS 경로를 노출한다. 트래픽 라우팅은 인그레스 리소스에 정의된 규칙에 의해 컨트롤된다. - ingress 관련 내용은 아래 docs 참고 https://kubernetes.io/ko/docs/concepts/services-networking/ingress/ 인그레스(Ingress) 기능 상태: Kubernetes v1.19 [stable] 클러스터 내의 서비스에 대한 외부 접근을 관리하는 API 오브젝트이며, 일반적으로 HTTP를 관리함. 인그레스는 부하 분산, SSL 종료, 명칭 기반의 가상 호스팅을 제공 kubernetes.io [문제] 1. Applicaton Service 운영 - ingress-ngin.. [CKA] Secret 운영 Secret 이란? - key:value 타입으로 데이터 저장 - 데이터가 BASE64로 인코딩된 ASCII text가 들어감 - Binary Data는 ASCII text로 변환되어 BASE64로 인코딩 되어 저장 - BASE64는 암호화가 아님 ※ base64 확인 # echo "a" | base64 YQo= # echo "YQo=" | base64 -d a [문제] Create a kubernetes secret and expose using a file in the pod. 1. Create a kubernetes Secret as follows: - Name : super-secret - DATA : password=secretpass 2. Create a Pod named pod-secrets.. 이전 1 ··· 24 25 26 27 28 29 30 ··· 41 다음