Instance metadata service is a server available to virtual machines hosted on the cloud providers (often at http://169.254.169.254/). It provides useful information about the VM itself and its environment, which the VM typically does not have access to.
It is often used to configure and distinguish VM instances from each other in
scripts and helps a great deal in bootstrapping cluster orchestrators such as
Kubernetes, Mesos etc.