Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
feat(node): containerize iscsid
Browse files Browse the repository at this point in the history
implements #44, #49
  • Loading branch information
plaffitt committed Oct 28, 2020
1 parent 82bfc10 commit a90d306
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN BIN="/dothill" make node
FROM debian:buster

RUN apt update \
&& apt install -y dosfstools e2fsprogs xfsprogs jfsutils libisns0 \
&& apt install -y dosfstools e2fsprogs xfsprogs jfsutils libisns0 open-iscsi \
&& rm -rf /var/lib/apt/lists/*

COPY --from=build /dothill-* /usr/local/bin/
Expand Down
23 changes: 17 additions & 6 deletions helm/dothill-provisioner/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,23 @@ spec:
securityContext:
privileged: true
volumeMounts:
# mounting the full host fs is required for iscsiadm commands to work properly
# see https://www.docker.com/blog/road-to-containing-iscsi/
- name: iscsiadm
mountPath: /sbin/iscsiadm
- name: iscsid
mountPath: /sbin/iscsid
- name: device-dir
mountPath: /dev
- name: iscsi-dir
mountPath: /etc/iscsi
- name: plugin-dir
mountPath: {{ .Values.kubeletPath }}/plugins/dothill.csi.enix.io
- name: mountpoint-dir
mountPath: {{ .Values.kubeletPath }}/pods
mountPropagation: Bidirectional
- name: {{ .Release.Name }}-iscsid
image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
command:
- iscsid
- --foreground
securityContext:
privileged: true
volumeMounts:
- name: device-dir
mountPath: /dev
- name: iscsi-dir
Expand Down

0 comments on commit a90d306

Please sign in to comment.