일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
- stp
- eigrp
- CKA
- crontab
- DHCP
- Chrony
- NAT
- 헤더
- ipv6
- 라우터
- Inter VLAN
- Etherchannel
- ACL
- OSPF
- Vlan
- eigrpv2
- tunneling
- 스위치
- ripng
- GLBP
- ospfv3
- vrrp
- Redistribute
- rip
- 장비
- 명령어
- OSI 7 layer
- Today
- Total
목록CKA (24)
Net Eng
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cu3sor/btsDQekCva4/7kYfXcWqxCWwEcxtV939C1/img.png)
[선수 작업]kubectl config set-context k8s --user=kubernetes-admin --cluster=kubernetes [문제]Expose Configuration Settings Tasks:All operations in this question should be performed in the ckad namespace. Create a ConfigMap called web-config that contains the following two entries. - connection_string=localhost:80 - external_url=cncf.io Run a pod called web-pod with a single container running the ng..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/WNkRn/btsDJk0XJER/pQGykZpcjrYkxfBYD1F7dK/img.png)
[선수 작업]kubectl config set-context k8s --user=kubernetes-admin --cluster=kuberneteskubectl apply -f - [문제]Create the service as type NodePort with the port 32767 for the nginx pod with the pod selector app: webui. 작업 클러스터: k8s [풀이]kubectl config use-context k8s* k8s 클러스터 사용 kubectl get pods -l app=webui --show-labels* app:webui 레이블을 가진 Pod 확인 apiVersion: v1kind: Servicemetadata: name: my-serv..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cMJFNe/btsDJaEiVjG/1D1gVKEM6rUPAfeqPZBwr0/img.png)
[선수 지식]Init Container 초기화 컨테이너이 페이지는 초기화 컨테이너에 대한 개요를 제공한다. 초기화 컨테이너는 파드의 앱 컨테이너들이 실행되기 전에 실행되는 특수한 컨테이너이다. 초기화 컨테이너는 앱 이미지에는 없는 유틸kubernetes.io [선수 작업]kubectl config set-context conk8s --user=kubernetes-admin --cluster=kubernetesmkdir -p /data/cka /workdircat /data/cka/webpod.yamlkind: PodapiVersion: v1metadata: name: web-podspec: containers: - image: busybox:1.28 name: main command:..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/VkaUe/btsDHpOY4k1/rGvM8K6BrNKUkE799UI2Y1/img.png)
[선수 지식] pod, node -> cpu, mem kubectl top nodeskubectl top pods [선수 작업]kubectl config set-context k8s --user=kubernetes-admin --cluster=cluster.localmkdir -p /var/CKA2023kubectl apply -f - a=1; while true; do a=$(expr a + 1); done; resources: requests: memory: "64Mi" cpu: "250m" limits: memory: "128Mi" cpu: "1"EOFku..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/AGc9Y/btsDIvhnetd/N9WRkNa0OHm7gHQH8YSO7K/img.png)
[선수 지식]kubectl logs PODkubectl logs POD -c CONTAINER [선수 작업]kubectl config set-context hk8s --user=kubernetes-admin --cluster=kubernetesmkdir -p /var/CKA2023kubectl apply -f - while true; do [ ! -f /filenotfound.txt ] && echo "[ ERROR ] file not found"; sleep 10; doneEOF [문제]작업 클러스터: hk8sMonitor the logs of pod custom-app and: Extrat log lines corresponding to ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cAfi3p/btsDGJAenl5/j5sxasH0KrXgrdVmuIzan1/img.png)
[선수 지식]Deployment(ReplicaSet(Pod x N)) Service * ClusterIP * NodePort * Loadbalancer * ExternalName + * Headless Service => [참고] ExternalName(CNAME record) vs Headless Service(A record) * Ingress => [참고] Loadbalancer vs Ingress [선수 작업]kubectl config set-context k8s --user=kubernetes-admin --cluster=kuberneteskubectl apply -f - [문제]Reconfigure the existing deployment front-end and add..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/Wbfq3/btsDGWfsRmd/8Xe7d6CKEmJdS8Klfx8rYk/img.png)
[선수 작업]ssh node3 'systemctl disable --now kubelet'kubectl taint node node2 key1=value1:NoSchedulemkdir -p /var/CKA2023 [문제1] Check to see how many nodes are ready(not including nodes tainted NoSchedule) and write the number to /var/CKA2023/RN0001 [풀이]kubectl get nodes | grep -iw Ready* Ready 상태 Node 확인 kubectl describe node master | grep -i NoSchedulekubectl describe node node1 | grep -i NoSch..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/nzEAB/btsDGJAdOLG/8v0a6hKCBJe8pR6RSmAm0K/img.png)
[선수 지식]1. 노드 관리 - 정보 확인 kubectl get nodeskubectl get nodes -o widekubectl descirbe nodes node012. 노드 관리 - cordon/uncordon (Pod 실행을 시키지 않음 = SchedulingDisabled)kubectl cordon node01kubectl uncordon node013. 노드 관리 - drain (실행 중인 Pod 삭제 및 SchedulingDisabled)kubectl drain node01 --ignore-daemonsets --... [선수 작업]kubectl label node node1 disktype=ssdkubectl label node node2 disktype=hddkubectl labe..