Questions tagged [fluxcd]

The GitOps operator for Kubernetes

Flux is a tool that automatically ensures that the state of a cluster matches the config in git. It uses an operator in the cluster to trigger deployments inside Kubernetes, which means you don't need a separate CD tool. It monitors all relevant image repositories, detects new images, triggers deployments and updates the desired running configuration based on that (and a configurable policy).

The benefits are: you don't need to grant your CI access to the cluster, every change is atomic and transactional, git has your audit log. Each transaction either fails or succeeds cleanly. You're entirely code centric and don't need new infrastructure.

Source: https://docs.fluxcd.io/

57 questions
14
votes
1 answer

Is there a way to manually retry a HelmRelease for FluxCD HelmOperator?

I was just reading https://docs.fluxcd.io/projects/helm-operator/en/stable/helmrelease-guide/debugging/#manually-performing-a-release-to-debug as well as the FAQ, but couldn't figure out how to trigger a retry of a HelmRelease. My workaround was to…
teebszet
  • 451
  • 1
  • 5
  • 12
7
votes
2 answers

Is Flux v2 a replacement of Argo Flux

I've set up a Continuous Delivery pipeline with Flux v2 (since Flux v1 is deprecated), and it's working fine. On the other side, I saw that Argo and Flux started a merge by the end of 2019 (please check this link). I wonder then whether Flux v2 is…
7
votes
1 answer

GitOps and database migrations

I'm trying to introduce GitOps in our company. Mostly we have microservices written in Django (However, it could be any other web framework). I have a conceptual problem with the database migrations. Forward migrations are easy: you run them as a…
sacherus
  • 1,614
  • 2
  • 20
  • 27
6
votes
1 answer

Flux V2 ImagePolicy version list argument cannot be empty

I have the following imagepolicy: apiVersion: image.toolkit.fluxcd.io/v1alpha2 kind: ImagePolicy metadata: name: cps-kul-beta-imagepolicy namespace: flux-system spec: imageRepositoryRef: name: cps-kul-image filterTags: pattern:…
Frederik Baetens
  • 781
  • 1
  • 9
  • 20
5
votes
1 answer

helm error: release requires a rollback before it can be upgraded

In my cluster Im using weave flux along with their flux-helm-operator to manage my cluster the gitops way. However, when I make a change to the chart at flux git repository, I often come across the following error…
Efrat Levitan
  • 5,181
  • 2
  • 19
  • 40
3
votes
1 answer

How could I preview the final result when applying kustomizations to a git repo with helm templates?

I have a git repo with helm charts, and a git repo per environment with kustomizations for those charts. All of this in working great with flux. But I don't know how to "preview" my changes to the kustomization files. Let's say I edit the dev…
michal-b
  • 81
  • 5
3
votes
0 answers

How to use customised values.yaml in Fluxcd helm?

I installed Fluxcd in Kubernetes using Helm. Everything is working good as when I commit changes to gitlab it will auto deploy the changes to the helm release. The helm chart I used for kibana is from the official chart but I made some changes to…
CheahHow
  • 31
  • 1
3
votes
2 answers

Define a standalone patch as YAML

I have a need to define a standalone patch as YAML. More specifically, I want to do the following: kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "registry-my-registry"}]}' The catch is I can't use kubectl patch. I'm using…
Juicy
  • 11,840
  • 35
  • 123
  • 212
2
votes
2 answers

flux kustomize build failed - resource with an already registered id

Here is the folder structure for my flux repo └── clusters └── homelab ├── default │   ├── deployment.yaml └── flux-system ├── gotk-components.yaml ├── gotk-sync.yaml └── kustomization.yaml And when I pushed…
Kaigo
  • 1,267
  • 2
  • 14
  • 33
2
votes
1 answer

FluxCD: create repository failed, unable to unmarshall repository json: unexpected end of JSON input

I'm trying to do flux bootstrap bitbucket-server \ ✱ --token-auth \ --hostname=bitbucket.org \ --owner=akhateeb \ …
2
votes
2 answers

Can you patch an arbitrary resource with no base via kustomize?

I've been trying to patch a Deployment, declared and applied by a kops addon (Ebs drivers). Unfortunately, after trying the variety of patching strategies, it seems that I am unable to patch a resource that doesn't have a base declared in my folder…
H. Tazi
  • 76
  • 5
2
votes
1 answer

SSH key scan for host https://gitlab.host.com failed, error: dial tcp: lookup tcp///gitlab.host.com: getaddrinfow: The specified class was not foun

I am trying to set up FluxCD with a private GitLab repo. Here is the command I am using to install Flux on a Kubernetes cluster and configure it to manage itself from a Git repository. flux bootstrap gitlab --hostname=https://gitlab.host.com …
Shemeem
  • 198
  • 2
  • 14
2
votes
1 answer

FluxCD image not updated on helm release

I started with FluxCD, and I'm looking to update my helm releases with each new image that was pushed into docker registry. So far I have my policies and imageautomation in place - which are working fine, I can see that git repo is updated with the…
kraken
  • 19
  • 2
2
votes
1 answer

FluxCD on EKS cannot read a private repo on GitHub

After installing FluxCD v2 on my EKS cluster, I defined a GitRepository definition pointing to a repo on GitHub. --- apiVersion: source.toolkit.fluxcd.io/v1beta1 kind: GitRepository metadata: name: springbootflux-infra namespace:…
Marc Enschede
  • 828
  • 10
  • 16
2
votes
2 answers

What's the index URL for Helm charts added to ACR?

I'm following this guide on how to "Push and pull Helm charts to an Azure container registry". So I've pushed a chart to ACR. I can see that it's there, both via the Azure UI and az acr repository show \ --name mycontainerregistry \ --repository…
Joel
  • 8,502
  • 11
  • 66
  • 115
1
2 3 4