summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rke/tasks/rke_etcd.yml
diff options
context:
space:
mode:
authorPetr Ospalý <p.ospaly@partner.samsung.com>2019-08-22 17:33:07 +0200
committerPetr Ospalý <p.ospaly@partner.samsung.com>2019-08-23 12:52:00 +0200
commit8f834557f7ccaa38b477853b7b1caf7c91784207 (patch)
treebe4645524a0070c8765da483353400a5f39fe27d /ansible/roles/rke/tasks/rke_etcd.yml
parent0364bc6ebc6d26877f1db1be342a10b24f51d80b (diff)
Add configurable etcd storage feature
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ý <p.ospaly@partner.samsung.com>
Diffstat (limited to 'ansible/roles/rke/tasks/rke_etcd.yml')
-rw-r--r--ansible/roles/rke/tasks/rke_etcd.yml9
1 files changed, 9 insertions, 0 deletions
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