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

RSS

kube_cluster (2) Versions 0.1.0

Installs/Configures kubernetes cluster

Berkshelf
Policyfile
Knife
cookbook 'kube_cluster', '= 0.1.0'
cookbook 'kube_cluster', '= 0.1.0', :supermarket
knife supermarket install kube_cluster
knife supermarket download kube_cluster
README
Dependencies
Quality 25%

chef-kube_cluster

This will be used to initialize a kubernetes cluster reference: https://www.tecmint.com/install-kubernetes-cluster-on-centos-7/

Steps

  1. initialize chef cookbook
    • chef generate cookbook <cookbook name>
  2. Create Recipes
  3. Create policies
  4. Kitchen test(dokken)
  5. Write actions file to upload to supermarket

Create Recipes

  1. Disable Selinux ==> might be in gcp's startup script or selinux cookbook(test if restart is needed)** test if works without reboot
  2. Set Firewall rules on port
    • Different for master and worker nodes
    • https://supermarket.chef.io/cookbooks/firewall firewall-cmd --permanent --add-port=6443/tcp firewall-cmd --permanent --add-port=2379-2380/tcp firewall-cmd --permanent --add-port=10250/tcp firewall-cmd --permanent --add-port=10251/tcp firewall-cmd --permanent --add-port=10252/tcp firewall-cmd --permanent --add-port=10255/tcp firewall-cmd –reload modprobe br_netfilter echo '1' > /proc/sys/net/bridge/bridge-nf-call-iptables
  3. Setup kubernetes yum pkg repo: template file
  4. Install packages kubeadm,docker
  5. enable and start the following services
    • kubelet
    • docker
  6. Disable swap : swapoff -a
  7. initialize kubernetes master: kubeadm init
  8. Start cluster as root
  9. Setup pod network using weavenet- pod network??
  10. Copy the adm join: try storing token and sha256 in gcp secret store manager - todo once looking if it's possible

Policies

We will need two policies one for master node and another for worker node

kitchen tests

  • status of docker kubelet servcies -test if the number of lines with NotReady is zero or not using grep??. Op of kubelet get nodes.

actions

  • [x] Add chef_pem key to secrets.
  • create a folder with knife config.rb
  • apply knife cookbook upload - to upload cookbook to supermarket
  • Create and push policies to chef server

Dependent cookbooks

firewall >= 0.0.0
selinux >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.1.0 failed this metric

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

Contributing File Metric
            

0.1.0 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.0 failed this metric

FC067: Ensure at least one platform supported in metadata: kube_cluster/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.1.0 passed this metric

Publish Metric
            

0.1.0 passed this metric

Supported Platforms Metric
            

0.1.0 failed this metric

kube_cluster should declare what platform(s) it supports.

Testing File Metric
            

0.1.0 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.0 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