From 3937d5facd0f83edf55438e50a24d5cfc6540330 Mon Sep 17 00:00:00 2001 From: Alec Brooks Date: Tue, 5 Sep 2023 18:02:01 +0900 Subject: [PATCH] Add helm deployment 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..df71d0aa17 --- /dev/null +++ b/deployment/helm/Chart.yaml @@ -0,0 +1,7 @@ +apiVersion: v2 +name: ftl +description: A Helm chart for Kubernetes + +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 <