lapee79's Tech Blog

lapee79의 기술 지식 창고.

Use a local disk through Local Persistent Volumes in Kubernetes

The Local Persistent Volumes feature has been promoted to GA in Kubernetes 1.14. A local persistent volume represents a local disk directly-attached to a single Kubernetes Node. In the Kubernetes system, local disks can be used through HostPath, LocalVolume. HostPath: The volume itself does not contain scheduling information. If you want to fix each pod on a node, you need to configure scheduling information, such as nodeSelector, for the pod. Continue reading

Setup Production Ready Kubernetes on baremetal with kubespray

Kubespray is a composition of Ansible playbooks, inventory, provisioning tools, and domain knowledge for generic OS/Kubernetes clusters configuration management tasks. Prerequisites Hardware 5 Nodes: Virtual/Physical Machines Memory: 8GB CPU: 4Core Hard disk: 120GB available Software Kubernetes nodes Ubuntu 18.04 Python SSH Server Privileged user Kubespray machine Ansible 2.7.8+(not 2.8.x) Jinja 2.9+ Nodes Networking requisites Internet access to download docker images and install softwares IPv4 Forwarding should be enabled In order to avoid any issue during deployment, you should disable firewall. Continue reading