<commit_before># Using OpenEBS with Kubernetes on local machine

This tutorial, provides detailed instructions on how to setup and use OpenEBS on local machine.
Follow the steps given below:

## Step 1: Install vagrant box

To run the kubernetes cluster on local machine you need Vagrant box. If you do not have vagrant box then follow steps given [here.](https://github.com/openebs/openebs/tree/master/k8s/lib/vagrant/test/k8s/1.6#installing-kubernetes-16-and-openebs-clusters-on-ubuntu-1604)

## Step 2: Checkout OpenEBS repository

```
$ git clone https://github.com/openebs/openebs.git
```

## Step 3: Bring k8s cluster up

```
openebs@openebs:~$ cd openebs/k8s/lib/vagrant/test/k8s/1.6
openebs@openebs:~/openebs/k8s/lib/vagrant/test/k8s/1.6$ vagrant up
```

It will bring up one kubemaster and two kubeminions

## Step 4: ssh to kubemater

```
openebs@openebs:~/openebs/k8s/lib/vagrant/test/k8s/1.6$ vagrant ssh kubemaster-01

```

## Step 5: Run OpenEBS operator

Download the latest OpenEBS Operator Files inside kubemaster-01.
```
ubuntu@kubemaster-01:~$ git clone https://github.com/openebs/openebs
ubuntu@kubemaster-01:~$ cd openebs/k8s
```

Run OpenEBS Operator:<commit_msg>Download only Vagrantfile instead of cloning repo<commit_after># Using OpenEBS with Kubernetes on local machine

This tutorial, provides detailed instructions on how to setup and use OpenEBS on local machine.
Follow the steps given below:

## Step 1: Install vagrant box

To run the kubernetes cluster on local machine you need Vagrant box. If you do not have vagrant box then follow steps given [here.](https://github.com/openebs/openebs/tree/master/k8s/lib/vagrant/test/k8s/1.6#installing-kubernetes-16-and-openebs-clusters-on-ubuntu-1604)

## Step 2. Download OpenEBS Vagrantfile

```
$ wget https://raw.githubusercontent.com/openebs/openebs/master/k8s/lib/vagrant/test/k8s/1.6/Vagrantfile
```

## Step 3: Bring k8s cluster up

```
openebs@openebs:~$ cd openebs/k8s/lib/vagrant/test/k8s/1.6
openebs@openebs:~/openebs/k8s/lib/vagrant/test/k8s/1.6$ vagrant up
```

It will bring up one kubemaster and two kubeminions

## Step 4: ssh to kubemaster

```
openebs@openebs:~/openebs/k8s/lib/vagrant/test/k8s/1.6$ vagrant ssh kubemaster-01

```

## Step 5: Run OpenEBS operator

Download the latest OpenEBS Operator Files inside kubemaster-01.
```
ubuntu@kubemaster-01:~$ git clone https://github.com/openebs/openebs
ubuntu@kubemaster-01:~$ cd openebs/k8s
```

Run OpenEBS Operator:
{'fraction_non_alphanumeric': 0.1173842404549147, 'fraction_numerical': 0.03168155970755483, 'mean_word_length': 4.64908256880734, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3431035', 'n_tokens_mistral': 990, 'n_tokens_neox': 922, 'n_words': 240}