망지로그

CKA - core DNS in k8s 본문

Kubernetes

CKA - core DNS in k8s

망지v 2024. 7. 3. 22:00

Where is the configuration file located for configuring the CoreDNS service?

kubectl -n kube-system describe deployments.apps coredns | grep -A2 Args | grep Corefile

 

How is the Corefile passed into the CoreDNS POD?

k describe cm coredns -n kube-system

 


default pod 에서 payroll svc lookup, node에 output

kubectl exec -it hr -- nslookup mysql.payroll > /root/CKA/nslookup.out

 

컨테이너 쉘 접근 

 

https://kubernetes.io/docs/tasks/debug/debug-application/get-shell-running-container/

 

Get a Shell to a Running Container

This page shows how to use kubectl exec to get a shell to a running container. Before you begin You need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. It is recommended to run this tuto

kubernetes.io

 

 

 

-  dns 주소 svcname.namespace.svc.~

 

https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/

'Kubernetes' 카테고리의 다른 글

CKA- kubeadm  (0) 2024.07.04
CKA - ingress  (0) 2024.07.04
CKA - service networking  (0) 2024.07.03
CKA - Networking weave  (0) 2024.07.03
CKA - CNI  (0) 2024.07.03