Skip to content
Snippets Groups Projects
Unverified Commit 386b3c6a authored by Vincent Sellier's avatar Vincent Sellier
Browse files

rancher: use a zfs dataset for /var/lib/kubelet to use the local storage for EmptyDir volumes

Related to T4506
parent 4790ce76
No related branches found
No related tags found
1 merge request!561rancher: use a zfs dataset for /var/lib/kubelet to use the local storage for EmptyDir volumes
# Handle /var/lib/kubelet partition as zfs mountpoint
# To reduce the disk usage and use local storage when the second hard
# drive is configured to a local storage in terraform
class profile::zfs::kubelet {
# as it's for rancher, we consider the zpool['data'] is
# already installed by profile::zfs::docker
zfs { 'data/kubelet':
ensure => present,
atime => 'off',
compression => 'zstd',
mountpoint => '/var/lib/kubelet',
require => Zpool['data'],
}
}
class role::rancher_node inherits role::swh_base {
include profile::docker
include profile::zfs::docker
include profile::zfs::kubelet
}
  • Phabricator Migration user @phabricator-migration ·
    Owner

    Some references in the commit message have been migrated:

    • T4506 is now infra/sysadm-environment#4506
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment