Published on2019年1月16日在容器内获取Pod或Container属性KubernetesEnvironmentPodContainer本文介绍了在容器内获取Pod或Container属性的方法,包括通过环境变量将Pod信息呈现给容器、通过Kubernetes API获取Pod或Container属性等。