Skip to content

fix: fully-qualified image references and local-path-provisioner OOM fixFix/bug fixes#115

Merged
stevensbkang merged 2 commits intoportainer:developfrom
nova8-technologies:fix/bug-fixes
Mar 17, 2026
Merged

fix: fully-qualified image references and local-path-provisioner OOM fixFix/bug fixes#115
stevensbkang merged 2 commits intoportainer:developfrom
nova8-technologies:fix/bug-fixes

Conversation

@nova8-technologies
Copy link
Copy Markdown
Contributor

Description

Two small, independent bug fixes:

1. Use fully-qualified docker.io/ image references

Problem: Image constants use short names (e.g., portainer/pause:latest) which fail on containerd runtimes that don't default to docker.io as the registry (containerd requires fully-qualified references unlike Docker).

Fix: Prefix all image constants with docker.io/ in types/const.go.

2. Increase local-path-provisioner memory limits

Problem: The memory limit of 20Mi is too low — the provisioner gets OOM-killed by the kernel under normal operation, causing persistent volume claims to hang indefinitely.

Fix: Bump memory limit from 20Mi128Mi and request from 20Mi32Mi. These values are consistent with the upstream local-path-provisioner defaults.

Files Changed

  • types/const.go — Add docker.io/ prefix to 4 image constants
  • pkg/components/localpath/deployment.go — Update memory limit/request

Testing

  • Verified containerd pulls images correctly with fully-qualified references
  • Confirmed local-path-provisioner runs without OOM kills under normal PVC workloads

Bryan Rodriguez and others added 2 commits March 13, 2026 04:36
Bumped memory limit from 20Mi to 128Mi and request from 20Mi to 32Mi.
The 20Mi limit was too low, causing kernel OOM kills under normal operation.

Amp-Thread-ID: https://ampcode.com/threads/T-019cccd3-8d6e-70ce-aa87-ac6b86aa4233
Co-authored-by: Amp <amp@ampcode.com>
@stevensbkang stevensbkang requested review from stevensbkang and removed request for deviantony March 16, 2026 20:38
Copy link
Copy Markdown
Member

@stevensbkang stevensbkang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks so much for your contribution!

@stevensbkang stevensbkang merged commit 97ef23e into portainer:develop Mar 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants