KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
kubernetes-client
★ 12
Open GitHub ↗
PHP client for the Kubernetes API
Download README (.md)
Explore Similar Repositories
studies-blevesearch
:
Bleve Search studies
demo-android-login
:
No description available.
UW_Python_for_Geosciences
:
Talks from the UW Python for Geosciences Seminar
EasyMLPlatform
:
DEPRECATED-an easy distributed machine learning platform
dtr5
:
Meetup app for Reddit users based on subreddit subscriptions.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
kubernetes-client
?
Download (.md)
# Kubernetes client [](https://travis-ci.org/sroze/kubernetes-client) A library that provide a client for the Kubernetes API client. ## Getting started To create an anonymous client, you can: ```php $httpClient = new GuzzleHttpClient( new Client(), 'baseUrl', 'version' ); $client = new Client( new HttpAdapter($httpClient, new Serializer()) ); ``` To had user authentication, you can decorate the http client: ```php $authenticatedHttpClient = new AuthenticationMiddleware( $httpClient, AuthenticationMiddleware::USERNAME_PASSWORD, 'username:password' ); ``` ## Serializer If you use JMS serializer, the serializer adapter already exists in the `src/Serializer` directory. There is also an handler for the `RollingUpdateDeployment` object type used by Kubernetes that uses `integerOrString` types. ## Development Install application dependencies: ``` composer install ``` ## Tests Tests are specifications written with [PhpSpec](http://github.com/phpspec/phpspec). ``` ./bin/phpspec run ```