'Helm Chart Release Official AIrflow

I was wondering how to write an helm release yaml file using the official airflow helm chart and overwriting the values.yaml file. I'm trying to use this config file to deploy airflow with flux on a kubernetes cluster.

I tried :

apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
  name: airflow
  namespace: dev
spec:
  releaseName: airflow-dev
  chart:
    repository: https://airflow.apache.org
    name: airflow

Did I miss something ?

Thank you in advance



Solution 1:[1]

First you need to create a helm resource artifact like this. lets name it as charts.yml

apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
  name: airflow
  namespace: flux
spec:
  interval: 1m
  url: https://airflow.apache.org

and then you can define your manifest as

apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: airflow
  namespace: dev
spec:
  interval: 5m
  chart:
    spec:
      chart: airflow
      sourceRef:
        kind: HelmRepository
        name: airflow
        namespace: flux
      interval: 1m

the flux version used is flux version 0.27.0

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 caxefaizan