From bcce02a9ced115f5c70388c469920d2b3eaa7468 Mon Sep 17 00:00:00 2001 From: yokhahn Date: Fri, 19 Jan 2018 13:34:47 -0600 Subject: [PATCH] Add Kubelet /etc/iscsi and iscsiadm mounts on bare-metal * Allow using iSCSI with Container Linux bare-metal clusters * Warning, iSCSI isn't part of Kubernetes conformance and isn't regularly evaluated --- CHANGES.md | 4 ++++ bare-metal/container-linux/kubernetes/cl/controller.yaml.tmpl | 4 ++++ bare-metal/container-linux/kubernetes/cl/worker.yaml.tmpl | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 7b9d2faf..77b77f22 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -26,6 +26,10 @@ Notable changes between versions. * Fix issue where Azure defaults to `Deallocate` eviction policy, which required manually restarting deallocated instances. `Delete` policy aligns Azure with AWS and GCP behavior. * Require `terraform-provider-azurerm` v1.19+ (action required) +#### Bare-Metal + +* Add Kubelet `/etc/iscsi` and `iscsadm` mounts on bare-metal for iSCSI ([#103](https://github.com/poseidon/typhoon/pull/103)) + #### Addons * Update nginx-ingress from v0.20.0 to v0.21.0 diff --git a/bare-metal/container-linux/kubernetes/cl/controller.yaml.tmpl b/bare-metal/container-linux/kubernetes/cl/controller.yaml.tmpl index 3a893a52..72b61805 100644 --- a/bare-metal/container-linux/kubernetes/cl/controller.yaml.tmpl +++ b/bare-metal/container-linux/kubernetes/cl/controller.yaml.tmpl @@ -70,6 +70,10 @@ systemd: --mount volume=opt-cni-bin,target=/opt/cni/bin \ --volume var-log,kind=host,source=/var/log \ --mount volume=var-log,target=/var/log \ + --volume iscsiconf,kind=host,source=/etc/iscsi/ \ + --mount volume=iscsiconf,target=/etc/iscsi/ \ + --volume iscsiadm,kind=host,source=/usr/sbin/iscsiadm \ + --mount volume=iscsiadm,target=/sbin/iscsiadm \ --insecure-options=image" ExecStartPre=/bin/mkdir -p /opt/cni/bin ExecStartPre=/bin/mkdir -p /etc/kubernetes/manifests diff --git a/bare-metal/container-linux/kubernetes/cl/worker.yaml.tmpl b/bare-metal/container-linux/kubernetes/cl/worker.yaml.tmpl index 5aa30bb0..7a2f778d 100644 --- a/bare-metal/container-linux/kubernetes/cl/worker.yaml.tmpl +++ b/bare-metal/container-linux/kubernetes/cl/worker.yaml.tmpl @@ -45,6 +45,10 @@ systemd: --mount volume=opt-cni-bin,target=/opt/cni/bin \ --volume var-log,kind=host,source=/var/log \ --mount volume=var-log,target=/var/log \ + --volume iscsiconf,kind=host,source=/etc/iscsi/ \ + --mount volume=iscsiconf,target=/etc/iscsi/ \ + --volume iscsiadm,kind=host,source=/usr/sbin/iscsiadm \ + --mount volume=iscsiadm,target=/sbin/iscsiadm \ --insecure-options=image" ExecStartPre=/bin/mkdir -p /opt/cni/bin ExecStartPre=/bin/mkdir -p /etc/kubernetes/manifests