# nodeport

Set the service type to NodePort.

```rhai
service.nodeport() -> Service
```

## Returns

Returns the `Service` builder for method chaining.

## Examples

```rhai
// Create a NodePort service (accessible from outside cluster)
let svc = namespace.service("external-api")
    .selector("app", "api")
    .expose(8080)
    .to_container(3000)
    .nodeport()
    .apply();

// With specific node port
let svc2 = namespace.service("web")
    .selector("app", "web")
    .expose(80)
    .to_container(8080)
    .nodeport()
    .via_node(30080)
    .apply();
```

## Notes

- This is a chainable method
- NodePort services are accessible from outside the cluster
- Use `via_node()` to specify a specific NodePort number
- Default service type is ClusterIP (internal only)
