Kubespray docker-storage-setup atomichost


#1

Hey Guys,

at the moment I rollout Kubespray on Atomichost.

I guess I run in to a problem I cant resolve on my own.

I cloned the actual 2.8 Branch and edit some required files.

  1. Copy sampleproject
  2. Edit hosts.ini
  3. Edit roles/container-engine/docker-storage/defaults/main.yml
    docker_container_storage_setup_devs: /dev/sdb
  4. activate ‘docker_storage_options: -s overlay2’
    docker_container_storage_setup: true
  5. adding ‘docker_storage_options: -s overlay2’ to all.yaml

I guess thats all I need to configure.

The infrastructure has 5 Nodes and 1 Master.
All these nodes have the same disk-sizes

$ lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda            8:0    0   10G  0 disk
|-sda1         8:1    0  300M  0 part /boot
`-sda2         8:2    0  9.7G  0 part
  |-cah-root 253:0    0  8.7G  0 lvm  /sysroot
  `-cah-swap 253:1    0    1G  0 lvm
sdb            8:16   0  100G  0 disk
`-sdb1         8:17   0  100G  0 part

Actual the containers running in / on the system:
overlay 8.7G 4.3G 4.5G 50% /var/lib/docker/overlay2/62a03caaa182f8829bd12ff13da1a097b2290f71f8a9d30f8c6aa783ef0549a6/merged
tmpfs 3.9G 12K 3.9G 1% /var/lib/kubelet/pods/afde9e0b-2ba9-11e9-b134-00505685d29e/volumes/kubernetes.io~secret/calico-node-token-vw9vl

I do not find these settings in kubespray documentaion and I hope you can help me.

Regards,
danny