<commit_before># Kubernetes Recipes (Cookbooks)

Chef recipes for installing Kubernetes on Ubuntu 14 with a single node (master - minion)

# Requirements

- Ubuntu 14
- Git
- User with root access (I'm using root here)
- /bin/bash as login shell
- ChefDK (Installing directions down below)

# Usage
`TODO` - Improve recipe to avoid using root

First, switch to root:
```
sudo su -
```

## ChefDK Installation
Download the ChefDK
```
wget https://packages.chef.io/files/stable/chefdk/1.2.22/ubuntu/14.04/chefdk_1.2.22-1_amd64.deb
```
Install
```
sudo dpkg -i chefdk_1.2.22-1_amd64.deb
```
Environment variables config for Chef
```
source <(chef shell-init bash) && \
echo 'source <(chef shell-init bash)' >> ~/.bash_profile
```

## Recipe installation
Clone repo and cd into folder
```
git clone http://rocarras.uchile.cl:9000/faromero/kubernetes-recipes.git && cd kubernetes-recipes
```

## Run recipe
Finally, run the following command to start with cluster installation
```
chef-client -z -o kubernetes_install<commit_msg>Changed URL in README<commit_after># Kubernetes Recipes (Cookbooks)

Chef recipes for installing Kubernetes on Ubuntu 14 with a single node (master - minion)

# Requirements

- Ubuntu 14
- Git
- User with root access (I'm using root here)
- /bin/bash as login shell
- ChefDK (Installing directions down below)

# Usage
`TODO` - Improve recipe to avoid using root

First, switch to root:
```
sudo su -
```

## ChefDK Installation
Download the ChefDK
```
wget https://packages.chef.io/files/stable/chefdk/1.2.22/ubuntu/14.04/chefdk_1.2.22-1_amd64.deb
```
Install
```
sudo dpkg -i chefdk_1.2.22-1_amd64.deb
```
Environment variables config for Chef
```
source <(chef shell-init bash) && \
echo 'source <(chef shell-init bash)' >> ~/.bash_profile
```

## Recipe installation
Clone repo and cd into folder
```
git clone https://github.com/fabianromerorcc/kubernetes-install-chef.git && cd kubernetes-install-chef
```

## Run recipe
Finally, run the following command to start with cluster installation
```
chef-client -z -o kubernetes_install
{'fraction_non_alphanumeric': 0.12324114507520621, 'fraction_numerical': 0.027171276079573023, 'mean_word_length': 4.246819338422392, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2903456', 'n_tokens_mistral': 780, 'n_tokens_neox': 669, 'n_words': 220}