package util

import "os"

// IsInK8sPodEnvironment checks whether in the k8s pod environment
// refer: https://stackoverflow.com/questions/36639062/how-do-i-tell-if-my-container-is-running-inside-a-kubernetes-cluster/54130803#54130803
func IsInK8sPodEnvironment() bool {
	return os.Getenv("KUBERNETES_SERVICE_HOST") != ""
}
