Commit Graph

36 Commits

Author SHA1 Message Date
Chin-Ya Huang
19719de0c5 Fix data migration YAML command args
Longhorn-3787

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2022-03-25 14:01:20 +08:00
Derek Su
b4015b98e6 example: add longhorn admission and conversion webhook servers network policy yaml manifests
Signed-off-by: Derek Su <derek.su@suse.com>
(cherry picked from commit 0dd86841f2a2b68f4cccd8f7acfd5e8329630d12)
2022-03-02 13:17:33 +08:00
JenTing Hsiao
246bfdb85c example: add longhorn webhook server network policy yaml manifest
The traffic from/to the longhorn webhook server is the kube-apiserver.
The only way we could add restriction is to add the network policy of
the ingress port because we can't know each Kubernetes distro default
kube-apiserver Pod's label. Therefore, we can't add the label selector
in the network policy rule to restrict the traffic that comes from the
kube-apiserver is able to access to the longhorn webhook server.

Longhorn 3513

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
(cherry picked from commit 769e85bc80b6351a081a79ddf83ab181cf956e23)
2022-03-02 13:17:33 +08:00
Phan Le
93061470ea Add network policy examples
Longhorn-1805

Signed-off-by: Phan Le <phan.le@suse.com>
2021-12-20 17:37:34 +08:00
David Ko
b7910161fc Add fstype in the longhorn.yaml and example sc
Signed-off-by: David Ko <dko@suse.com>
2021-09-06 14:29:17 +08:00
David Ko
46e2cb63ae Update to v1.2.0-rc1
Signed-off-by: David Ko <dko@suse.com>
2021-08-21 00:58:12 +08:00
Chin-Ya Huang
87a610d37f Update example for recurringJobSelector
Longhorn-467

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2021-08-20 11:49:51 +08:00
David Ko
13dc719ebb Release longhorn v1.2.0-preview1
Signed-off-by: David Ko <dko@suse.com>
2021-08-12 01:03:23 +08:00
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
d242a624a7 Sync with Longhorn manager
commit 7eddd32279f08c40e0ed979313e689ec703146b8
Author: Sheng Yang <sheng.yang@rancher.com>
Date:   Wed Dec 16 20:38:45 2020 -0800

    Longhorn v1.1.0-rc3 release

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

Signed-off-by: Sheng Yang <sheng.yang@rancher.com>
2020-12-16 21:52:55 -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
Sheng Yang
fc04775b45 Sync with Longhorn manager
Author: Sheng Yang <sheng.yang@rancher.com>
Date:   Sat Feb 29 18:29:21 2020 -0800

    example: Explain the magic number of staleReplicaTimeout

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

Signed-off-by: Sheng Yang <sheng.yang@rancher.com>
2020-02-29 18:42:08 -08:00
ted
ed02804b20 add units for the staleReplicaTimeout
I can't find a single "spec" for the parameters, so I figure it's best to explain it in the examples and documentation.

Signed-off-by: ted <ted@timmons.me>
2019-11-25 09:38:35 -08:00
Sheng Yang
5c5103d0a9 Sync with Manager
commit 0b3f97866bb0016d09c7054b9ad7c41ae3096484
Author: Sheng Yang <sheng.yang@rancher.com>
Date:   Tue Nov 12 23:15:45 2019 -0800

    Longhorn v0.7.0-rc2 release

Signed-off-by: Sheng Yang <sheng.yang@rancher.com>
2019-11-12 23:33:14 -08:00
Sheng Yang
d2211cc23f Sync with manager:
commit 7cefc46ec36e193bf78f15d3c306dee4b011e751
Author: Sheng Yang <sheng.yang@rancher.com>
Date:   Thu Nov 7 22:31:46 2019 -0800

    Longhorn v0.7.0-rc1 release

Signed-off-by: Sheng Yang <sheng.yang@rancher.com>
2019-11-07 22:50:53 -08:00
Sheng Yang
de4341450b Sync with manager:
commit 5b82a7aa3dfb4c0d9cb42e77219aecfa1415ada6
Author: Sheng Yang <sheng.yang@rancher.com>
Date:   Sat Sep 21 12:46:32 2019 -0700

    Longhorn v0.6.0 release

