This library provides a Guzzle based HttpClient factory for the k8s/client library.
- Install the library:
composer require k8s/http-guzzle
- Construct the main client for
k8s/clientthrough theK8sFactory:
use K8s\Client\K8sFactory;
# Load the client from the default KubeConfig
$k8s = (new K8sFactory())->loadFromKubeConfig();Your new client will have all the HttpClient options needed pre-populated when used.