Can't deploy k8s application with detached storage
Bug #1818533 reported by
Stuart Bishop
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
'juju deploy --help' clearly states:
--attach-storage (= )
Existing storage to attach to the deployed unit (not available on kubernetes models)
We need to lose this restriction so we can do redeploys without losing state. Destroying an application does appear to detach the storage, but there appears to be no way to make use of it.
Changed in juju: | |
importance: | Undecided → Wishlist |
Changed in juju: | |
status: | New → Triaged |
tags: | added: canonical-data-platform-eng |
To post a comment you must log in.
The issue is that idiomatically k8s pods requiring storage are managed by a stateful set, which requires that each pod be homogeneous - the pod template defining storage requirements is configured up front and typically a PVC backed by a storage class providing dynamically provisioned storage is used. k8s applications will have their own strategies for dealing with importing data from existing volumes; it's currently a bit wild west. We're looking at the possibility of patching existing pods to dynamically attach existing storage but need to consider how this interacts with the stateful set and how it manages rolling updates etc which may override and individual pod customisation done outside of the stateful set.