如何在Kubernetes中获取服务的完整FQDN?
➜ k get svc -o wide
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
airflow-flower-service ClusterIP 172.20.119.107 <none> 5555/TCP 20d app=edna-airflow
airflow-service ClusterIP 172.20.76.63 <none> 80/TCP 20d app=edna-airflow
backend-service ClusterIP 172.20.39.154 <none> 80/TCP 20d app=edna-backend
那么如何查询内部 Kubernetes DNS 以获取后端服务的完全限定域名呢?
apt update
和apt-get install dnsutils
- Manju N