Skip to content

Commit

Permalink
fix bottlerocket compatibility
Browse files Browse the repository at this point in the history
bottlerocket nodes have a r/o file system:

```
[pod/efs-csi-node-cxcfc/csi-driver-registrar] E0111 23:11:21.812117       1 main.go:107] "Failed to create registration probe file" err="mkdir /var/lib/kubelet/plugins/efs.csi.aws.com: read-only file system" registrationProbePath="/var/lib/kubelet/plugins/efs.csi.aws.com/registration"
```

with this change:

```
[pod/efs-csi-node-kg9dt/csi-driver-registrar] I0111 23:14:01.377424       1 main.go:109] "Kubelet registration probe created" path="/var/lib/kubelet/plugins/efs.csi.aws.com/registration"
```
  • Loading branch information
mweberjc committed Jan 12, 2024
1 parent a99fea1 commit d533364
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/aws-efs-csi-driver/templates/node-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ spec:
mountPath: /csi
- name: registration-dir
mountPath: /registration
- name: probe-dir
mountPath: /var/lib/kubelet/plugins/efs.csi.aws.com/
{{- with .Values.sidecars.nodeDriverRegistrar.resources }}
resources: {{ toYaml . | nindent 12 }}
{{- end }}
Expand Down Expand Up @@ -182,3 +184,5 @@ spec:
hostPath:
path: /etc/amazon/efs
type: DirectoryOrCreate
- emptyDir: {}
name: probe-dir

0 comments on commit d533364

Please sign in to comment.