🛠️ Integration with FluxCD
Integrating Helm Safely with FluxCD ensures that your deployments are secure and reliable. Follow these steps to configure your FluxCD HelmRelease to use Helm Safely.
1. Update the FluxCD HelmRelease Manifest
Modify your FluxCD HelmRelease
manifest to point to the Helm Safely URL. You can use Helm's b64enc
function within the HelmRelease
manifest to encode the repository URL directly. Here's an example:
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: prom-stack
namespace: monitoring
spec:
chart:
spec:
chart: kube-prometheus-stack
sourceRef:
kind: HelmRepository
name: prom-stack-repo
namespace: flux-system
version: "62.3.1"
interval: 5m
install:
createNamespace: true
values:
# Add any custom values here
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: prom-stack-repo
namespace: flux-system
spec:
url: https://helm-safely.com/repo/{{ b64enc "https://prometheus-community.github.io/helm-charts" }}/kube-prometheus-stack/62.3.1/index.yaml
interval: 10m
2. Verify the Deployment
Once the HelmRelease is created, FluxCD will manage the deployment using the Helm Safely repository. You can verify the deployment status using FluxCD's CLI:
flux get helmreleases -n monitoring