nslookup 명령을 제공하는 컨테이너를 실행하도록 kubectl run을 이용하자
$ kubectl run -i --tty --image busybox:1.28 dns-test --restart=Never --rm
- nslookup web-0.nginx 입력
Server: 10.0.0.10
Address 1: 10.0.0.10 kube-dns.kube-system.svc.cluster.local
Name: web-0.nginx
Address 1: 10.244.1.6
- nslookup web-1.nginx 입력
Server: 10.0.0.10
Address 1: 10.0.0.10 kube-dns.kube-system.svc.cluster.local
Name: web-1.nginx
Address 1: 10.244.2.6
'BigData' 카테고리의 다른 글
k8s API LIST RETRIEVE (0) | 2020.05.29 |
---|---|
K8s Volume 및 PV/PVC 및 S3 볼륨 설정, gitRepo, StatefulSet (0) | 2020.05.28 |
Kubernetes jobs (0) | 2020.05.27 |
Apache Atlas to Airflow (0) | 2020.05.25 |
bigquery to storage backup (0) | 2020.05.20 |