A Ruby wrapper around the Kubernetes CLI.
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'))annotateapi_resourcesapplyapply_uricurrent_contextdelete_objectdelete_objectsexec_cmdexecutableget_objectget_objectskubeconfig_pathlast_statuslogtailpatch_objectrestart_deploymentrun_cmdsystem_cmd
Please see the source code for available options.
bundle exec rspec should do the trick. Requires that you have Docker installed.
Licensed under the MIT license. See LICENSE for details.
- Cameron C. Dutro: http://github.com/camertron