top

podmaster is a simple utility, it attempts to acquire and maintain a lease-lock from etcd using compare-and-swap. if it is the master, it copies a source file into a destination file. If it is not the master, it makes sure it is removed.

typical usage is to copy a Pod manifest from a staging directory into the kubelet's directory, for example:

podmaster --etcd-servers=http://127.0.0.1:4001 --key=scheduler --source-file=/kubernetes/kube-scheduler.manifest --dest-file=/manifests/kube-scheduler.manifest

Imports 5 package(s) ΒΆ

  1. github.com/coreos/etcd/client
  2. github.com/spf13/pflag
  3. k8s.io/kubernetes/pkg/storage/etcd/util
  4. github.com/golang/glog
  5. golang.org/x/net/context