From 03e1b78dd4de7e932fb395f15238e6982c2848e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ga=C3=9Fner?= Date: Mon, 21 Dec 2020 09:34:00 +0100 Subject: [PATCH] Added option for st2packs-PersistentVolumes to allow for seamless custom pack-updates without job-impact --- CHANGELOG.md | 2 +- README.md | 30 +++++- templates/_helpers.tpl | 54 ++++++++++ templates/deployments.yaml | 150 +++----------------------- templates/jobs.yaml | 7 +- templates/persistentvolumeclaims.yaml | 32 ++++++ values.yaml | 22 +++- 7 files changed, 149 insertions(+), 148 deletions(-) create mode 100644 templates/persistentvolumeclaims.yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index e1e646ec..c13f33ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog ## In Development - +* Add option for st2packs-PersistentVolumes to allow for seamless custom pack-updates without job-impact (#160) (by @moonrail) ## v0.40.0 * Switch st2 version to `v3.4dev` as a new latest development version (#157) diff --git a/README.md b/README.md index d35d9ddb..47194656 100644 --- a/README.md +++ b/README.md @@ -182,7 +182,7 @@ As any other Helm dependency, it's possible to further configure it for specific ## Install custom st2 packs in the cluster In distributed environment of the Kubernetes cluster `st2 pack install` won’t work. Instead, you need to bake the packs into a custom docker image, push it to a private or public docker registry and reference that image in Helm values. -Helm chart will take it from there, sharing `/opt/stackstorm/{packs,virtualenvs}` via a sidecar container in pods which require access to the packs. +Helm chart will take it from there, sharing `/opt/stackstorm/{packs,virtualenvs}` via a sidecar container or alternatively shared PersistentVolume in pods which require access to the packs. ### Building st2packs image For your convenience, we created a new `st2-pack-install ` utility and included it in a container that will help to install custom packs during the Docker build process without relying on live DB and MQ connection. @@ -213,6 +213,34 @@ kubectl create secret docker-registry st2packs-auth --docker-server=