Comments (3)
It sounds like a problem with Kubernetes rolling update and persistent volumes which only supports Access Mode ReadWriteOnce
(which is basically all the block storage solutions, including EBS, Google Persistent Disk, AzureDisk, see here)
In its current form, it cannot update pods with attached volume. According to rolling update design doc, Kubernetes will start the new pod first, then stop the old pod. Since the volume attached to the pod is RWO
, it cannot be attached again to the new pod before it was detached from the old one first.
A similar issue was filed with Azure at kubernetes/kubernetes#52236 , with a recommendation to use AzureFile
instead of AzureDisk
.
from longhorn.
So, there is no solution as of now ?
from longhorn.
I just realize you can use statefulset
instead of deployment
, which is aware of the different PVCs associated with the pods. And it will do the right thing - stop the old one, then start the new one with the same volume.
from longhorn.
Related Issues (20)
- [BACKPORT][v1.5.6][IMPROVEMENT] Only sync log settings to running instance manager pod
- [BACKPORT][v1.6.2][IMPROVEMENT] Fall back to a running instance-manager if a default is not available HOT 1
- [BACKPORT][v1.5.6][BUG] Lost connection to unix:///csi/csi.sock HOT 1
- [BACKPORT][v1.6.2][BUG] Lost connection to unix:///csi/csi.sock HOT 1
- [BUG] Instance manager pod consumes high CPU usage HOT 1
- [BUG] Unable to join new node - Longhorn v1.7.0-dev HOT 7
- [FEATURE] Add New Disks via Config of Longhorn / HELM
- [TEST] support Rancher prime version in Jenkins pipeline
- [BACKPORT][v1.5.6][BUG] Backup marked as "completed" cannot be restored, gzip: invalid header
- [UI][IMPROVEMENT] Allow users to request backup volume update
- [BUG][V1.5.5] fs trim job fails on RWX volume HOT 8
- [BACKPORT][v1.5.6][CI] Move CI builds to Github Action
- [BACKPORT][v1.6.2][CI] Move CI builds to Github Action HOT 2
- [Bug] DaemonSet longhorn-manager has too much RBAC permission which may leads the whole cluster being hijacked HOT 3
- [BUG] Test case test_support_bundle_should_not_timeout timed out
- [IMPROVEMENT] Read-only volume monitoring check HOT 8
- [TEST] Fix flaky test case test_csi_block_volume_online_expansion
- [BACKPORT][v1.5.6][IMPROVEMENT] Investigate performance bottleneck in v1 data path HOT 4
- [BACKPORT][v1.6.2][IMPROVEMENT] Investigate performance bottleneck in v1 data path HOT 3
- [BACKPORT][v1.6.2][BUG] Secret for backup not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from longhorn.