Skip to content

Latest commit

 

History

History
152 lines (101 loc) · 2.02 KB

File metadata and controls

152 lines (101 loc) · 2.02 KB

Practice Test CoreDNS in Kubernetes

  • Take me to Lab

Solution

  1. Check the Solution

    Details
    CoreDNS
    
  2. Check the Solution

    Details
    2
    
  3. Check the Solution

    Details
    10.96.0.10
    
  4. Check the Solution

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

    Details
    Configured as a ConfigMapObject
    
  6. Check the Solution

    Details
    CoreDNS
    
  7. Check the Solution

    Details
    coredns
    
  8. Check the Solution

    Details
    cluster.local
    
  9. Check the Solution

    Details
    Ok
    
  10. Check the Solution

    Details
    web-service
    
  11. Check the Solution

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

    Details
    web-service.payroll
    
  13. Check the Solution

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

    Details
    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

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