Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. It groups containers that should be co-located into pods and manages replication and rollouts of pods across a cluster of machines. Kubernetes uses controllers to maintain the desired state by rectifying any discrepancies. It provides labels to map structures onto objects and services for load balancing pods behind a single IP address. Mesos and Kubernetes both aim to orchestrate containers but take different approaches, with Mesos focusing on resource isolation and sharing and Kubernetes focusing on deployment and management of applications.