May 2018
Intermediate to advanced
554 pages
13h 51m
English
While building a Service over another, we may think of multiple layers for port forwarding. In spite of redirecting traffic from one port to another, the action of exposing a Service is actually copying the setting of one Service to another. This scenario could be utilized as updating the Service setting, without causing headaches to current clients and servers:
// create a Service by expose an existed one// take the one we created for Deployment for example$ kubectl expose svc another-nginx-service --port=8081 --target-port=80 --name=yet-another-nginx-service --session-affinity="ClientIP"service "yet-another-nginx-service" exposed// check the newly created Service$ kubectl describe ...
Read now
Unlock full access