# selector

Set a label selector for the service.

```rhai
service.selector(key, value) -> Service
```

## Parameters

- `key` (string): Label key
- `value` (string): Label value

## Returns

Returns the `Service` builder for method chaining.

## Examples

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

## Notes

- This is a chainable method
- Can be called multiple times to add multiple selectors
- Service routes traffic to pods matching all selectors
