반응형
1.How many DaemonSets are created in the cluster in all namespaces? Check all namespaces
# k get daemonsets.apps -A
: -A 모든 네임스페이스 전부
A) 2
2. Which namespace are the DaemonSets created in?
# k get daemonsets.apps -A
A) kube-system
3. Which of the below is a DaemonSet?
# k get daemonsets.apps -A
: kube-proxy, kube-flannel-ds 중 한가지
A) kube-flannel-ds
4. On how many nodes are the pods scheduled by the DaemonSet kube-proxy
# k get daemonsets.apps -A
# k describe daemonsets kube-proxy -n kube-system
: 두가지 방법이 있다.
: get daemonsets 로 current 수량으로 확인도 가능하고,
: 좀 더 구체적으로 확인하기 위해 describe 명령어를 통해서도 가능하다.
5. What is the image used by the POD deployed by the kube-flannel-ds DaemonSet?
# k get daemonsets.apps -A
# k describe pods kube-flannel-ds -n kube-system
A) quay.io/coreos/flannel:v0.13.1-rc1
6. Deploy a DaemonSet for FluentD Logging. Use the given specifications.
-
Name: elasticsearch
-
Namespace: kube-system
- Image: k8s.gcr.io/fluentd-elasticsearch:1.20
# k create deployment elasticsearch -n kube-system --image=k8s.gcr.io/fluentd-elasticsearch:1.20 --dry-run=client -o yaml > elasticsearhc.yaml
# vi elasticsearhc.yaml
: kind 변경, 외 DaemonSet 형식에 맞게 전부 변경
# k get ds -A
완료
Tip) 쿠버 Docs 활용을 잘하자
kind 앞은 첫글자는 대문자
728x90
반응형
'cloud > k8s(문제풀이)' 카테고리의 다른 글
[cka]kodekloud-Multiple Schedulers (0) | 2022.06.13 |
---|---|
[cka]kodekloud-static pods (0) | 2022.06.13 |
[cka]kodekloud-Resources Limit (0) | 2022.06.09 |
[cka]kodekloud-Affinity (0) | 2022.06.09 |
[cka]kodekloud-Taints & Tolerations (0) | 2022.06.08 |