Download the PHP package keboola/k8s-client without Composer
On this page you can find all versions of the php package keboola/k8s-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package k8s-client
Kubernetes Client
High-level K8S client library. It is based on kubernetes/php-client
library, but enhances
it in many ways:
- support connection to multiple clusters
- automatic handling of result type (you don't need to check if the result is what you expect,
Status
or something else) - integrated retries in case of networking problems
- high-level operations like
create
multiple resources at once,waitWhileExists
to wait while given resource exists etc.
Usage
To create a client, use one of provided client factories:
GenericClientFacadeFactory
if you have cluster credentialsInClusterClientFacadeFactory
if you run inside a Pod which has access to K8S API
Development
Prerequisites:
- configured
az
andaws
CLI tools (runaz login
andaws configure --profile keboola-dev-platform-services
) - installed
terraform
(https://www.terraform.io) andjq
(https://stedolan.github.io/jq) to setup local env - installed
docker
to run & develop the library
TL;DR:
Implementing new API
Only few K8S APIs we needed are implement so far. To implement new API, do following:
- create API client wrapper in
Keboola\K8sClient\ApiClient
- this is a wrapper around
kubernetes/php-client
API class, takes care of handling results
- this is a wrapper around
- add the wrapper to
KubernetesApiClientFacade
- inject the
kubernetes/php-client
client through constructor - add support for the new resource to methods signatures
- inject the
- update
GenericClientFacadeFactory
to provide new API class toKubernetesApiClientFacade
License
MIT licensed, see LICENSE file.
All versions of k8s-client with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
keboola/retry Version ^0.5.1
kubernetes/php-client Version 1.26.10
kubernetes/php-runtime Version ^1.0.10
keboola/retry Version ^0.5.1
kubernetes/php-client Version 1.26.10
kubernetes/php-runtime Version ^1.0.10
The package keboola/k8s-client contains the following files
Loading the files please wait ....