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
2
votes
1 answer

fluxcd failure after first access

I have a funny situation with my fluxcd workload on k8s. I am trying to configure fluxcd workload on my k8s (on eks) to deploy app from my repo. The log shows that it was able to access github and found new released k8s object files. but all…
user3691191
  • 547
  • 1
  • 10
  • 20
2
votes
1 answer

fluxcd not applying anything with err="running kubectl: error: unable to recognize \"STDIN\": ..."

I recently installed FluxCD 1.19.0 on an Azure AKS k8s cluster using fluxctl install. We use a private git (self hosted bitbucket) which Flux is able to reach and check out. Now Flux is not applying anything with the error…
Michael Niemand
  • 1,578
  • 3
  • 23
  • 39
1
vote
0 answers

How to authenticate with GitHub using Pulumi Flux package in Go

I want to bootstrap FluxCD on Kubernetes through a Pulumi inline program written in Go but am unable to give it access to GitHub. As seen in the code below, I first create a new Pulumi provider then pass it to flux.NewFluxBootStrapGit just like the…
nusantara
  • 1,109
  • 1
  • 15
  • 38
1
vote
0 answers

FluxCD - Centralize versions in kustomization file

I have a GitOps cluster that uses FluxCD (Kubernetes:v1.25.6-eks-48e63af and Flux: v0.40.2). Currently, each app is a separate HelmRelease in a different file. The Kustomization file lists all the resources and does nothing else. I would like to…
Nate
  • 7,606
  • 23
  • 72
  • 124
1
vote
0 answers

Error when running flux check - no controllers found in the 'flux-system' namespace with the label selector 'app.kubernetes.io/part-of=flux'

Running on k3s cluster. I received the following error when trying to run flux check; ❯ flux check ► checking prerequisites ✔ Kubernetes 1.25.7+k3s1 >=1.20.6-0 ► checking controllers ✗ no controllers found in the 'flux-system' namespace with the…
Kaigo
  • 1,267
  • 2
  • 14
  • 33
1
vote
1 answer

Flux v2 - How to Deploy Same Helm Chart, Multiple Times, Into Different Namespaces

We are building out a small cluster for a dev team. Ive been working through this repo: https://github.com/fluxcd/flux2-kustomize-helm-example The infrastructure part went fine. Now instead of apps I need to create a way for each developer, to…
Justin S
  • 774
  • 2
  • 11
  • 22
1
vote
1 answer

flux deployment error X509 certificate signed by unknown authority

My aim is to deploy a container-labelling-webhook solution onto my AKS cluster using flux CD v2. Once I have it operational, I want to rollout to multiple clusters. Command used to bootstrap AKS Cluster(Flux Installation I mean) flux bootstrap git…
1
vote
1 answer

error decrypting env sources: no kustomization file found

I have successfully installed flux-cd using helmChart Using CRD, I have deployed a gitrepos resource as required but error occured when i try to apply my kustomize yaml in kubernetes Sops is implemented with gpg key. Private key is stored in…
Jordan
  • 505
  • 5
  • 13
1
vote
1 answer

FluxCD notification error sending to Microsoft Teams

I am trying to configure FluxCD in Kubernetes to send notifications to Microsfot Teams for reconciliation events. I have followed the FluxCD "Setup Notifications" instructions. Everything is deployed as expected. I am not receiving any alerts in…
Koman
  • 187
  • 1
  • 1
  • 12
1
vote
1 answer

Universal way to check if container image changed without pulling that works for all container registries

I'm writing a tool to sync container image from any container registry. In order to sync images, I need a way to check if local image:tag is different from remote image:tag, possibly through comparing image sha ID (as image sha digest is…
1
vote
1 answer

Fluxcd ImageRepository authentication with AWS Elastic Container Registry Not working

Fluxcd ImageRepository authentication with AWS Elastic Container Registry Not working on ARM64 graviton node. After debugging I found that the image used in the init container to get cred credentials is not supporting Arm64 instances. image…
kapil dev
  • 111
  • 2
  • 9
1
vote
1 answer

Flux V2 not pushing new image version to git repo

I've upgrade from Flux V1 to V2. It all went fairly smooth but I can't seem to get the ImageUpdateAutomation to work. Flux knows I have images to update but it doesn't change the container image in the deployment.yaml manifest and commit the changes…
jwerre
  • 9,179
  • 9
  • 60
  • 69
1
vote
2 answers

Is there a FluxCD equivalent to "argocd app wait" or "helm upgrade --wait"?

I did the following to deploy a helm chart (you can copy-and-paste my sequence of commands to reproduce this error). $ flux --version flux version 0.16.1 $ kubectl create ns traefik $ flux create source helm traefik --url…
Vincent Yin
  • 1,196
  • 5
  • 13
0
votes
0 answers

Kustomize patch the HelmRelease in a included git repository

I need to be able to patch the serviceAccountName inside a HelmRelease via Kustomization. The special setup here is, that the kustomization where I want to apply the patch is in a tenant repository, and the HelmRelease in a synced Git repository: I…
Stefan Profanter
  • 6,458
  • 6
  • 41
  • 73
0
votes
1 answer

How to configure FluxCD in AKS to use service principal to pull from AzureDevops repo?

During the setup of a AKS cluster (with terraform, but I don't think it's relevant in this context) I want to enable and configure the flux extension. Flux should, of course, pull the yaml-files from some Azure DevOps Repo. In my case, I am trying…