Signed-off-by: Sheng Yang <sheng.yang@rancher.com>
2019-09-21 14:56:37 -07:00
Sheng Yang
f1a19e3c61 Sync with manager
commit 36b37fcb5955ef5b45ca53cb0dea630806d24541
Author: Sheng Yang <sheng.yang@rancher.com>
Date:   Wed Sep 18 18:03:02 2019 -0700

    Longhorn v0.6.0-rc2 release

Signed-off-by: Sheng Yang <sheng.yang@rancher.com>
2019-09-18 18:27:01 -07:00
Sheng Yang
c8d39afb58 Sync with manager:
commit 2ed3c8c76053c8df3fd418f6076c80c1ca49bf5b
Author: Sheng Yang <sheng.yang@rancher.com>
Date:   Mon Sep 16 18:47:54 2019 -0700

    Longhorn v0.6.0-rc1 release

Signed-off-by: Sheng Yang <sheng.yang@rancher.com>
2019-09-16 19:30:04 -07:00
Sheng Yang
0f6450e1a9 Sync with Manager
commit 65d3426cae52a2da7d4af4ba6f32fd3868d9711d
Author: Sheng Yang <sheng@yasker.org>
Date:   Tue May 14 08:56:14 2019 -0700

    Longhorn v0.5.0-rc1 release
2019-05-14 09:18:40 -07:00
Sheng Yang
69e6a333f9 Sync with manager
commit de3962d5a0b99b70f440dc4cef2c43773097026f
Author: Sheng Yang <sheng@yasker.org>
Date:   Fri Mar 22 19:51:13 2019 -0700

    Longhorn v0.4.1 release
2019-03-22 20:09:57 -07:00
Sheng Yang
d7b574acd6 Sync with Longhorn manager
commit 8e060dce288c4dfa054a4b0a188559e624aeb3c8
Author: James Oliver <joliver@rancher.com>
Date:   Fri Aug 31 16:09:06 2018 -0700

    Add script to tear down Longhorn system
2018-08-31 16:12:44 -07:00
Sheng Yang
64562f16b1 Sync with Longhorn Manager
Manager commit:

commit 807666ba7a13024a218361d963b6c4433b7b45fd
Author: Sheng Yang <sheng@yasker.org>
Date:   Fri Aug 10 21:57:07 2018 -0700

    Update image to rancher/longhorn-manager:v0.3-rc4

    Engine image: rancher/longhorn-engine:v0.3-rc4

    UI Image: rancher/longhorn-ui:v0.3-rc4
2018-08-10 22:24:22 -07:00
Sheng Yang
1c87568c86 Sync with Longhorn Manager
Manager commit:

commit 193dc5704ef033196300780fa5f956ba8c32b828
Author: Sheng Yang <sheng@yasker.org>
Date:   Fri Aug 3 23:02:16 2018 -0700

    Update images

    Manager to: rancher/longhorn-manager:298b65f
    Engine to: rancher/longhorn-engine:e58683a
    UI to: rancher/longhorn-ui:829ebc8
2018-08-04 00:13:27 -07:00
Sheng Yang
3757bf9e6c Update README.md and yaml for v0.3-rc1 2018-08-02 00:03:55 -07:00
Sheng Yang
b212b29d18 examples: Add deployment example 2018-03-26 16:52:08 -07:00
Sheng Yang
b43f3e6b54 example: Add example of StatefulSet 2018-03-26 13:43:03 -07:00
Sheng Yang
a91da5cbe7 Update longhorn-manager and UI
Match longhorn-manager: 7db0d8bd7a69bdfc0bf1a299f3929448aff977d3

Mostly bug fixes and clean up.
2018-03-22 15:57:12 -07:00
Sheng Yang
d4a4865fef Update longhorn-manager
Longhorn manager: 5871843d78168db37d156460a01c56d8620b6f8e

Changes:
1. Complete rewrite of orchestration of Longhorn manager
2. Updated the deployment model of Longhorn driver

This breaks the compatiability with previous version. Please clean up and
re-deploy.
2018-03-12 18:00:36 -07:00
Sheng Yang
1c346eb3f6
K8s support (#22)
* Update to reflect k8s deployment

* Fix a typo

* Update README.md
2017-12-06 10:37:00 +08:00