kubectl/cmd/kexpand
Jeffrey Regan 09309e13a9 start kexpand 2017-09-28 13:17:32 -07:00
..
README.md start kexpand 2017-09-28 13:17:32 -07:00
main.go start kexpand 2017-09-28 13:17:32 -07:00

README.md

kexpand

TODO: flesh out this placeholder documentation

kexpand is a kubernetes cluster configuration utility, a prototype of ideas discussed in this doc.

It accepts one or more file system path arguments, reads the content thereof, and emits kubernetes resource yaml to stdout, suitable for piping into kubectl for declarative application to a kubernetes cluster.

For example, if your current working directory contained

mycluster/
  Kube-Manifest.yaml
  deployment.yaml
  service.yaml
  instances/
    testing/
      Kube-Manifest.yaml
      deployment.yaml
    prod/
      Kube-Manifest.yaml
      deployment.yaml
 ...

then the command

kexpand ./mycluster/instances | kubectl apply -f -

would modify your cluster per the resources generated from the manifests and associated resource files found in mycluster.