How to: How do I put variables into my pods?
Look at the Downward API: http://kubernetes.io/docs/user-guide/downward-api/
It allows your pods to see labels and annotations and a few other variables using either a mount point or environment variables inside the pod. If those don't contain the information you need, you'll likely need to resort to either using the Kubernetes API from within the pod or something entirely separate.