Skip to content

docs: add storage and configuration files page for Talos Containers - #942

Draft
Iheanacho-ai wants to merge 1 commit into
siderolabs:mainfrom
Iheanacho-ai:talos-containers-storage
Draft

Iheanacho-ai wants to merge 1 commit into
siderolabs:mainfrom
Iheanacho-ai:talos-containers-storage

Conversation

@Iheanacho-ai

Copy link
Copy Markdown
Member

What

Adds the "Add Storage and Configuration Files" page for Talos Containers, in both the v1.14 and v1.15 docs.

Closes #884. This is one of the Talos Containers page PRs that are combined for preview in #897.

Why

The Talos Containers nav lists this page, but it didn't exist yet. It was blocked on talos#14730, the rename of mounts[].userVolume to volume, which shipped in v1.15.0-beta.0. Without the page, How Talos Containers Work linked to it twice and #897 had broken links.

Change

v1.15 page (talos/v1.15/talos-containers/add-storage-and-configuration-files.mdx):

  • Choose a mount type: The three sources, volume, tmpfs and hostPath, plus destination and the ro option.
  • Store data in a volume:
    • User volume example.
    • Talos rejects a mount of an undeclared volume.
    • Existing and external volumes are mounted by name, and a read-only volume needs ro.
    • Write to a volume as a non-root user: The volume directory is owned by root with mode 0755. A run-once root container with the CHOWN capability prepares a directory, and the application container waits for it with the succeeded condition.
  • Use temporary storage: tmpfs with size, and contents lost when the container stops.
  • Mount a path from the host: hostPath must already exist, otherwise the container restarts in a loop. To wait for it, use lifecycle.dependsOn.paths.
  • Add a configuration file: EtcFileConfig plus a hostPath mount of the file's directory. A single-file mount keeps the old contents after an update, because Talos replaces the file.
  • Give a container a block device: RawVolumeConfig plus devices[].rawVolume. Root only (the device node is 0600), one container per raw volume, and it works with the restricted profile.

v1.14 page: The same structure, with the v1.14 behavior:

  • userVolume mounts, for user volumes only.
  • An undeclared volume makes the container wait indefinitely.
  • dependsOn.paths instead of lifecycle.dependsOn.paths.
  • No non-root volume pattern (v1.14 has no never policy or succeeded condition) and no block device section.

Testing

Tested on AWS, with one Talos v1.14.5 node and one v1.15.0-beta.0 node, each with a second disk for a user volume and a raw volume.

  • Volumes:
    • Data persisted across a container restart (v1.15) and a reboot (v1.14).
    • A non-root container got "Permission denied" writing to the root-owned volume.
    • The run-once CHOWN pattern let a uid 65534 container write.
    • Without CHOWN, chown failed with "Operation not permitted".
    • An undeclared volume is rejected on v1.15 and waits indefinitely on v1.14.
  • tmpfs: The size limit was enforced ("No space left on device"), and the contents were gone after a restart.
  • hostPath: A read-only mount rejected writes. A missing source made the container fail to start and restart in a loop.
  • EtcFileConfig: On both versions, a single-file mount still showed the old contents after an update, and a directory mount showed the new ones. Talos created the subdirectory.
  • Raw volume (v1.15): Root could read and write /dev/data under restricted. A non-root user was denied, and a second container using the same raw volume was rejected.
  • Examples: Every example on both pages works as written (with busybox in place of the placeholder images).
  • Checks: make style-check-changed and make check-frontmatter-changed pass, and every link and anchor on both pages resolves. validate-docs-nav passes once combined with the nav branch, as in docs: add Talos Containers documentation #897.

@Iheanacho-ai
Iheanacho-ai marked this pull request as draft November 17, 2026 08:08
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

📋 Automated documentation review

⚠️ The reviewer did not finish on commit 4850674 (it timed out or errored) — see the workflow run log. This run did not produce a result; any findings from an earlier run on this PR still stand.

@mintlify

mintlify Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 4850674.

Approve preview

@Iheanacho-ai
Iheanacho-ai force-pushed the talos-containers-storage branch from 86a190b to b73362b Compare November 29, 2026 17:28
@Iheanacho-ai
Iheanacho-ai force-pushed the talos-containers-storage branch from b73362b to 4850674 Compare November 29, 2026 19:03

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Talos Containers docs: Give a container storage and configuration files

1 participant