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

pub fn incluster_config() -> Result<Configuration>

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

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