Comments (6)
Hey @hgaron-blockbar! Yep, the example you added is exactly the way to configure the kubectl deployer for your use case. Behind the scene, Skaffold will first, render the manifests defined in manifests.rawYaml
, and then will send them to the deploy.kubectl
deployer. Hope that solves your use case. Thanks!
from skaffold.
I am having this same issue on 2.9.0
; helm deployments still work in modules but rawYaml
does not. If I move rawYaml
to the root skaffold.yaml
it will deploy correctly, but if it's inside a module, no such luck.
I have also verified skaffold correctly renders the yaml by running skaffold render > rendered.yaml
and verifying the output. But any raw yaml just isn't deployed.
EDIT:
After a good deal of debugging, it looks like the rawYaml
only works on the root skaffold.yaml
if the requires
key is omitted entirely. Even having a requires
key with profiles that are not invoked breaks the rawYaml
property, regardless of whether it is defined in a module or at the root skaffold.yaml
.
For reference, I am also using apiVersion: skaffold/v4beta8
.
from skaffold.
I downgraded to skaffold v2.8.0
and the issue persists there as well.
from skaffold.
Hello there! This is an intended behaviour: when using Skaffold modules, Skaffold itself is not able to add a default deployer. To make it work you'll need to add a deployer explicitly in the modules (deploy.*
). For more context please refer to #9215 and #9138 . Thanks! 😄
from skaffold.
@renzodavid9 Forgive me but I think I misunderstand. I do have a Helm
deployer present in my modules deploy.*
and that works fine, but for the raw yaml manifests I'm not sure how to add a deployer?
In the v4beta8
schema, if I add a kubectl
deployer there's no explicit way to define manifests (only a remoteManifests
key exists). Should I just define it with an empty object?
ie.
manifests:
rawYaml:
- ../../manifests/*
deploy:
kubectl: {}
Thanks for your help; cheers!
from skaffold.
I'll proceed to close this issue; we have #9138 to improve the messages for this case. Please feel free to re-open or create a new issue if needed. Thanks!
from skaffold.
Related Issues (20)
- Skaffold stops restarting my container after some time passes HOT 1
- Dockerfile in .dockerignore is not respected, leading to unnecessary full rebuilds HOT 2
- Custom actions ignores container volumes
- watcher breaks with dockerfile using COPY --parents
- [BUG] Config dependency doesn't work when deployers are different HOT 2
- Migrate the project to CNFC HOT 4
- How to control logs format?
- skaffold is very slow when doing "intersect matchers" for images HOT 1
- "no tag provided for image" error when using --build-artifacts flag
- Unnecessary reloads of existing images
- Kaniko builder can't push to private registry
- ERRO[0001] retrying read tcp x.x.x.x:nnnnn->131.253.33.219:443: read: connection reset by peer
- Unable to pull helm dependencies from a private helm repo
- Skaffold doesn't deliver the error messages HOT 1
- Installing Skaffold
- skaffold debug does not retry connection
- Fix error message "unable to unmarshal Cloud Run Service config" for Cloud Run Job
- bazel: Changes to MODULE.bazel may be missed, causing incorrect results
- Feat: Add Go template equivalent of Krew `whoami`
- First and last images are not detected when loading images to the cluster
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skaffold.