# apply

Create the service in Kubernetes.

```rhai
service.apply() -> string
```

## Returns

Returns a string with the result of the service creation.

## Examples

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

print("Service created: " + result);
```

## Notes

- This is a terminal method (executes the service creation)
- Service is created with all configured options
- Throws error if creation fails
- Service starts routing traffic immediately
