This repo is no longer being maintained. Users are welcome to fork it, but we make no warranty of its functionality.
Ruby client for Kubernetes REST API
gem install kubr
require 'kubr'
Kubr.configure do |config|
config.url = 'https://130.211.56.93/api/v1beta1'
config.username = 'admin'
config.password = 'hv9tgLhKdej3HAHE'
end
cl = Kubr::Client.new
pods = cl.list_pods
pod = {
:desiredState => {
:manifest => {
:version => 'v1beta1',
:containers => [
{
:name => 'aytest2',
:image => 'dockerfile/nginx',
}
]
}
}
}
cl.create_pod pod