Project:FluxCD

From MaRDI portal
Revision as of 10:01, 19 March 2025 by EloiFerrer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

FluxCD configuration

The state of the MaRDI K8s cluster is synchronized with the stated defined in the portal-k8s repository. This implies that changes need to be commited to the repository in order to apply them. Trying to change the configuration directly in the cluster will result in FluxCD immediately overwriting it to reconcile it with the repository.

The repository follows the structure proposed in the Guide: Ways of structuring your repositories from FluxCD.

The same repository is used for both production and staging environments, which are deployed in the same cluster. The resources linked to staging used the prefix staging- whereas the ones for production use prod-.

Different namespaces are also used accordingly. Staging resources are deployed in the staging namespace, whereas production resources can be found in the production namespace.

Debug

The following commands are useful to debug problems during the installation of helm charts through Flux.

To see the details of a given kustomization.

kubectl get kustomization -n flux-system
kubectl describe kustomization <name> -n flux-system

To examine current helm releases or charts installed with helm

kubectl get helmreleases -A
helm ls --all-namespaces