April 2018
Intermediate to advanced
468 pages
14h 34m
English
Let's create the service and explore it a little bit:
> kubectl create -f hue-reminders-service.yaml service "hue-reminders" created > kubectl describe svc hue-reminders Name: hue-reminders Namespace: default Labels: app=hue-reminders Annotations: <none> Selector: app=hue-reminders Type: ClusterIP IP: 10.108.163.209 Port: <unset> 80/TCP TargetPort: 80/TCP Endpoints: 172.17.0.4:80,172.17.0.6:80 Session Affinity: None Events: <none>
The service is up and running. Other pods can find it through environment variables or DNS. The environment variables for all services are set at pod creation time. That means that if a pod is already running when you create your service, you'll have to kill it and let Kubernetes ...
Read now
Unlock full access