examples/

directory
v0.12.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2022 License: Apache-2.0

README

Before run test code, please create a namespace test

运行测试代码之前, 先创建一个 namespace/test.

kubectl create namespace test
cd deployment
go run .

Directories

Path Synopsis
Package controller contains code for controllers (like the replication controller).
Package controller contains code for controllers (like the replication controller).
bootstrap
Package bootstrap provides automatic processes necessary for bootstraping.
Package bootstrap provides automatic processes necessary for bootstraping.
certificates
Package certificates implements an abstract controller that is useful for building controllers that manage CSRs
Package certificates implements an abstract controller that is useful for building controllers that manage CSRs
certificates/approver
Package approver implements an automated approver for kubelet certificates.
Package approver implements an automated approver for kubelet certificates.
certificates/cleaner
Package cleaner implements an automated cleaner that does garbage collection on CSRs that meet specific criteria.
Package cleaner implements an automated cleaner that does garbage collection on CSRs that meet specific criteria.
certificates/signer
Package signer implements a CA signer that uses keys stored on local disk.
Package signer implements a CA signer that uses keys stored on local disk.
cronjob
Package cronjob contains the controller for CronJob objects.
Package cronjob contains the controller for CronJob objects.
daemon
Package daemon contains logic for watching and synchronizing daemons.
Package daemon contains logic for watching and synchronizing daemons.
deployment
Package deployment contains all the logic for handling Kubernetes Deployments.
Package deployment contains all the logic for handling Kubernetes Deployments.
endpoint
Package endpoint provides EndpointController implementation to manage and sync service endpoints.
Package endpoint provides EndpointController implementation to manage and sync service endpoints.
job
Package job contains logic for watching and synchronizing jobs.
Package job contains logic for watching and synchronizing jobs.
namespace
Package namespace contains a controller that handles namespace lifecycle
Package namespace contains a controller that handles namespace lifecycle
nodeipam
Package nodeipam contains code for syncing cloud instances with node registry
Package nodeipam contains code for syncing cloud instances with node registry
nodeipam/ipam
Package ipam provides different allocators for assigning IP ranges to nodes.
Package ipam provides different allocators for assigning IP ranges to nodes.
podautoscaler
Package podautoscaler contains logic for autoscaling number of pods based on metrics observed.
Package podautoscaler contains logic for autoscaling number of pods based on metrics observed.
podgc
Package podgc contains a very simple pod "garbage collector" implementation, PodGCController, that runs in the controller manager.
Package podgc contains a very simple pod "garbage collector" implementation, PodGCController, that runs in the controller manager.
replicaset
Package replicaset contains logic for watching and synchronizing ReplicaSets.
Package replicaset contains logic for watching and synchronizing ReplicaSets.
replication
Package replication contains logic for watching and synchronizing replication controllers.
Package replication contains logic for watching and synchronizing replication controllers.
resourcequota
Package resourcequota contains a controller that makes resource quota usage observations
Package resourcequota contains a controller that makes resource quota usage observations
serviceaccount
Package serviceaccount provides implementations to manage service accounts and service account tokens
Package serviceaccount provides implementations to manage service accounts and service account tokens
ttl
volume/attachdetach
Package attachdetach implements a controller to manage volume attach and detach operations.
Package attachdetach implements a controller to manage volume attach and detach operations.
volume/attachdetach/cache
Package cache implements data structures used by the attach/detach controller to keep track of volumes, the nodes they are attached to, and the pods that reference them.
Package cache implements data structures used by the attach/detach controller to keep track of volumes, the nodes they are attached to, and the pods that reference them.
volume/attachdetach/populator
Package populator implements interfaces that monitor and keep the states of the desired_state_of_word in sync with the "ground truth" from informer.
Package populator implements interfaces that monitor and keep the states of the desired_state_of_word in sync with the "ground truth" from informer.
volume/attachdetach/reconciler
Package reconciler implements interfaces that attempt to reconcile the desired state of the with the actual state of the world by triggering actions.
Package reconciler implements interfaces that attempt to reconcile the desired state of the with the actual state of the world by triggering actions.
volume/attachdetach/statusupdater
Package statusupdater implements interfaces that enable updating the status of API objects.
Package statusupdater implements interfaces that enable updating the status of API objects.
volume/ephemeral
Package ephemeral implements the controller part of https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/1698-generic-ephemeral-volumes
Package ephemeral implements the controller part of https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/1698-generic-ephemeral-volumes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL