You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/aws/enterprise/kubernetes/concepts.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,9 @@ In a Kubernetes deployment:
91
91
92
92
This enables applications running in Kubernetes to interact with LocalStack using standard AWS SDK endpoint resolution without additional configuration.
93
93
94
+
## Storage
95
+
96
+
LocalStack can store data that persists across sessions. See the [LocalStack volume](/aws/capabilities/config/filesystem/#localstack-volume) page for more information. This volume directory can be created in Kubernetes using a [Persistent Volume](https://kubernetes.io/docs/concepts/storage/persistent-volumes/) and associated [Persistent Volume Claim](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims). This volume should be mounted into the pod at `/var/lib/localstack` to persist LocalStack state. See the [Operator](/aws/enterprise/kubernetes/kubernetes-operator/) and [Helm Chart](/aws/enterprise/kubernetes/deploy-helm-chart) documentation for specific details.
This works without additional DNS configuration in client applications.
225
225
226
+
## Storage
227
+
228
+
:::note
229
+
Requires Operator version 0.4.0 or later.
230
+
:::
231
+
232
+
To persist the [LocalStack volume](/aws/capabilities/config/filesystem/#localstack-volume), use the `spec.pvcName` to specify the PVC you want to mount. This automatically mounts the PVC at `/var/lib/localstack`.
233
+
234
+
For example:
235
+
236
+
```yaml
237
+
# pvc definition
238
+
apiVersion: v1
239
+
kind: PersistentVolumeClaim
240
+
metadata:
241
+
name: myPvc
242
+
spec:
243
+
# ...
244
+
245
+
# LocalStack instance definition
246
+
apiVersion: api.localstack.cloud/v1alpha1
247
+
kind: LocalStack
248
+
metadata:
249
+
name: localstack
250
+
namespace: my-namespace
251
+
spec:
252
+
# ...
253
+
pvcName: myPvc
254
+
```
226
255
227
256
## Update
228
257
@@ -261,4 +290,4 @@ Ensure that:
261
290
* Each LocalStack instance requires its **own auth token**
262
291
* The Operator supports **LocalStack Pro images only**
263
292
* DNS integration and Cloud Pod automation are Operator-exclusive features
0 commit comments