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

Add initContainer to delete automount udev rule file #305

Merged
merged 1 commit into from
Apr 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## unreleased

* Add initContainer to delete automount udev rule file
[[GH-305]](https://github.com/digitalocean/csi-digitalocean/pull/305)
* Handle per-node volume limit exceeding error during ControllerPublishVolume
[[GH-303]](https://github.com/digitalocean/csi-digitalocean/pull/303)
* Build using Go 1.14
Expand Down
16 changes: 16 additions & 0 deletions deploy/kubernetes/releases/csi-digitalocean-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,19 @@ spec:
priorityClassName: system-node-critical
serviceAccount: csi-do-node-sa
hostNetwork: true
initContainers:
# Delete automount udev rule running on all DO droplets. The rule mounts
# devices briefly and may conflict with CSI-managed droplets (leading to
# "resource busy" errors). We can safely delete it in DOKS.
- name: automount-udev-deleter
image: alpine:3
args:
- "rm"
- "-f"
- "/etc/udev/rules.d/99-digitalocean-automount.rules"
volumeMounts:
- name: udev-rules-dir
mountPath: /etc/udev/rules.d/
containers:
- name: csi-node-driver-registrar
image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0
Expand Down Expand Up @@ -485,6 +498,9 @@ spec:
- name: device-dir
hostPath:
path: /dev
- name: udev-rules-dir
hostPath:
path: /etc/udev/rules.d/
---

apiVersion: v1
Expand Down