summaryrefslogtreecommitdiff
path: root/roles/kubernetes/base/tasks/zfs.yml
blob: 4311dd3f007c6f992c9048f12c88a176dfe0dc7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- name: create zfs dataset
  zfs:
    name: "{{ kubelet_zfs.pool }}/{{ kubelet_zfs.name }}"
    state: present
    extra_zfs_properties:
      quota: "{{ kubelet_zfs.size }}"

- name: bind mount filesytem
  mount:
    src: "{{ zfs_zpools[kubelet_zfs.pool].mountpoint }}/{{ kubelet_zfs.name }}"
    path: /var/lib/kubelet
    fstype: none
    opts: bind,x-systemd.automount,nofail
    state: mounted