# tailscale

Tailscale Kubernetes operator: exposes Services and Ingresses on a tailnet and runs subnet routers, egress proxies, and API server proxies from tailscale.com resources

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

| | |
| --- | --- |
| Stability | Experimental |
| `package` value | `packages.experimental.tailscale` |
| Default software version | `1.104.7` |
| Default aliases | `tailscale` |
| Highest availability level | `none` |

## 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 |
| --- | --- |
| `oauthCredentials` | Required |
| `prometheus` | Optional |

## Options

### `connectors`

Connector custom resources, keyed by name, each as its `spec`. `proxyClass` names a key of `proxyClasses`; build Connectors that reference an external ProxyClass with `out.mkConnector`.

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

### `connectors.<name>.proxyClass`

Key of `proxyClasses` whose ProxyClass the Connector uses.

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

### `defaultProxyClass`

ProxyClass for proxies that name none (`PROXY_DEFAULT_CLASS`). Must be a key of `proxyClasses`.

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

### `env`

Upstream operator variables such as `OPERATOR_HOSTNAME`, `OPERATOR_INITIAL_TAGS`, `PROXY_TAGS`, `PROXY_FIREWALL_MODE`, `OPERATOR_LOGGING`, `TS_NO_LOGS_NO_SUPPORT`, and `OPERATOR_LOGIN_SERVER` (an https URL on port 443). A value is a string, a `fieldRef` source, or a `secretKeyRef` source naming a Secret managed outside Kix with `kix.untrackedRef`. The OAuth client comes from the `oauthCredentials` dependency. Variables the package sets or does not support are refused.

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

### `image`

Image of the operator. Its major.minor must match the vendored CRDs and RBAC. Each operand image defaults to this repository with its own last path segment (`docker.io/tailscale/<name>`) and to this tag.

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

  ```nix
  {
    digest = "sha256:51ba104ff02afcc39f93189415c8b2f44fb6037e8592d626bfa52c3c8afc02f6";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/tailscale/k8s-operator";
    tag = "v1.104.7";
  }
  ```

### `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/tailscale/k8s-operator"`

### `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.104.7"`

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

### `operandImages.k8s-nameserver`

Default nameserver image of `out.mkDNSConfig`. Listed in `out.extraImages`. DNSConfig has no pull policy field, so `pullPolicy` must stay null.

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

  ```nix
  {
    digest = "sha256:9b0685a4dd89742043084affa56fbda04f56b348d6cd9a8a23105a24ed3ebb39";
    pullPolicy = null;
    repository = "docker.io/tailscale/k8s-nameserver";
    tag = config.image.tag;
  }
  ```

### `operandImages.k8s-nameserver.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

### `operandImages.k8s-nameserver.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`

### `operandImages.k8s-nameserver.promotedBy`

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

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

### `operandImages.k8s-nameserver.pullPolicy`

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

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

### `operandImages.k8s-nameserver.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"docker.io/tailscale/k8s-nameserver"`

### `operandImages.k8s-nameserver.resolvedAt`

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

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

### `operandImages.k8s-nameserver.sourceRev`

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

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

### `operandImages.k8s-nameserver.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.image.tag`

### `operandImages.k8s-proxy`

Image of the kube-apiserver ProxyGroup proxies (`K8S_PROXY_IMAGE`). Listed in `out.extraImages`. The operator sets their pull policy, so `pullPolicy` must stay null.

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

  ```nix
  {
    digest = "sha256:bb86ef8c98ea071612926f766c6f461f3ac22788a3d862397012f423a581bcb8";
    pullPolicy = null;
    repository = "docker.io/tailscale/k8s-proxy";
    tag = config.image.tag;
  }
  ```

### `operandImages.k8s-proxy.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

### `operandImages.k8s-proxy.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`

### `operandImages.k8s-proxy.promotedBy`

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

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

### `operandImages.k8s-proxy.pullPolicy`

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

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

### `operandImages.k8s-proxy.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"docker.io/tailscale/k8s-proxy"`

### `operandImages.k8s-proxy.resolvedAt`

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

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

### `operandImages.k8s-proxy.sourceRev`

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

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

### `operandImages.k8s-proxy.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.image.tag`

### `operandImages.tailscale`

Image of the proxies the operator creates (`PROXY_IMAGE`). Listed in `out.extraImages`. The operator sets their pull policy, so `pullPolicy` must stay null.

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

  ```nix
  {
    digest = "sha256:72c1e19e0aedca96b8533bbb0b4368564410ff20b17e53b804eb6c1f04a31be4";
    pullPolicy = null;
    repository = "docker.io/tailscale/tailscale";
    tag = config.image.tag;
  }
  ```

### `operandImages.tailscale.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

### `operandImages.tailscale.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`

### `operandImages.tailscale.promotedBy`

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

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

### `operandImages.tailscale.pullPolicy`

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

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

### `operandImages.tailscale.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"docker.io/tailscale/tailscale"`

### `operandImages.tailscale.resolvedAt`

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

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

### `operandImages.tailscale.sourceRev`

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

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

### `operandImages.tailscale.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.image.tag`

### `operandImages.tsrecorder`

Default image and pull policy of `out.mkRecorder`. Listed in `out.extraImages`.

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

  ```nix
  {
    digest = "sha256:2d141b9088627d111bcae66c500d4e1afea46715f3dd40c007d1d8353a4afcc3";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/tailscale/tsrecorder";
    tag = config.image.tag;
  }
  ```

### `operandImages.tsrecorder.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

### `operandImages.tsrecorder.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`

### `operandImages.tsrecorder.promotedBy`

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

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

### `operandImages.tsrecorder.pullPolicy`

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

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

### `operandImages.tsrecorder.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"docker.io/tailscale/tsrecorder"`

### `operandImages.tsrecorder.resolvedAt`

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

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

### `operandImages.tsrecorder.sourceRev`

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

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

### `operandImages.tsrecorder.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.image.tag`

### `proxyClasses`

ProxyClass custom resources, keyed by name, each as its `spec`. Applied once the operator runs.

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

### `resources`

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

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

  ```nix
  {
    limits = {
      cpu = "2";
      memory = "1Gi";
    };
    requests = {
      cpu = "100m";
      memory = "128Mi";
    };
  }
  ```

### `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:** `"2"`

### `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:** `"1Gi"`

### `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:** `"128Mi"`