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.
Related Issues (20)
- Use file sync only HOT 6
- Kaniko no cache compression
- Support additional docker buildkit options
- Templating for chartPath does not work HOT 1
- Support for Java 21
- add logs for sync failture
- Delve is too old for Go version 1.21.4
- Add support for riscv64, the install-golint.sh can't work HOT 3
- Multistage cloudbuild + kaniko
- Default Deployer not set using `skaffold dev` when having multiple configurations HOT 2
- Add support for multi-arch OCI image indexes in Bazel builder HOT 2
- build tagpolicy gitcommit behaviour not expected
- skaffold run always forces redeploy with helm renderer HOT 1
- Quickstart
- Should build command depend on Helm? HOT 1
- Argo Rollouts With Canary Fail to Render and Deploy
- Override placeholder in a required configuration HOT 1
- <paste your skaffold.yaml here>
- [Feature Request] Support remote config dependencies with v2 Cloud Build repositories
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.