Skip to content

Instantly share code, notes, and snippets.

@shousper
Created June 23, 2022 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shousper/3d0a1cb83ad235276f59f8a95d4a4bba to your computer and use it in GitHub Desktop.
Save shousper/3d0a1cb83ad235276f59f8a95d4a4bba to your computer and use it in GitHub Desktop.
Failing Airflow chart release deployment with Pulumi
import '@pulumi/kubernetes';
import { Namespace } from '@pulumi/kubernetes/core/v1';
import { Release } from '@pulumi/kubernetes/helm/v3';
const name = 'fail-airflow';
const namespace = new Namespace(name, { metadata: { name } });
new Release(name, {
name,
chart: 'airflow',
version: '1.6.0',
namespace: namespace.metadata.name,
repositoryOpts: {
repo: 'https://airflow.apache.org',
},
maxHistory: 2,
// Without this, jobs aren't run & deployments can never start.
skipAwait: true,
// See: https://github.com/apache/airflow/blob/helm-chart/1.6.0/chart/values.yaml
values: {
executor: 'KubernetesExecutor',
postgresql: {
enabled: false,
},
workers: {
replicas: 0,
},
flower: {
enabled: false,
},
redis: {
enabled: false,
},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment