Service

Since Pod IPs change often, a Service will provides stable network connectivity, and Fixed IP, DNS name, and port

Create Service

  1. Go to Service page → click

  2. Enter name (e.g., nginx-project)

  3. Select deployment (nginx)

  4. Choose type:

    • nodeport: Exposed to external traffic

    • clusterip: Internal-only access

  5. Set:

    • Port Name: e.g., web

    • Port: 80

    • Target Port: 80

  6. Click Create

  7. View service details and click Service Details > Links to open in a browser.

Last updated