Function kube::config::incluster_config[][src]

pub fn incluster_config() -> Result<Configuration>
Expand description

Returns a config which is used by clients within pods on kubernetes.

It will return an error if called from out of kubernetes cluster.