Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline mode using ConfigMap instead of Volume #66

Open
karoisuzvards opened this issue Jan 2, 2025 · 1 comment
Open

Offline mode using ConfigMap instead of Volume #66

karoisuzvards opened this issue Jan 2, 2025 · 1 comment
Labels
waiting for feedback Indicates LaunchDarkly is waiting for customer feedback before issue is closed due to staleness.

Comments

@karoisuzvards
Copy link

Is your feature request related to a problem? Please describe.

We are (a paying customer) using Launchdarkly Relay in Offline Mode for dynamic environments. Initial state is seeded by downloading the tarball using relay key (as per docs). Due to cost saving we are using AWS Spot instances which can terminate at any moment. When PVC is created and seeded with file - if/when SPOT termination occurs - newly created PVC is empty which could cause trouble for our ephemeral environment.

Describe the solution you'd like

In our case - the seed file is small - 6Kib. We could push it inside a ConfigMap and mount it as a volume (https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#populate-a-volume-with-data-stored-in-a-configmap)

Describe alternatives you've considered

Looking at deployment.yaml - we might hack something up by creating a ConfigMap ending in -volume and using relay.volume.offline flag (to be tested first though)

@keelerm84
Copy link
Member

@karoisuzvards this is already supported.

As you mention, simply load the offline.tar.gz into a config map.

kubectl create configmap offline-configmap --from-file=offline.tar.gz

Then reference that file, and configmap definition in the volumes section of your values file.

relay:
  volume:
    offline: offline.tar.gz
    definition:
      configMap:
        name: offline-configmap

@keelerm84 keelerm84 added the waiting for feedback Indicates LaunchDarkly is waiting for customer feedback before issue is closed due to staleness. label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for feedback Indicates LaunchDarkly is waiting for customer feedback before issue is closed due to staleness.
Projects
None yet
Development

No branches or pull requests

2 participants