# service

Create a Service builder in the namespace.

```rhai
namespace.service(name) -> Service
```

## Parameters

- `name` (string): Service name

## Returns

Returns a `Service` builder for configuring and creating a service.

## Examples

```rhai
let ns = kubernetes().namespace("default");

// Create a service
let svc = ns.service("web-svc")
    .selector("app", "web")
    .expose(80)
    .to_container(80)
    .apply();

// Create a NodePort service
let nodeport = ns.service("external-svc")
    .selector("app", "api")
    .expose(8080)
    .to_container(3000)
    .nodeport()
    .apply();
```

## Notes

- Returns a builder for fluent configuration
- Use `apply()` to create the service in Kubernetes
- Service names must be unique within the namespace
