Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

kubernetes-stack (2) Versions 0.1.1

Installs/Configures kubernetes

Policyfile
Berkshelf
Knife
cookbook 'kubernetes-stack', '~> 0.1.1', :supermarket
cookbook 'kubernetes-stack', '~> 0.1.1'
knife supermarket install kubernetes-stack
knife supermarket download kubernetes-stack
README
Dependencies
Quality 33%

kubernetes-stack-cookbook Build Status

Kubernetes stack cookbook to work with Kubernetes: https://supermarket.chef.io/cookbooks/kubernetes-stack

Requirements

  • Chef 12.5.x or higher. Chef 11 is NOT SUPPORTED.

Platform support

gcloud kubectl helm
centos-7
ubuntu-16.04
  • kubectl: support all centos-7 and ubuntu-16.04 versions.
  • helm: support all centos-7 and ubuntu-16.04 versions.
  • gcloud: support all centos-7 and ubuntu-16.04 versions. Should use version avaiable in https://packages.cloud.google.com/apt/ (with ubuntu platform) for faster autocomplete.

How to use

  • Add depends 'kubernetes-stack' to your cookbook's metadata.rb.
  • Use the resources shipped in cookbook in a recipe :
kubectl 'install kubectl' do
  action [:install, :remove]
  version '' #application version (if empty, default: latest)
  binary_path '' #application path (if empty, default: /usr/local/bin/kubectl)
end

gcloud 'install gcloud' do
  action [:install, :remove]
  version '' #application version (if empty, default: latest)
  binary_path '' #application path (if empty, default: /usr/local/bin/gcloud)
end

helm 'install helm' do
  action [:install, :remove]
  version '' #application version (if empty, default: latest)
  binary_path '' #application path (if empty, default: /usr/local/bin/helm)
end

How to develop

  $ cd ~/teracy-dev/workspace
  $ git checkout <your_forked_repo>
  $ cd kubernetes-stack-cookbook
  $ git remote add upstream git@github.com:teracyhq-incubator/kubernetes-stack-cookbook.git
  • $ vagrant reload --provision to update the dev-setup from this project into the teracy-dev's VM.

  • For codestyle checking:

  $ cd ~/teracy-dev
  $ vagrant ssh
  $ ws
  $ cd kubernetes-stack-cookbook
  $ codestyle
  • For rspec checking:
  $ rspec
  • For kitchen testing:
  $ kitchen list
  $ kitchen verify <instance>

Resources overview

  • gcloud: install or remove google-cloud-sdk.
  • kubectl: install or remove kubectl.
  • helm: install or remove helm.

Resources detail

gcloud

The gcloud resource auto-install or auto-remove gcloud with the provider resolution system.

Example

Install gcloud with default version:

gcloud 'install default gcloud' do
  action :install
  version ''
  binary_path ''
end

Install gcloud with specific version:

gcloud 'install specific gcloud version' do
  action :install
  version '164.0.0'
  binary_path ''
end

Remove gcloud:

gcloud 'remove gcloud' do
  action :remove
end

Properties

  • action - :install to install gcloud, :remove to uninstall gcloud.
  • version - The desired version of gcloud.
  • binary_path - Application path (if empty, default:/usr/local/bin/gcloud)

kubectl

The kubectl resource auto-install or auto-remove kubectl with the provider resolution system.

Example

Install kubectl with default version:

kubectl 'install default kubectl' do
  action :install
  version ''
  binary_path ''
end

Install kubectl with specific version:

kubectl 'install specific kubectl version' do
  action :install
  version 'v1.7.0'
  binary_path ''
end

Remove kubectl:

kubectl 'remove kubectl' do
  action :remove
end

Properties

  • action - :install to install kubectl, :remove to uninstall kubectl.
  • version - The desired version of kubectl.
  • binary_path - Application path (if empty, default:/usr/local/bin/kubectl)

helm

The helm resource auto-install or auto-remove helm with the provider resolution system.

Example

Install helm with default version:

helm 'install default helm' do
  action :install
  version ''
  binary_path ''
end

Install helm with specific version:

helm 'install specific helm version' do
  action :install
  version 'v2.4.2'
  binary_path ''
end

Remove helm:

helm 'remove helm' do
  action :remove
end

Properties

  • action - :install to install helm, :remove to uninstall helm.
  • version - The desired version of helm.
  • binary_path - Application path (if empty, default:/usr/local/bin/helm)

See more:

License

Copyright (c) Teracy Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.1.1 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.1.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.1.1 passed this metric

No Binaries Metric
            

0.1.1 passed this metric

Testing File Metric
            

0.1.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.1.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number