GREsau / GREsau/localstack-persist

Helm Chart persistence issue

Open
#27 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
275
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Is there a way to configure persistence setting when modifying official localstack's chart pooled from https://localstack.github.io/helm-charts?

I tried this:
```values.yaml
localstack:
image:
repository: "gresau/localstack-persist"

nameOverride: localstack
fullnameOverride: localstack
startServices: s3,sqs
debug: false

# Don't expose external service ports range
containerPorts:
edge: 4566

persistence:
enabled: true
mountPath: /persisted-data
size: 5Gi

envVars:
#### Default localstack params: ####
# https://docs.localstack.cloud/aws/capabilities/state-management/persistence/

# disabling extra ports, keeping only 4566 for sqs & s3:
EXTERNAL_SERVICE_PORTS_START: "4566"
EXTERNAL_SERVICE_PORTS_END: "4567"

PERSISTENCE: "0" # default localstack param, doesn't work with community edition
#SNAPSHOT_SAVE_STRATEGY: "manual"

#### specific for `gresau/localstack-persist` params: ####
# https://github.com/GREsau/localstack-persist
PERSIST_FREQUENCY: "5" # how frequently, in seconds, to persist change to disk (default 10)

# Disabling all persist services expect for selected:
PERSIST_DEFAULT: "0"
PERSIST_S3: "1"
PERSIST_SQS: "1"

```

But my configuration is always overridden:

```sh
$kubectl describe pod localstack-xxx

Environment:
DEBUG: 0
...
Mounts:
/etc/localstack/init/ready.d from localstack-init-scripts-config (rw)
/var/lib/localstack from data (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-7c28h (ro)

```
As you can see mount is this:
```
/var/lib/localstack from data (rw)
```
Instead of how it should be:
```
/persisted-data from data (rw)
```

The only way I could make it work is by applying post-patch, which is not ideal.

Any suggestions on how to do it in the right way? Do you have your version of charts? Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.