> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trainy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Complex General

> Example deployment yamls for general deployments with `konduktor serve`

## Prerequisites

#### Current Working Directory

```
$ ls
deployment.yaml
```

#### Launching

```
$ konduktor serve launch deployment.yaml
```

## Deployment.yaml

```
# autoscaling + custom port + custom health probing endpoint
name: serving-general-complex

resources:
  cpus: 0.5
  memory: 1
  image_id: ubuntu
  labels:
    kueue.x-k8s.io/queue-name: user-queue

serving: 
  min_replicas: 0
  max_replicas: 2
  ports: 9000
  probe: /probe

run: |
  apt-get update && apt-get install -y python3
  echo "Hello from Konduktor Serve!" > index.html
  echo "Hello from health probe!" > probe
  python3 -m http.server 9000
```
