How can I tell whether or not I am running inside a kubernetes cluster? With docker I can check if /.dockerinit exist. Is there an equivalent?
/.dockerinit
You can pass environment variables to your containers in the pod spec. You can even expose some pod information to the containers via environment variables using the downward API.