Sign in
apache
/
cloudstack-kubernetes-provider
/
18ebd3f017ee81ff2759d1175787a0dd26fcbddc
/
.
/
vendor
/
k8s.io
/
client-go
/
examples
tree: 404ec5964f0f6360b32c3c722dc62b3d824a49bc [
path history
]
[
tgz
]
create-update-delete-deployment/
fake-client/
in-cluster-client-configuration/
out-of-cluster-client-configuration/
workqueue/
README.md
vendor/k8s.io/client-go/examples/README.md
client-go Examples
This directory contains examples that cover various use cases and functionality for client-go.
Configuration
Authenticate in cluster
: Configure a client while running inside the Kubernetes cluster.
Authenticate out of cluster
: Configure a client to access a Kubernetes cluster from outside.
Basics
Managing resources with API
: Create, get, update, delete a Deployment resource.
Advanced Concepts
Work queues
: Create a hotloop-free controller with the rate-limited workqueue and the
informer framework
.
Custom Resource Definition (successor of TPR)
: Register a custom resource type with the API, create/update/query this custom type, and write a controller that drives the cluster state based on the changes to the custom resources.
Testing
Fake Client
: Use a fake client in tests.