Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions compute/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@

## Set variables from a whole ConfigMap or Secret

On `general-purpose` workloads, you can turn every key of a ConfigMap or Secret into an environment variable. To do so with flags, pass `--env-from-configmap` or `--env-from-secret` as `NAME` or `NAME:PREFIX_`. The following command loads every key from `api-config` with the prefix `APP_`, and every key from `api-secrets` without a prefix:
You can turn every key of a ConfigMap or Secret into an environment variable. To do so with flags, pass `--env-from-configmap` or `--env-from-secret` as `NAME` or `NAME:PREFIX_`. The following command loads every key from `api-config` with the prefix `APP_`, and every key from `api-secrets` without a prefix:

```bash
datumctl compute deploy WORKLOAD_NAME \
Expand Down Expand Up @@ -135,8 +135,6 @@
name: api-secrets
```

The `unikernel` runtime class doesn't support `envFrom`. On `unikernel` workloads, set each variable with `valueFrom` instead.

## Mount a ConfigMap or Secret as files

To mount a ConfigMap or Secret as files with flags, pass `--configmap` or `--secret` as `NAME:/mount/path`. Each key becomes a file in the mount directory. The following command mounts `api-config` at `/etc/api` and `api-secrets` at `/etc/api-secrets`:
Expand Down Expand Up @@ -195,7 +193,7 @@

## Disk volumes

The `spec.template.spec.volumes` field also accepts a `disk` volume type, which `datumctl explain` lists with a size request and a populator. No runtime class serves disk volumes during the preview, so Datum rejects a workload that declares one with the following error:

Check warning on line 196 in compute/configuration.mdx

View check run for this annotation

Mintlify / Mintlify Validation (datum-4926dda5) - vale-spellcheck

Vale.Spelling

Did you really mean 'populator'?

```text
disk-backed volumes are not supported by the "CLASS" runtime class
Expand Down Expand Up @@ -322,7 +320,7 @@
minReplicas: 1
```

To use this example on the `unikernel` class, change `runtime.class` to `unikernel` and remove the `envFrom` entry.
To use this example on the `unikernel` class, change `runtime.class` to `unikernel`.

## Limits

Expand Down
6 changes: 3 additions & 3 deletions compute/instance-shell.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A shell session connects you to a container of a running Instance, so you can ru
Compute is in preview, and the `v1alpha` API can change.
</Note>

Shell sessions are available for `general-purpose` Instances only. A `general-purpose` Instance runs in its own virtual machine, so a shell session reaches a real container through that isolation boundary. `unikernel` Instances don't have a shell, so the **Shell** tab and `datumctl compute exec` aren't available for them. For more about the two classes, see [Choose a runtime class](/compute/runtimes/overview).
A `general-purpose` Instance runs in its own virtual machine, so a shell session reaches a real container through that isolation boundary. `datumctl compute exec` also works on `unikernel` Instances, but it can run only programs that your image includes, and a `unikernel` image has no shell unless you add one. The portal **Shell** tab is for `general-purpose` Instances. For more about the two classes, see [Choose a runtime class](/compute/runtimes/overview).

## How a session works

Expand Down Expand Up @@ -62,7 +62,7 @@ Select **Close shell** to end the session and stop the command. Leaving the page

## datumctl

`datumctl compute exec` runs a command, interactively or once, in a container of a running `general-purpose` Instance.
`datumctl compute exec` runs a command, interactively or once, in a container of a running Instance.

### Before you begin

