Projects:Kubernetes: verschil tussen versies

Naar navigatie springen Naar zoeken springen
117 bytes toegevoegd ,  16 mrt 2019
Regel 468: Regel 468:
When we define the Service, we provide a Selector which defines the Pods supplying this Service. You can supply arbitrary labels to Pods; the <code>app=nginx</code> label was initially set in our Deployment (see the <code>metadata</code> section) and is inherited by all Pods created by it, so the Service will use them directly.
When we define the Service, we provide a Selector which defines the Pods supplying this Service. You can supply arbitrary labels to Pods; the <code>app=nginx</code> label was initially set in our Deployment (see the <code>metadata</code> section) and is inherited by all Pods created by it, so the Service will use them directly.


As you can see, our <code>nginx-service</code> service is now up and it got external port 31106.
As you can see, our <code>nginx-service</code> service is now up and it got external port 31106. Indeed, when we go to http://<IP>:31106/ (replacing <IP> with the IP of any of our nodes) we can see the page again!


= Creating your own images =
= Creating your own images =

Navigatiemenu