feat: add ability to set shm-size property

This doesn't yet manage process volumes, but the scaffolding is there to allow interacting with the property.
This commit is contained in:
Jose Diaz-Gonzalez
2025-03-06 22:48:49 -05:00
parent 52c05558f9
commit 888d1d4bf3
4 changed files with 41 additions and 6 deletions

View File

@@ -138,12 +138,13 @@ dokku scheduler-k3s:set --global network-interface eth1
The k3s plugin provides a number of settings that can be used to managed deployments on a per-app basis. The following table outlines ones not covered elsewhere:
| Name | Description | Global Default |
|---------------------|---------------------------------------------------|----------------|
| deploy-timeout | Controls when app deploys will timeout in seconds | 300s |
| namespace | Controls the namespace used for resource creation | default |
| rollback-on-failure | Whether to rollback failed deploys | false |
| image-pull-secrets | Name of a kubernetes secret used to auth against a registry | Contents of `~/.docker/config.json` from Dokku server |
| Name | Description | Global Default |
|-----------------------|---------------------------------------------------|--------------------|
| `deploy-timeout` | Controls when app deploys will timeout in seconds | `300s` |
| `image-pull-secrets` | Name of a kubernetes secret used to auth against a registry | Contents of `~/.docker/config.json` from Dokku server |
| `namespace` | Controls the namespace used for resource creation | `default` |
| `rollback-on-failure` | Whether to rollback failed deploys | `false` |
| `shm-size` | Default shared memory size for pods | Kubernetes default |
All settings can be set via the `scheduler-k3s:set` command. Using `deploy-timeout` as an example: