6 Getting Started Kubernetes m6 Slides
6 Getting Started Kubernetes m6 Slides
Nigel Poulton
@nigelpoulton www.nigelpoulton.com
• The theory of Services
• Real-world application
• Recap
Kubernetes Services
The Theory
Service
?
IP = reliable
DNS = reliable
Port = reliable
Replication Controller
Client
Service
IP = reliable
DNS = reliable
Port = reliable
Replication Controller
Client
Service
IP = reliable
DNS = reliable
Port = reliable
Replication Controller
Client
Service
IP = reliable
DNS = reliable
Port = reliable
Replication Controller
Service
IP = 10.0.0.50
DNS = myservice
Port = 30050
Label selector:
zone=prod version=v1
Label selector:
zone=prod version=v1
• Environment variables
ServiceType:
ClusterIP: Stable internal cluster IP
zone=prod
pcidss=yes
Pod Pod
app=biz1 app=biz1
zone=prod zone=prod
ver=17.06.02 ver=17.06.02
Replication Controller
Service app=biz1
zone=prod
Pod Pod
Pod
Pod Pod
app=biz1 app=biz1
app=biz1 app=biz1
zone=prod zone=prod
zone=prod zone=prod
ver=17.06.02 ver=17.06.02
ver=17.06.03 ver=17.06.03
zone=prod
ver=17.06.03
zone=prod
ver=17.06.02
IP address NodePort
Provides a
DNS name cluster-wide port
Port
LoadBalancer
Integrates with cloud-based
load balancers
Coming up…
Kubernetes Deployments