Kubernetes: Configuração dos Pré-Requisitos

From Wiki
Revision as of 12:45, 6 February 2019 by Ebasso (talk | contribs) (Criou a página com "= Procedimentos = == Configuração do Storage == Vamos criar o storage para o Component Pack. Alterar o seu disco, no meu caso '''/dev/sdb''' pvcreate '''/dev/sdb'''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Procedimentos

Configuração do Storage

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 thinpool dockerVg

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

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

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

lvchange --metadataprofile dockerVg-thinpool dockerVg/thinpool

lvs -o+seg_monitor

mkdir -p /var/lib/docker


Ver também