[Practice Test]
ㅁ How many DaemonSets are created in the cluster in all namespaces?
kubectl get daemonset --all-namespaces
ㅁ Which namespace are the DaemonSets created in?
kubectl get daemonset --all-namespaces
ㅁ On how many nodes are the pods scheduled by the DaemonSet kube-proxy
kubectl describe daemonset kube-proxy --namespace=kube-system
ㅁ What is the image used by the POD deployed by the kube-flannel-ds-amd64 DaemonSet?
kubectl describe daemonset kube-flannel-ds-amd64 --namespace=kube-system | grep Image
ㅁ Create Daemonset
- name: elasticsearch
- image: ~~
- namespace: kube-system
kubect create deployment elasticsearch --image=k8s.gcr.io/fluentd-elasticsearch:1.20 --dry-run=client -o yaml > elastic.yaml
로 Deployment Yaml을 생성 후 yaml 파일에서 kind: Deployment를 kind: Daemonset 으로 변경
namespace: kube-system 추가
또는 아래 kubernetes doc
kubernetes.io/docs/concepts/workloads/controllers/daemonset/
에서 DeamonSet Yaml 확인하여 작성
'CKA &. CKAD > Scheduling' 카테고리의 다른 글
Multiple Schedulers and Practice Test (0) | 2021.03.26 |
---|---|
Practice Test - Static Pods (0) | 2021.03.26 |
Practice Test - Resource Limits (0) | 2021.03.26 |
PODs 와 Deployments를 편집하기위한 Quick note (0) | 2021.03.26 |
Resource Limits (0) | 2021.03.26 |