# echo-server

Nginx echo server for connectivity testing

This page is generated from [`kix/packages/stable/echo-server`](https://github.com/kix-run/kix/tree/main/kix/packages/stable/echo-server).

| | |
| --- | --- |
| Stability | Stable |
| `package` value | `packages.echo-server` |
| Default software version | `1.30.6` |

## Options

### `image`

Container image for this instance. Set it from a pin file (`kix.pins`) so the deployed reference is committed and resolved.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:f5116ed4606f3eb015dd4a8e28cb9b351476dc0ad4bc6e9f93b19cec130cdf03";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/nginxinc/nginx-unprivileged";
    tag = "1.30.6-alpine";
  }
  ```

### `image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"docker.io/nginxinc/nginx-unprivileged"`

### `image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `"1.30.6-alpine"`

### `message`

Plain-text response body returned for every path except `/healthz`.
The server returns quotes and `$` characters as written. Set this to
tell instances apart during connectivity checks.

- **Type:** `string`
- **Default:** `"kix echo server is running"`

### `replicas`

Number of `Deployment` replicas for the echo-server pods. Defaults
from the cluster's availability level.

- **Type:** `positive integer, meaning >0`
- **Default:** `1`

### `service.port`

Port the Service listens on. It forwards to the container's port 8080.

- **Type:** `16 bit unsigned integer; between 0 and 65535 (both inclusive)`
- **Default:** `80`

### `service.type`

Type of the echo-server's Service.

- **Type:** `one of "ClusterIP", "NodePort", "LoadBalancer"`
- **Default:** `"ClusterIP"`