Skip to content
Ruby client for Kubernetes REST API
Ruby
Branch: master
Clone or download
Latest commit d61dda1 Nov 28, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib The token check should be empty not nil Nov 28, 2014
.gitignore Initial commit Sep 3, 2014
Gemfile Rename to kubr Sep 4, 2014
Gemfile.lock Fix labels logic Sep 9, 2014
README.md Fix typo Sep 7, 2014
kubr.gemspec fix path case - preventing loading/building of gem Nov 19, 2014

README.md

kubr

Ruby client for Kubernetes REST API

Installation

gem install kubr

Usage

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
You can’t perform that action at this time.