# expose

Set the service port to expose.

```rhai
service.expose(port) -> Service
```

## Parameters

- `port` (int): Port to expose on the service

## Returns

Returns the `Service` builder for method chaining.

## Examples

```rhai
let svc = namespace.service("web-svc")
    .selector("app", "web")
    .expose(80)
    .to_container(8080)
    .apply();
```

## Notes

- This is a chainable method
- Service port is what other services/clients connect to
- Use `to_container()` or `to()` to set the target port on pods
