From e17e4ce32d79bd6e31d7213b82864b620f7bb771 Mon Sep 17 00:00:00 2001 From: alec-brooks Date: Wed, 6 Sep 2023 08:08:49 +0900 Subject: [PATCH] Helm deployment (#351) This is a duplicate of the kustomize deployment, and should be equivalent. This will be a first step towards enabling Helm adoption for deployment to non local k8s --- deployment/helm/Chart.yaml | 7 ++ deployment/helm/README.md | 26 ++++++ deployment/helm/schema | 1 + deployment/helm/templates/db-migrate.yml | 38 +++++++++ deployment/helm/templates/ftl-controller.yml | 87 ++++++++++++++++++++ deployment/helm/templates/ftl-runner.yml | 41 +++++++++ deployment/helm/templates/pg-cluster.yaml | 59 +++++++++++++ deployment/helm/values.yaml | 6 ++ 8 files changed, 265 insertions(+) create mode 100644 deployment/helm/Chart.yaml create mode 100644 deployment/helm/README.md create mode 120000 deployment/helm/schema create mode 100644 deployment/helm/templates/db-migrate.yml create mode 100644 deployment/helm/templates/ftl-controller.yml create mode 100644 deployment/helm/templates/ftl-runner.yml create mode 100644 deployment/helm/templates/pg-cluster.yaml create mode 100644 deployment/helm/values.yaml diff --git a/deployment/helm/Chart.yaml b/deployment/helm/Chart.yaml new file mode 100644 index 0000000000..9f8b3ab39b --- /dev/null +++ b/deployment/helm/Chart.yaml @@ -0,0 +1,7 @@ +apiVersion: v2 +name: ftl +description: A Helm chart for FTL + +type: application + +version: 0.1.0 diff --git a/deployment/helm/README.md b/deployment/helm/README.md new file mode 100644 index 0000000000..c8d0aa9283 --- /dev/null +++ b/deployment/helm/README.md @@ -0,0 +1,26 @@ +# Apply Helm to K3D + +Create a K3D cluster: +``` +k3d registry create registry.localhost --port 5000 +k3d cluster create --api-port 6550 -p "8892:80@loadbalancer" --agents 2 \ + --registry-use k3d-registry.localhost:5000 \ + --registry-config <(cat <