fluxcd / flux-kustomize-example Goto Github PK
View Code? Open in Web Editor NEWFlux v1: Example of Flux using manifest generation with Kustomize
License: Apache License 2.0
Flux v1: Example of Flux using manifest generation with Kustomize
License: Apache License 2.0
When I deployed this, the first time flux tried to update an image version automatically, it completely overwrote the flux-patch.yaml with nothing but that image tag update.
├── base
│ ├── kustomization.yaml
│ └── istio.yaml
└── Dev
| └── kustomization.yaml
├── Prod
|── kustomization.yaml
This is my Kustomise folder structure, i have kept the istio in base. base.kustomisation yaml has istio.yaml reference.
When i try to build in dev or prod ( kustomise build . ) in locally ,I get the below error
this is giving below error -
webhooks.clientConfig.service ignored in mutation attempt
When i remove the istio.yaml file and run command kustomise build . in local it works fine.
Note: Kustomize need to be apply cluster via flux-cd.
Forked repo to my github account
Installed flux using below command -
helm upgrade -i flux fluxcd/flux --set [email protected]:nikhilbalekundargi/flux-kustomize-example.git --set manifest-generation=true --set git-path=staging --set syncGarbageCollection.enabled=true --namespace flux --set helm.versions=v3 --wait
Added the deploy keys.
But getting below error -
ts=2020-06-29T11:39:45.025457267Z caller=loop.go:133 component=sync-loop event=refreshed url=ssh://[email protected]/nikhilbalekundargi/flux-kustomize-example.git branch=master HEAD=6afd0470c3e3638e6be049e4cc092f5181cd4f40
ts=2020-06-29T11:39:45.078872121Z caller=sync.go:73 component=daemon info="trying to sync git changes to the cluster" old= new=6afd0470c3e3638e6be049e4cc092f5181cd4f40
ts=2020-06-29T11:39:45.085088452Z caller=loop.go:107 component=sync-loop err="loading resources from repo: duplicate definition of 'demo:deployment/podinfo' (in base/podinfo-dep.yaml and production/flux-patch.yaml)"
I use a single flux to manage deployments of the same applications across different namespaces. It might be any idea to showcase the multi-namespace features of kustomize rather than a flux per namespace with a different git-path
:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.