Skip to content

Commit

Permalink
networking solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Soni committed Aug 2, 2020
1 parent bc77e8f commit 2fc68ec
Show file tree
Hide file tree
Showing 2 changed files with 184 additions and 46 deletions.
88 changes: 44 additions & 44 deletions docs/09-Networking/20-CoreDNS-in-Kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,62 +91,62 @@
10. Check the Solution
<details>
<details>
```
web-service
```
</details>
```
web-service
```
</details>
11. Check the Solution
<details>
```
web-serivce.default.pod
```
</details>
<details>
```
web-serivce.default.pod
```
</details>
12. Check the Solution
<details>
```
web-service.payroll
```
</details>
<details>
```
web-service.payroll
```
</details>
13. Check the Solution
<details>
```
web-service.payroll.svc.cluster
```
</details>
<details>
```
web-service.payroll.svc.cluster
```
</details>
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
```
</details>
<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
```
</details>
15. Check the Solution
<details>
```
kubectl exec -it hr nslookup mysql.payroll > /root/nslookup.out
```
</details>
<details>
```
kubectl exec -it hr nslookup mysql.payroll > /root/nslookup.out
```
</details>
142 changes: 140 additions & 2 deletions docs/09-Networking/21-Practice-Test-CoreDNS-in-Kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,144 @@
<details>

```
4
CoreDNS
```
</details>
</details>
2. Check the Solution
<details>
```
2
```
</details>
3. Check the Solution
<details>
```
10.96.0.10
```
</details>
4. Check the Solution
<details>
```
/etc/coredns/Corefile
OR
kubectl -n kube-system describe deployments.apps coredns | grep -A2 Args | grep Corefile
```
</details>
5. Check the Solution
<details>
```
Configured as a ConfigMapObject
```
</details>
6. Check the Solution
<details>
```
CoreDNS
```
</details>
7. Check the Solution
<details>
```
coredns
```
</details>
8. Check the Solution
<details>
```
cluster.local
```
</details>
9. Check the Solution
<details>
```
Ok
```
</details>
10. Check the Solution
<details>
```
web-service
```
</details>
11. Check the Solution
<details>
```
web-serivce.default.pod
```
</details>
12. Check the Solution
<details>
```
web-service.payroll
```
</details>
13. Check the Solution
<details>
```
web-service.payroll.svc.cluster
```
</details>
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
```
</details>
15. Check the Solution
<details>
```
kubectl exec -it hr nslookup mysql.payroll > /root/nslookup.out
```
</details>

0 comments on commit 2fc68ec

Please sign in to comment.