From 8f834557f7ccaa38b477853b7b1caf7c91784207 Mon Sep 17 00:00:00 2001 From: Petr OspalĂ˝ Date: Thu, 22 Aug 2019 17:33:07 +0200 Subject: Add configurable etcd storage feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plus the option to have etcd on tmpfs (volatile storage) for little bigger (maybe) speed (NOT FOR PRODUCTION DEPLOYMENT!). Issue-ID: OOM-2058 Change-Id: I0bbfc4fbae7f6b46e2fae49656437cd6748efd49 Signed-off-by: Petr OspalĂ˝ --- ansible/roles/rke/tasks/rke_etcd.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ansible/roles/rke/tasks/rke_etcd.yml (limited to 'ansible/roles/rke/tasks/rke_etcd.yml') diff --git a/ansible/roles/rke/tasks/rke_etcd.yml b/ansible/roles/rke/tasks/rke_etcd.yml new file mode 100644 index 00000000..3dddf9e8 --- /dev/null +++ b/ansible/roles/rke/tasks/rke_etcd.yml @@ -0,0 +1,9 @@ +--- +- name: "Mount tmpfs as etcd storage - non-persistent data (BEWARE)" + mount: + path: "{{ rke_etcd.storage_path if rke_etcd.enabled_custom_etcd_storage else '/var/lib/etcd' }}" + src: tmpfs + fstype: tmpfs + opts: "defaults,size={{ rke_etcd.tmpfs_size }},mode=700" + state: mounted + when: rke_etcd.enabled_unsafe_volatile_storage -- cgit 1.2.3-korg