Code Monkey home page Code Monkey logo

kubernetes's Introduction

kubernetes Cookbook

Build Status Cookbook Version

Resources for deploying various Kubernetes entities, these resources are designed to be ran on the kubernetes master but can be ran anywhere that has access to a kubernetes api by changing the ['kubernetes']['master']['ip'] attribute. These resources utilize the kubeclient ruby gem and run against the v1beta1 api.

Currently broken resources: (waiting on support for v1 api through kubeclient gem)

  • Kubernetes Pod (kube_pod)
  • Kubernetes Replication Controller (kube_replication_controller)
  • Kubernetes Service (kube_service)

Requirements

Platforms

  • All platforms where kubeclient gem can be installed

Chef

  • Chef 14+

Cookbooks

  • build-essential

Attributes

  • ['kubernetes']['master']['ip'] - the address used when contacting the kubernetes api
  • ['kubernetes']['master']['port'] - the port that will be used when contacting the kubernetes api
  • ['kubernetes']['client_version'] - the version of the kubeclient gem to install

Resources

Containers and Volumes

The syntax used when specifying containers and volumes is specific to the kubernetes api, for examples on what these can/should look like please see the kubernetes documentation/examples.

Labels

Theres a bit of magic in the helper library that allows you to specify labels as either a hash 'this' => 'that', 'app' => 'redis', an array of labels ['this=that','app=redis'], or a comma delimited string 'this=that,app=redis'. All three will be treated as the same thing when writing your resources.

License and Author

Copyright 2015, Chef Software, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

kubernetes's People

Contributors

andrewelizondo avatar axl89 avatar damacus avatar kitchen-porter avatar ramereth avatar renovate[bot] avatar tas50 avatar xorima avatar xorimabot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kubernetes's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • sous-chefs/.github 3.1.1
  • actions/checkout v4
  • actionshub/chef-install 3.0.0
  • actionshub/test-kitchen 3.0.0
.github/workflows/stale.yml
  • actions/stale v9

  • Check this box to trigger a request for Renovate to run again on this repository

activate Travis CI

after the repo migration, can we please get travis CI enabled? thanks.

Released documentation still mentions recipes

Cookbook version

1.0.0

Chef-client version

N/A

Platform Details

Vagrant

Scenario:

I am trying to use the cookbook in a Chef Solo provisioner in Vagrant. But the kuberneters::node recipe is faulty since it calls the kube_node resource without a master_ip.

I can see in the history that the recipes have been removed:
7e0e761

But the released documentation still mentions them:
https://supermarket.chef.io/cookbooks/kubernetes

Steps to Reproduce:

Vagrant looks something like this:

  config.vm.define "k8s-master" do |master|
    master.vm.provision "chef_solo" do |chef|
      chef.add_recipe "kubernetes::master"
    end
  end

  2.times do |n|
    config.vm.define "k8s-worker-#{n}" do |worker|
      worker.vm.provision "chef_solo" do |chef|
        chef.add_recipe "kubernetes::node"
      end
    end
  end

Expected Result:

I can follow the docs.

Actual Result:

I get an error about a missing, required master_ip property when calling kube_node.

rename this cookbook

k8s is not the best name for the overall intent of this cookbook and implies that people will understand the shortname

Feature Request - Add support for Weave-Net/Other Networking Backends

Cookbook version

N/A - Latest

Chef-client version

>= 12.14

Platform Details

EL/Debian Based Distros

Scenario:

I would like to support Weave-Net and not be forced into using Flannel.

Steps to Reproduce:

Use the established resources.

Expected Result:

Swap Flannel for Weave-Net (or other available networking services)

Actual Result:

Flannel is the only option.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.