Kubernetes: Configuração dos Pré-Requisitos

From Wiki

Procedimentos

Configuração do Storage

1) Instalando os pacotes necessários

yum update 
yum -y install lvm2 device-mapper-persistent-data

2) Vamos criar o storage para o Component Pack. Alterar o seu disco, no meu caso /dev/sdb

pvcreate /dev/sdb

vgcreate dockerVg /dev/sdb

lvcreate -l 95%VG --wipesignatures y -n thinpoolLv dockerVg

lvcreate -l 1%VG  --wipesignatures y -n thinpoolmetaLv dockerVg 

lvconvert -y --zero n -c 512K --thinpool dockerVg/thinpoolv --poolmetadata dockerVg/thinpoolmetaLv

cat > /etc/lvm/profile/dockerVg-thinpoolLv.profile  << EOF
activation {
 thin_pool_autoextend_threshold=80
 thin_pool_autoextend_percent=20
} 
EOF

lvchange --metadataprofile dockerVg-thinpoolLv dockerVg/thinpoolLv

lvs -o+seg_monitor

mkdir -p /var/lib/docker

Ver também