# kubernetes

Get the global Kubernetes context.

```rhai
kubernetes() -> KubernetesContext
```

## Returns

Returns a `KubernetesContext` object for interacting with Kubernetes.

## Examples

```rhai
// Get Kubernetes context
let k8s = kubernetes();

// List namespaces
let namespaces = k8s.ns_list();
print(namespaces);

// Access a specific namespace
let ns = k8s.namespace("default");
```

## Notes

- Entry point for all Kubernetes operations
- Uses the default kubeconfig from ~/.kube/config
- Context is reusable across multiple operations
