LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 03-25-2021, 01:12 AM   #1
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 321

Rep: Reputation: 33
High Availability microk8s iSCSI storage


Hello,
I started to experiment with mickrok8s. I want to build HA system with iSCSI storage for the containers.
My question is how should I proceed with the storage
- Should I attach to hosts iSCSI storage or I have to attach it to each container I install.
Thank you in advance.
 
Old 03-25-2021, 01:58 AM   #2
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Rep: Reputation: 114Reputation: 114
Best to keep the storage separate from the systems similar to a SAN / LUN. If one of the systems go down the other systems will still have access to the storage
 
Old 03-25-2021, 02:07 AM   #3
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 321

Original Poster
Rep: Reputation: 33
Thank you, Gad,
I understand this and thus I want to use iSCSI share from separated SAN. My question is should I add a single LUN from the SAN to the hosts which run microk8s (Kubernetes) or I have to create containers inside microk8s and attach to them storage from the SAN.
 
Old 03-25-2021, 02:42 AM   #4
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Rep: Reputation: 114Reputation: 114
I am not expert on this specific topic but what I have come to understand is that there should be a connection to each container.
 
Old 03-25-2021, 03:45 AM   #5
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 321

Original Poster
Rep: Reputation: 33
I found an interesting article https://rootfs.github.io/iSCSI-Kubernetes/

The most interesting part is
Quote:
Persisting data inside a container can be done in two ways.

Container sets up iSCSI session
The iSCSI session is initiated inside the container, iSCSI traffic goes through Docker NAT to external iSCSI target. This approach doesn't require host's support and is thus portable. However, the Container is likely to suffer from suboptimal network performance, because Docker NAT doesn't deliver good performance, as reseachers at IBM found.

Since iSCSI is highly senstive to network performance, delay or jitters will cause iSCSI connection timeout and retries. This approach is thus not preferred for mission-critical services.

Host sets up iSCSI session
Host initiates the iSCSI session, attaches iSCSI disk, mounts the filesystem on the disk to a local directory, and shares the filesystem with Container. This approach doesn't need Docker NAT and is conceivably higher performing than the first approach.
So obviously the storage should be added to the hosts, this way multipath could be configured easy.
But the directory structure on all nodes (mount points) should be same.
 
Old 03-25-2021, 05:38 AM   #6
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Rep: Reputation: 114Reputation: 114
Makes sense, if I compare it to non cluster / container environments the hosts make a connection to the SAN
 
  


Reply

Tags
container, high availability, iscsi, micork8s



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ubuntu 19.10 on the edge: Raspberry Pi 4 support and MicroK8s LXer Syndicated Linux News 0 10-17-2019 03:21 PM
LXer: High-Availability Storage with GlusterFS on CentOS 7 - Mirror across two storage servers LXer Syndicated Linux News 0 07-01-2016 07:42 PM
LXer: High-Availability Storage with GlusterFS on Debian 8 - Mirror across two storage servers LXer Syndicated Linux News 0 03-23-2016 01:36 PM
iscsi high availability jobycxa Linux - Networking 2 04-02-2012 11:49 PM
iscsi server with high availability aclhkaclhk Linux - Server 1 08-15-2009 09:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration