kubernetes-cli
A Ruby wrapper around the Kubernetes CLI.
Usage
Create a new instance by passing the path to your Kube config (usually ~/.kube/config) and optionally the path to the kubectl executable (by default, the executable path comes from the kubectl-rb gem).
cli = KubernetesCLI(File.join(ENV['HOME'], '.kube', 'config'))Available Methods
annotateapi_resourcesapplyapply_uricurrent_contextdelete_objectdelete_objectsexec_cmdexecutableget_objectget_objectskubeconfig_pathlast_statuslogtailpatch_objectrestart_deploymentrun_cmdsystem_cmd
Please see the source code for available options.
Running Tests
bundle exec rspec should do the trick. Requires that you have Docker installed.
License
Licensed under the MIT license. See LICENSE for details.
Authors
- Cameron C. Dutro: http://github.com/camertron