Expand All @@ -74,7 +74,7 @@ Select **Close shell** to end the session and stop the command. Leaving the page
```

For more on installing and upgrading plugins, see [Using plugins](/datumctl/plugins/using-plugins).
- Deploy a `general-purpose` workload with at least one `Available` Instance. For more information, see [Run a container image](/compute/runtimes/general-compute).
- Deploy a workload with at least one `Available` Instance. On a `unikernel` workload, the image must include the program that you run, such as a shell. For more information, see [Run a container image](/compute/runtimes/general-compute) or [Build and deploy a unikernel](/compute/runtimes/unikernels).

### Open an interactive shell

Expand Down
2 changes: 1 addition & 1 deletion compute/limitations-and-roadmap.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The Compute preview has the following limitations. For limitations of each [runt
- Raw devices, GPUs, and custom virtual machine images aren't available.
- Instances with more than one container aren't supported. Run one container per workload.
- Health probes, such as readiness and liveness checks, aren't available. An Instance is ready when its containers are running.
- You can't suspend, resume, or snapshot Instances. You can open a shell or run a command in a running `general-purpose` Instance; see [Instance shell sessions](/compute/instance-shell).
- You can't suspend, resume, or snapshot Instances. You can open a shell or run a command in a running Instance; see [Instance shell sessions](/compute/instance-shell).
- A workload's runtime class and network can't change after you create it.

### Placement and scaling
Expand Down
4 changes: 2 additions & 2 deletions compute/runtimes/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
| Startup time | Several seconds, mostly spent booting a kernel and pulling the image. | A fraction of a second after the image is pulled. |
| Overhead per Instance | Higher | Very low |
| Root filesystem | The image filesystem. | Held in memory, so the unpacked image size counts against the Instance's 2 GiB of memory. |
| Environment variables from a whole ConfigMap or Secret (`envFrom`) | Supported | Not supported. Use `env[].valueFrom` for each key instead. |
| Environment variables from a whole ConfigMap or Secret (`envFrom`) | Supported | Supported |
| ConfigMap and Secret volumes | Supported | Supported |
| Disk volumes | Not supported | Not supported |
| Private registry credentials (`imagePullSecrets`) | Supported | Supported |
Expand All @@ -34,7 +34,7 @@
Choose `general-purpose` in the following cases:

- You want to run an existing container image without repackaging it.
- Your app needs `envFrom`, extra Linux capabilities, setuid binaries, or a large filesystem.
- Your app needs extra Linux capabilities, setuid binaries, or a large filesystem.

Check warning on line 37 in compute/runtimes/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (datum-4926dda5) - vale-spellcheck

Vale.Spelling

Did you really mean 'setuid'?

Choose `unikernel` in the following cases:

Expand Down
1 change: 0 additions & 1 deletion compute/runtimes/unikernels.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Build and deploy a unikernel"
sidebarTitle: "Unikernels"

Check warning on line 3 in compute/runtimes/unikernels.mdx

View check run for this annotation

Mintlify / Mintlify Validation (datum-4926dda5) - vale-spellcheck

Vale.Spelling

Did you really mean 'Unikernels'?
description: "Package your app as a unikernel image with datumctl compute build, check it for compatibility, and deploy it."
---

Expand Down Expand Up @@ -160,7 +160,6 @@

- Images must be packaged with `datumctl compute build`, and must target x86_64.
- The root filesystem is held in memory. The unpacked image counts against the Instance's 2 GiB of memory.
- Environment variables from a whole ConfigMap or Secret (`envFrom`) aren't supported. Use `env[].valueFrom` for each key.
- Linux capabilities can't be added, and container security context settings have no effect.
- Crash details are limited. An Instance whose program exits at startup can stay `Starting` instead of reporting a crash. If an Instance stays `Starting` for more than a few minutes, run `datumctl compute build --analyze` on the image.

Expand Down
2 changes: 1 addition & 1 deletion compute/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
| Error or reason | Meaning | What to do |
| --- | --- | --- |
| `must include a registry` | The image reference has no registry host. | Use a full reference, such as `docker.io/library/redis:7`. |
| `... are not supported by the "CLASS" runtime class` | The workload uses a feature that its runtime class doesn't offer, such as a `disk` volume on either class, or `envFrom` or added capabilities on `unikernel`. | Remove the feature, or deploy a new workload with a class that offers it. See [Choose a runtime class](/compute/runtimes/overview). |
| `... are not supported by the "CLASS" runtime class` | The workload uses a feature that its runtime class doesn't offer, such as a `disk` volume on either class, or added capabilities on `unikernel`. | Remove the feature, or deploy a new workload with a class that offers it. See [Choose a runtime class](/compute/runtimes/overview). |
| `resources: Forbidden: not implemented` | The workload sets CPU or memory for a container. | Remove `resources`, and set `runtime.resources.instanceType` to `datumcloud/d1-standard-2`. |
| `permission to use the network was denied` | You don't have permission to attach workloads to the network. | Ask a project administrator for the **Network Admin** role. |
| `permission to get ... was denied` | You can't read a ConfigMap or Secret that the workload references. | Ask for read access to the object, or reference another object. |
Expand All @@ -54,14 +54,14 @@
| `InstanceCrashing` | The program starts and exits repeatedly. | Check the command, arguments, environment variables, and mounted files. For a `unikernel` workload, rebuild with `datumctl compute build --analyze`. |
| `ConfigurationError` | Datum refused the configuration before the program ran. | Check the environment variables and volume references. |
| The Instance stays `Starting` for more than a few minutes | The first image pull can take a while. A program that exits at startup can also stay in this state. | Check the image and configuration. For a `unikernel` workload, run `datumctl compute build --analyze`. If the problem continues, contact support. |
| The Instance is `Available`, but the ALB's hostname returns an error | The app isn't reachable on the published port, or the container isn't running even though the Instance is `Available`. | Make sure that the app listens on IPv6 (`::`; in nginx, add `listen [::]:8080;` because `listen 8080;` binds IPv4 only), serves plain HTTP, and uses the port that you passed to `--http-port`. Check the logs with `datumctl compute logs WORKLOAD_NAME`. If the container exits at startup, check its `securityContext`. See [Images that use sudo or setuid](/compute/runtimes/general-compute#images-that-use-sudo-or-setuid). For a walkthrough of what IPv6-only means for your app, see [How debugging a 503 turned into an IPv6 crash course](https://www.datum.net/blog/ipv6-crash-course). |

Check warning on line 57 in compute/troubleshooting.mdx

View check run for this annotation

Mintlify / Mintlify Validation (datum-4926dda5) - vale-spellcheck

Vale.Spelling

Did you really mean 'ALB's'?
| The ALB returns `503` for a minute or two after the Instance becomes `Available` | The Instance is running, but the app inside it is still starting. | Wait, or give the app a faster startup. Apps such as JVMs can take a minute or more to listen. |

Check warning on line 58 in compute/troubleshooting.mdx

View check run for this annotation

Mintlify / Mintlify Validation (datum-4926dda5) - vale-spellcheck

Vale.Spelling

Did you really mean 'JVMs'?
| `sudo` or another setuid program fails with a permission error | `allowPrivilegeEscalation` defaults to `false`. | Do the privileged work at build time, or set `allowPrivilegeEscalation: true`. See [Images that use sudo or setuid](/compute/runtimes/general-compute#images-that-use-sudo-or-setuid). |

Check warning on line 59 in compute/troubleshooting.mdx

View check run for this annotation

Mintlify / Mintlify Validation (datum-4926dda5) - vale-spellcheck

Vale.Spelling

Did you really mean 'setuid'?
| A new image version doesn't show up after a rollout | The image was pushed again under the same tag. | Push each version with a new tag, or reference the image by digest. |
| An Instance can't connect to an IPv4 address, such as `203.0.113.10` | Instances have IPv6 addresses only. They reach IPv4-only services through DNS64 and NAT64, which work only when the app connects by hostname. | Connect by hostname. If the service has a public IPv4 address but no name, create an `A` record for it in a public DNS zone you control. See [Reach the internet](/galactic-vpc/networks/traffic#reach-the-internet). |
| An Instance can't connect to an IPv4-only service by hostname | The app or image uses its own DNS resolver without DNS64, such as DNS over HTTPS or a hard-coded public resolver, which returns only IPv4 addresses. | Use the resolvers that Datum configures, in the Instance's `/etc/resolv.conf`. They perform DNS64. |
| A destination that allowlists source addresses rejects the Instance | Outbound traffic leaves from addresses that are shared with other Datum customers and can change. | Authenticate to the destination with credentials, such as an API key or a client certificate, instead of allowlisting addresses. |
| `curl` can't resolve the ALB's hostname | The new hostname hasn't propagated. | Wait a few minutes and try again. |

Check warning on line 64 in compute/troubleshooting.mdx

View check run for this annotation

Mintlify / Mintlify Validation (datum-4926dda5) - vale-spellcheck

Vale.Spelling

Did you really mean 'ALB's'?

## See why an Instance won't start

Expand Down
Loading