Commit Graph

9 Commits

Author SHA1 Message Date
David Ko
ff72f95d9c Update version to v1.1.1-preview1
Signed-off-by: David Ko <dko@suse.com>
2021-03-18 10:35:16 +08:00
Sheng Yang
55cfc3482a Remove examples/rwx
Remove it to prevent misleading users.

It should be removed from Longhorn manager as well.

Signed-off-by: Sheng Yang <sheng.yang@rancher.com>
2020-12-17 18:21:15 -08:00
Sheng Yang
08e1522f6e Sync with Longhorn manager
commit 53203078833122cf1544e4145bf12ecec4e7d097
Author: Sheng Yang <sheng.yang@rancher.com>
Date:   Sun Dec 6 10:25:22 2020 -0800

    deploy: add iscsi deploy helper

    Signed-off-by: Sheng Yang <sheng.yang@rancher.com>

Signed-off-by: Sheng Yang <sheng.yang@rancher.com>
2020-12-06 11:02:15 -08:00
Shuo Wu
b478c3a1bf example: Fix example rwx
1. Use different names for the 2 roles
(and the related role bindings)
2. Make sure the role binding namespace is the same as the
namespace where nfs provisioner is deployed

Signed-off-by: Shuo Wu <shuo@rancher.com>
2020-07-07 13:09:18 -07:00
Joshua Moody
aec2021833 Add rwx-test deployment (append only log)
The test deployment creates 4 replicas that continously, write the
current date time once a second into the file `/mnt/nfs-test/test.log`

This is a good test for an rwx volume. Since it replicates an append
only log that is used by multiple pods.

Signed-off-by: Joshua Moody <joshua.moody@rancher.com>
2020-07-01 12:16:34 -07:00
Joshua Moody
23f9cc18b3 Hardcode nfs service cluster ip
So that on a delete & recreate of the service the previous pv's still
point to this nfs-provisioner. We cannot use the hostname since the actual
host doesn't know how to resolve service addresses inside of the cluster.

To support this would require the installation of kube-dns and
modification to the /etc/resolve.conf file on each host.

Signed-off-by: Joshua Moody <joshua.moody@rancher.com>
2020-07-01 12:16:34 -07:00
Joshua Moody
f70ee1063d Add noresvport to the nfs mount options
This makes the nfs client use a new src port for each tcp reconnect.
This way after a crash the faulty connection isn't kept alive in the
connection cache (nat). This should allow to resolve the cluster ip to
the new destination pod ip.

Signed-off-by: Joshua Moody <joshua.moody@rancher.com>
2020-07-01 12:16:34 -07:00
Joshua Moody
8969d829f2 Add quicker failover for nfs
Add tolerations so that nfs provisioner pod gets evicted from a failing
node after 60 second + 30 grace period (relevant for va recovery policy).
Add liveness + readyness probe, so that no traffic gets routed to a failed
nfs server. Disable device based fsids (major:minor) since our block device
mapping can change from node to node, which makes the id's unstable.

Signed-off-by: Joshua Moody <joshua.moody@rancher.com>
2020-07-01 12:16:34 -07:00
Joshua Moody
51d693b42d Add example deployment of nfs on top of a longhorn volume
This can be used to support RWX scenarios by exposing the longhorn volume via the nfs provisioner. The nfs-provisioner we use can be found at:
https://github.com/kubernetes-incubator/external-storage/tree/master/nfs

Signed-off-by: Joshua Moody <joshua.moody@rancher.com>
2020-07-01 12:16:34 -07:00