일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 스위치
- tunneling
- ospfv3
- 명령어
- ipv6
- Chrony
- OSPF
- NAT
- stp
- OSI 7 layer
- ACL
- Redistribute
- vrrp
- Inter VLAN
- 장비
- eigrp
- eigrpv2
- 헤더
- DHCP
- Etherchannel
- GLBP
- crontab
- CKA
- 라우터
- rip
- Vlan
- ripng
- Today
- Total
목록분류 전체보기 (123)
Net Eng
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/b5JC4g/btsDQ2Lf8oq/sdGZn1Z1xwPatQFJLVCUs1/img.png)
[선수 작업]kubectl config set-context k8s --user=kubernetes-admin --cluster=kubernetesmkdir -p /srv/pv{1,2}echo "/srv/pv1/index.html" > /srv/pv1/index.htmlecho "/src/pv2/index.html" > /srv/pv2/index.htmlkubectl apply -f - [문제]작업 클러스터: k8sCreate a new PersistentVolumeClaim:Name: app-volumeStorageClass: app-hostpath-scCapacity: 10MiCreate a new Pod which mounts the PersistentVolumeClaim as a volume...
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/b5MHUv/btsDJZ3iEm4/lHllYk8H0Fqseo7uByrIX1/img.png)
[선수 지식]1. 볼륨 종류 * hostPath * emptyDir * nfs + * iscsi, fc, ... 2. PV & PVC * PV - 볼륨 정의(특성) * PVC - 볼륨 요청(특성) [선수 작업]kubectl config set-context k8s --user=kubernetes-admin --cluster=kubernetes [문제]작업 클러스터: k8sCreate a persistent volume with name app-config, of capacity 1Gi and access mode ReadWriteMany.storageClass: az-cThe type of volume is hostPath and its location is /srv/app-config. [풀이..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/Mu5BZ/btsDQaCybYz/d5l76BZMynwuFxNQKc6JfK/img.png)
[선수 작업]kubectl config set-context k8s --user=kubernetes-admin --cluster=kubernetes [문제]작업 클러스터: k8sCreate a Kubernetes secret and expose using a file in the pod.Create a Kubernetes Secret as follows:Name: super-secretDATA: password=secretpassCreate a Pod named pod-secrets-via-file, using the redis image, which mounts a secret named super-secret at /secrets.Create a second Pod named pod-secrets-..
![](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 ..