Service
Since Pod IPs change often, a Service will provides stable network connectivity, and Fixed IP, DNS name, and port
Create Service
Go to Service page → click ➕
Enter name (e.g.,
nginx-project
)Select deployment (
nginx
)Choose type:
nodeport
: Exposed to external trafficclusterip
: Internal-only access
Set:
Port Name: e.g.,
web
Port:
80
Target Port:
80
Click Create
View service details and click Service Details > Links to open in a browser.



Last updated