분류 전체보기 (345) 썸네일형 리스트형 Rolling Update and Rollout [Summarize Command] ㅁ Create kubectl create -f deployoment-definition.yml ㅁ Get kubectl get deployments ㅁ Update kubectl apply -f deployment-definition.yml kubectl set image deployment/myapp-deployment nginx=nginx:1.9.1 ㅁ Status kubectl rollout status deployment/myapp-deployment kubectl rollout history deployment/myapp-deployment ㅁ Rollback kubectl rollout undo deployment/myapp-deployment [Pract.. Application Logs Logs - Docker docker run -d kodekloud/event-simulator docker logs -f ecf Logs - Kubernetes event-simulator.yaml apiVersion: v1 kind: Pod metadata: name: event-simulator-pod spec: containers: - name: event-simulator image: kodekloud/event-simulator kubectl create -f event-simulator.yaml kubectl logs -f event-simulator-pod event-simulator.yaml apiVersion: v1 kind: Pod metadata: name: event-simulat.. Monitoring Cluster Component minikube minikube addons enable metrics-server others git clone https://github.com/kubernetes-incubator/metrics-serve kubectl create -f deploy/1.8+/ [View] kubectl top node kubectl top pod [Practice Test] ㅁ We have deployed a few PODs running workloads. Inspect it kubectl get pod ㅁ Let us deploy metrics-server to monitor the PODs and Nodes. Pull the git repository for the deployment files git cl.. Configuring Kubernetes Scheduler ㅁ Deploy Additional Scheduler wget https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kube-scheduler kube-scheduler.service ExecStart=/usr/local/bin/kube-scheduler \\ --config=/etc/kubernetes/config/kube-scheduler.yaml \\ --scheduler-name=default-scheduler my-custom-scheduler.service ExecStart=/usr/local/bin/kube-scheduler \\ --config=/etc/kubernetes/config/kube-sc.. Multiple Schedulers and Practice Test ㅁ Deploy Additional Scheduler wget https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kube-scheduler kube-scheduler.service ExecStart=/usr/local/bin/kube-scheduler \\ --config=/etc/kubernetes/config/kube-scheduler.yaml \\ --scheduler-name=default-scheduler my-custom-scheduler.service ExecStart=/usr/local/bin/kube-scheduler \\ --config=/etc/kubernetes/config/kube-sc.. Practice Test - Static Pods kubelet이 지정하는 Directory는 어느 Directory에나 될 수 있으나 그 디렉토리안에 반드시 Static POD의 Definition Yaml 파일이 있어야 한다. ps -aux | grep kubelet 을 통해 config 값의 위치를 확인할 수 있다. root 4835 0.0 0.1 4003092 107740 ? Ssl 06:39 1:06 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --network-plugin=cni --pod-infra-con.. Practice Test - Daemon Sets [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 ku.. Practice Test - Resource Limits ㅁ A pod named "rabbit" is deployed. Identify the CPU requirements set on the Pod in the current(Default) namespace kubectl get pod rabbit -o yaml > rabbit-pod.yaml vi rabbit-pod.yaml or kubectl describe pod rabbit ㅁ Delete the rabbit Pod kubectl delete pod rabbit ㅁ Inspect the pod elephant and identify the status kubectl describe pod elephant The status 'OOMKilled' indicates that the pod ran out.. 이전 1 ··· 17 18 19 20 21 22 23 ··· 44 다음