k8s.github.io

Practice Test CoreDNS in Kubernetes

Solution

  1. Check the Solution

    ``` CoreDNS ```
  2. Check the Solution

    ``` 2 ```
  3. Check the Solution

    ``` 10.96.0.10 ```
  4. Check the Solution

    ``` /etc/coredns/Corefile OR kubectl -n kube-system describe deployments.apps coredns | grep -A2 Args | grep Corefile ```
  5. Check the Solution

    ``` Configured as a ConfigMapObject ```
  6. Check the Solution

    ``` CoreDNS ```
  7. Check the Solution

    ``` coredns ```
  8. Check the Solution

    ``` cluster.local ```
  9. Check the Solution

    ``` Ok ```
  10. Check the Solution

    ``` web-service ```
  11. Check the Solution

    ``` web-serivce.default.pod ```
  12. Check the Solution

    ``` web-service.payroll ```
  13. Check the Solution

    ``` web-service.payroll.svc.cluster ```
  14. Check the Solution

    ``` kubectl edit deploy webapp Search for DB_Host and Change the DB_Host from mysql to mysql.payroll spec: containers: - env: - name: DB_Host value: mysql.payroll ```
  15. Check the Solution

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