Loading...
Loading...
Use when a repo already has an okteto.yaml / okteto.yml and the user wants it faster or reviewed — "make my okteto.yaml faster", "why is my dev environment slow to start or sync", "review this manifest for performance", "tighten the build / dev / test sections" — or when authoring the .dockerignore / .oktetoignore / .stignore files that go with a manifest. Do NOT use on a repo with no manifest yet: service discovery and the first draft belong to okteto-onboarding (optimize its draft here afterwards). Do NOT use to debug a broken environment (okteto-debugging) or to develop inside one (okteto).
npx skill4agent add okteto/okteto-agent-skills okteto-manifest-optimizerokteto.yaml.dockerignore.oktetoignore.stignorereference/okteto-manifest-fields.mdpackage.jsongo.modpom.xmlrequirements.txtokteto.yaml:latest@sha256build:${OKTETO_BUILD_<NAME>_IMAGE}-_api${OKTETO_BUILD_API_IMAGE}web-dev${OKTETO_BUILD_WEB_DEV_IMAGE}build:.dockerignore*!.stignore!**.git.oktetoignoredev.<svc>.volumestest.<name>.cachesresources.requestsresources.limitsPendingforwardreverseforwardlocalPort:remotePortlocalhostreverseremotePort:localPortCOPY . .okteto.yaml.dockerignoreokteto validateoktetookteto build <service>okteto deploy --waitokteto upokteto-onboardingbuilddeploydevtest.dockerignore.stignore.oktetoignoreokteto validate| Section | Purpose | Optimization focus |
|---|---|---|
| Images Okteto builds for each service | Pin bases, order layers, cache mounts, a |
| How the stack is provisioned (Helm/manifests/commands) | Wire images with |
| Live-edit config: | Sync source only; persist deps in |
| Test containers run via Remote Execution | |
| # | Practice | Do this |
|---|---|---|
| 1 | Pin images | Version tag or |
| 2 | Okteto Smart Builds | Let identical builds be skipped from cache; don't defeat it with churny layers |
| 3 | Order layers by change frequency | Base + system packages first, deps next, source last |
| 4 | Avoid | Copy only build inputs ( |
| 5 | Avoid recursive ops | |
| 6 | BuildKit cache mounts | |
| # | Practice | Do this |
|---|---|---|
| 7 | | |
| 8 | | |
| 9 | | |
| 10 | Precopy source into dev image | Multi-stage: a |
| # | Practice | Do this |
|---|---|---|
| 11 | Volume Snapshots over seed scripts | Preload databases from a snapshot instead of slow seed scripts |
| 12 | Okteto Divert | When full isolation isn't required, route into a shared environment |
| # | Practice | Do this |
|---|---|---|
| 13 | | Persist dep/cache dirs across |
| 14 | | Cache dep/build dirs across test runs |
resources.requestsresources.limitsforwardreversedev.<svc>.volumestest.<name>.caches| Stack | Dependency / cache directories |
|---|---|
| Node.js | |
| Go | |
| Java / Maven | |
| Python | |
:latestbuilddev@sha256dev.<svc>.image${OKTETO_BUILD_<NAME>_IMAGE}build:sync.stignore.git!*dev.<svc>.volumesresources.requestsresources.limitsforwardlocal:remotereverseremote:local.dockerignore*!test.<name>.cachesCOPY . .RUN chown -Rokteto validateokteto-onboardingokteto.yamloktetookteto buildokteto deployokteto upokteto execokteto-debuggingCrashLoopBackOffOOMKilled