24. Networking : DNS
And perform a lookup of the tomcat Service
$ kubectl create -f ./curlpod.yaml
default/curlpod
$ kubectl get pods curlpod
NAME READY STATUS RESTARTS AGE
curlpod 1/1 Running 0 18s
$ kubectl exec curlpod -- nslookup tcsvc
Server: 10.0.0.10
Address 1: 10.0.0.10
Name: tcsvc
Address 1: 10.0.116.146
27. Exposing the Service
<<<<<<<<<<<<<<<<<<<<< Type LoadBalancer >>>>>>>>>>>>>>>>>>>>>>
$ kubectl delete rc, svc -l app=tomcat
$ kubectl create -f ./tc-app.yaml
$ kubectl get svc -o json | grep -i ingress -A 5
"ingress": [
{
"ip": "104.197.68.43"
}
]
}
$ curl http://104.197.68.43:8080
...
28. Additional Resources to tap in to
(DockYard)
Manage
Images
Dashboard
Manage
Containers
Apache Licensed Open Source
https://github.com/bluemeric/dockyard
29. Additional Resources to tap in to
(#DevOpsFortNight)
● #DevOpsFortnight
from Bluemeric
Video demos / training /
webinars/ industry interviews
on DevOps for free
• Chef
• Puppet
• CI/CD
• Docker
• Kube
• OpenStack
• SDN
• Etc...
https://www.youtube.com/channel/UCPUxGV9QCjJUWgSRH5ei5mQ