# ingress-nginx

NGINX Ingress controller (deprecated: retired by Kubernetes in March 2026, no security fixes; use traefik)

This page is generated from [`kix/packages/experimental/ingress-nginx`](https://github.com/kix-run/kix/tree/main/kix/packages/experimental/ingress-nginx).

| | |
| --- | --- |
| Stability | Experimental |
| `package` value | `packages.experimental.ingress-nginx` |
| Default software version | `1.15.1` |
| Default aliases | `ingressNginx` |

:::caution[Deprecated]
Kubernetes retired ingress-nginx in March 2026 after v1.15.1, so it no longer receives security fixes. Kix still builds this instance. Move Ingress routes to Gateway API

Use `packages.experimental.traefik` instead.
:::

## How-to guides

- [Install ingress-nginx](/docs/how-to/package-task-guides/install-ingress-nginx/)

## Dependencies

Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set [`deps.<name>`](/docs/reference/instances-and-composition/#deps) in your cluster definition. See [Declaring dependencies](/docs/reference/package-anatomy/#declaring-dependencies) for how required and optional dependencies work.

| Dependency | Requirement |
| --- | --- |
| `prometheus` | Optional |

## Options

### `certgen.image`

Image of the Jobs that create the admission webhook certificate and patch its CA into the webhook configuration.

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

  ```nix
  {
    digest = "sha256:01038e7de14b78d702d2849c3aad72fd25903c4765af63cf16aa3398f5d5f2dd";
    pullPolicy = "IfNotPresent";
    repository = "registry.k8s.io/ingress-nginx/kube-webhook-certgen";
    tag = "v1.6.9";
  }
  ```

### `certgen.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

### `certgen.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`

### `certgen.image.promotedBy`

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

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

### `certgen.image.pullPolicy`

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

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

### `certgen.image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"registry.k8s.io/ingress-nginx/kube-webhook-certgen"`

### `certgen.image.resolvedAt`

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

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

### `certgen.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`

### `certgen.image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `"v1.6.9"`

### `certgen.resources`

Resource requests and limits for the two certgen Jobs, which run for
a few seconds per deploy. Each field keeps its default until set,
and null removes a default.

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

  ```nix
  {
    requests = {
      cpu = "10m";
      memory = "20Mi";
    };
  }
  ```

### `certgen.resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `certgen.resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `certgen.resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

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

### `certgen.resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `certgen.resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `certgen.resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `certgen.resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `certgen.resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `certgen.resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"10m"`

### `certgen.resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `certgen.resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"20Mi"`

### `env`

Extra environment variables for the controller. A value is a string,
a `fieldRef` source, or a `secretKeyRef` source naming a Secret
managed outside Kix with `kix.untrackedRef`. The package sets
`POD_NAME`, `POD_NAMESPACE`, and `LD_PRELOAD`.

- **Type:** ``attribute set of (null or string or env var source with `valueFrom`)``
- **Default:** `{ }`

### `extraArgs`

Flags appended to the controller's arguments. A flag the package
sets or derives from (`--publish-service`, `--election-id`,
`--controller-class`, `--ingress-class`, `--configmap`,
`--enable-metrics`, the port flags `--http-port`, `--https-port`,
and `--healthz-port`, and the `--validating-webhook*` flags) is
refused, and the error says what to do instead.

- **Type:** `list of string`
- **Default:** `[ ]`
- **Example:**

  ```nix
  [
    "--watch-ingress-without-class=true"
  ]
  ```

### `image`

Image of the controller.

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

  ```nix
  {
    digest = "sha256:594ceea76b01c592858f803f9ff4d2cb40542cae2060410b2c95f75907d659e1";
    pullPolicy = "IfNotPresent";
    repository = "registry.k8s.io/ingress-nginx/controller";
    tag = "v1.15.1";
  }
  ```

### `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:** `"registry.k8s.io/ingress-nginx/controller"`

### `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:** `"v1.15.1"`

### `ingressClassName`

Name of the IngressClass this controller serves, the name an Ingress
sets in `spec.ingressClassName`: lowercase letters, digits, `-`, and
`.`, starting and ending with a letter or digit. The class's
controller value is `k8s.io/ingress-nginx/<namespace>/<name>`, which
must fit in 250 characters. IngressClasses are cluster-scoped, so
instances in different namespaces need different names.

- **Type:** `string matching the pattern [a-z0-9]([-a-z0-9.]*[a-z0-9])?`
- **Default:** `scope.instanceName`

### `isDefaultClass`

Mark the IngressClass as the cluster default, so Ingresses that name
no class use this controller. Ingresses rendered by Kix always name
their class. A cluster may have only one default class; with two,
the API server rejects every Ingress that names none.

- **Type:** `boolean`
- **Default:** `false`

### `metrics.enabled`

Enable metrics endpoint and monitoring resources (ServiceMonitor, PrometheusRules) when prometheus is available.

- **Type:** `boolean`
- **Default:** `true`

### `metrics.interval`

Scrape interval (e.g. "30s"). Null = use Prometheus default.

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

### `replicas`

Controller replicas. Every replica serves traffic; leader election only decides which one writes Ingress status.

- **Type:** `positive integer, meaning >0`
- **Default:** 1, 2, 2, or 3 for the cluster's availability level `none`, `pod`, `node`, or `zone`

### `resources`

Resource requests and limits for the controller container. There is
no default limit: nginx starts one worker per CPU, so memory use
follows the node's CPU count. Each field keeps its default until
set, and null removes a default.

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

  ```nix
  {
    requests = {
      cpu = "100m";
      memory = "90Mi";
    };
  }
  ```

### `resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

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

### `resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"100m"`

### `resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"90Mi"`

### `service.annotations`

Annotations on the controller Service, such as a cloud provider's load balancer settings.

- **Type:** `attribute set of string`
- **Default:** `{ }`

### `service.nodePorts.http`

nodePort of the Service's http port. Null lets Kubernetes choose. Needs `service.spec.type` NodePort or LoadBalancer.

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

### `service.nodePorts.https`

nodePort of the Service's https port. Null lets Kubernetes choose. Needs `service.spec.type` NodePort or LoadBalancer.

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

### `service.spec`

Fields of the controller Service's `spec`, with Kubernetes field
names (`loadBalancerClass`, `loadBalancerSourceRanges`,
`ipFamilyPolicy`, ...). The package sets `selector` and `ports`;
set node ports through `service.nodePorts`.

- **Type:** `open submodule of attribute set of anything`
- **Default:** `{ }`

### `service.spec.externalTrafficPolicy`

`Local` keeps client source addresses on NodePort and LoadBalancer Services. Null leaves the Kubernetes default, `Cluster`.

- **Type:** `null or one of "Cluster", "Local"`
- **Default:** `null`

### `service.spec.type`

Service type. LoadBalancer needs a load balancer provider in the cluster.

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

### `settings`

Data of the controller's ConfigMap, with upstream's keys and string
values (ingress-nginx "ConfigMap" documentation). Snippet
annotations need both `allow-snippet-annotations = "true"` and
`annotations-risk-level = "Critical"`. Trust `X-Forwarded-*`
headers (`use-forwarded-headers`) only behind a proxy that sets them.

- **Type:** `attribute set of string`
- **Default:** `{ }`
- **Example:**

  ```nix
  {
    proxy-body-size = "50m";
    ssl-protocols = "TLSv1.3";
  }
  ```