Skip to content

Commit

Permalink
docs: Update Readmes
Browse files Browse the repository at this point in the history
Signed-off-by: Anurag Rajawat <[email protected]>
  • Loading branch information
anurag-rajawat committed Jan 23, 2024
1 parent 1deae9b commit 2b452ba
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 64 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ best implementation method available given the deployment.

![](docs/nimbus.png)

* [Getting Started](docs/Getting-Started.md)
* [Quick Tutorials](docs/Quick-tutorials.md)
* [Getting Started](docs/getting-started.md)
* [Quick Tutorials](docs/quick-tutorials.md)

# Credits

Expand Down
10 changes: 5 additions & 5 deletions deployments/nimbus-kubearmor/Readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Install KubeArmor adapter

> [!NOTE]
> `nimbus-kubearmor` adapter depends on [KubeArmor](https://kubearmor.io) security engine for its functionalities.
> Follow [this](https://github.com/kubearmor/KubeArmor/blob/main/getting-started/deployment_guide.md) guide to install
> KubeArmor.
> [!Note]
> The `nimbus-kubearmor` adapter leverages the [KubeArmor](https://kubearmor.io) security engine for its functionality.
> To use this adapter, you'll need KubeArmor installed. Please
> follow [this](https://github.com/kubearmor/KubeArmor/blob/main/getting-started/deployment_guide.md) guide for
> installation.
Install `nimbus-kubearmor` adapter using Helm charts locally (for testing)

Expand Down
111 changes: 54 additions & 57 deletions docs/Getting-Started.md
Original file line number Diff line number Diff line change
@@ -1,81 +1,78 @@
# Getting Started

This guide walks users through the steps to easily install and run the Nimbus operator. Each step includes the commands needed and their descriptions to help users understand and proceed with each step.
This guide walks users through the steps to easily install and run the Nimbus operator. Each step includes the commands
needed and their descriptions to help users understand and proceed with each step.

## Preparation
# Prerequisites

Before you begin, you'll need to set up the following preferences :
Before you begin, set up the following:

- containerd + K8S + Cilium + Kubearmor (3-node/standalone)
- Environment for using KubeBuilder
- go version v1.19.0+
- docker version 17.03+.
- kubectl version v1.11.3+.
- Access to a Kubernetes v1.11.3+ cluster.
- make
- [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl) version 1.26 or later.
- A Kubernetes cluster running version 1.26 or later.

## Installation
### 1. Clone Nimbus source code:
```
$ git clone https://github.com/5GSEC/nimbus.git
```
# Nimbus

### 2. Install Kubearmor:
Install Kubearmor and related tools:<br>
There are various ways of installing Nimbus.

```
$ curl -sfL http://get.kubearmor.io/ | sudo sh -s -- -b /usr/local/bin && karmor install
```
## From source

Install the Discovery Engine:<br>
```
$ curl -o discovery-engine.yaml https://raw.githubusercontent.com/kubearmor/discovery-engine/dev/deployments/k8s/deployment.yaml
$ kubectl apply -f discovery-engine.yaml
```
Install [go](https://go.dev/doc/install) version 1.20 or later.

### 3. Install KubeBuilder
```
$ curl -L -o kubebuilder https://go.kubebuilder.io/dl/latest/$(go env GOOS)/$(go env GOARCH)
$ chmod +x kubebuilder
$ sudo mv ./kubebuilder /usr/local/bin/
$ kubebuilder version
Clone the repository:

```shell
git clone https://github.com/5GSEC/nimbus.git
cd nimbus
```

### 4. Install Kustomize

Install CRDs:

```shell
make install
```
$ curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
$ chmod +x kustomize
$ sudo mv ./kustomize /usr/local/bin/
$ kustomize version

Run the operator:

```shell
make run
```

## Running Nimbus
## Using helm chart

Commands to run Nimbus operators:
Follow [this](../deployments/nimbus/Readme.md) guide to install `nimbus` operator.

### 1. Apply API group resources
Apply API group resources

```
$ make generate
```
# Adapters

Just like Nimbus, there are various ways of installing Security engine adapters.

### 2. Install CRD
Install Custom Resource Definitions in a Kubernetes Cluster

```
$ make install
## nimbus-kubearmor

> [!Note]
> The `nimbus-kubearmor` adapter leverages the [KubeArmor](https://kubearmor.io) security engine for its functionality.
> To use this adapter, you'll need KubeArmor installed. Please
> follow [this](https://github.com/kubearmor/KubeArmor/blob/main/getting-started/deployment_guide.md) guide for
> installation.
### From source

Clone the repository:

```shell
git clone https://github.com/5GSEC/nimbus.git
```

📌 Steps 1 and 2 are required if you have a completely clean environment, as they allow the server to find the requested resources.
Go to nimbus-kubearmor directory:

### 3. Run Operators
Run the operator in your local environment
```shell
cd nimbus/pkg/adapter/nimbus-kubearmor
```
$ make build
$ make run

Run `nimbus-kubearmor` adapter:

```shell
make run
```
<br><br>
📌 After completing these steps, the Nimbus operator is successfully installed and running.

### Using helm chart

Follow [this](../deployments/nimbus-kubearmor/Readme.md) guide to install `nimbus-kubearmor` adapter.

0 comments on commit 2b452ba

Please sign in to comment.