instance.kustomize.patches on a helm_release for the flux_instance #5716
-
|
I would like to increase the memory-limit of the source-controller in the terraform helm-chart (since i run into OOMMemory restarts with a very large repo). For this i came up with the following patch: The results looked good. I then transferred the patch into a terraform local. I then tried some ways to use it in the helm_release for the flux_instance as instance.kustomize.patches: Giving the error: Giving the error:
Giving the error:
Giving the error: Does anybody have an idea what i am doing wrong here? FYI: I am using the Flux Operator with terraform |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Set the patchs in the yaml directly like this https://github.com/controlplaneio-fluxcd/flux-operator/blob/v0.41.1/config/terraform/values/components.yaml |
Beta Was this translation helpful? Give feedback.
-
|
The following worked like a charm: And in the helm_release: Thank you very much @stefanprodan! |
Beta Was this translation helpful? Give feedback.
-
You can configure Flux to pull from remote only the dirs with Kubernetes manifests with apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: podinfo
namespace: default
spec:
interval: 5m
url: https://github.com/stefanprodan/podinfo
ref:
branch: master
sparseCheckout:
- charts
- kustomizeDocs here: https://fluxcd.io/flux/components/source/gitrepositories/#sparse-checkout |
Beta Was this translation helpful? Give feedback.
Set the patchs in the yaml directly like this https://github.com/controlplaneio-fluxcd/flux-operator/blob/v0.41.1/config/terraform/values/components.yaml