일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Inter VLAN
- tunneling
- ospfv3
- 라우터
- OSPF
- rip
- 스위치
- GLBP
- NAT
- ipv6
- 장비
- stp
- Redistribute
- 명령어
- eigrp
- DHCP
- Etherchannel
- eigrpv2
- Vlan
- OSI 7 layer
- 헤더
- ripng
- Chrony
- ACL
- crontab
- vrrp
- CKA
- Today
- Total
목록Cloud/Kubernetes (24)
Net Eng

[선수 작업]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..

[선수 작업]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..

[선수 지식]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:..

[선수 지식] 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..

[선수 지식]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 ..

[선수 지식]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..

[선수 작업]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..

[선수 지식]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..