mirror of
https://github.com/kerberos-io/documentation.git
synced 2026-11-27 23:40:24 +00:00
Merge branch 'master' into develop
This commit is contained in:
@@ -66,8 +66,8 @@ By executing following helm command, we will install Traefik and link it to a sp
|
||||
Add Helm repository and install traefik.
|
||||
|
||||
kubectl create namespace traefik
|
||||
helm repo add stable https://charts.helm.sh/stable
|
||||
helm install traefik -n traefik -f ./factory/yaml/traefik/values.yaml stable/traefik
|
||||
helm repo add traefik https://helm.traefik.io/traefik
|
||||
helm install traefik traefik/traefik -n traefik
|
||||
|
||||
After installation, you should have an IP attached to Traefik service, look for it by executing the `get service` command. You will see the ip address in the `EXTERNAL-IP` attribute.
|
||||
|
||||
|
||||
@@ -153,8 +153,8 @@ To access the Kerberos Enterprise web application, we will create a service in t
|
||||
|
||||
The idea is that Traefik, will have a dedicated IP address assigned from MetalLB, and will resolve the Ingress of our Kerberos Enterprise web app. Let's go ahead with installing Traefik.
|
||||
|
||||
helm repo add stable https://charts.helm.sh/stable
|
||||
helm install -n traefik traefik -f ./enterprise/yaml/traefik/values.yaml stable/traefik
|
||||
helm repo add traefik https://helm.traefik.io/traefik
|
||||
helm install traefik traefik/traefik -n traefik
|
||||
|
||||
### Ingress-Nginx (alternative for Traefik)
|
||||
|
||||
@@ -169,37 +169,17 @@ If you don't like `Traefik` but you prefer `Ingress Nginx`, that works as well.
|
||||
|
||||
The last step is to install the Kerberos Factory application. Kerberos Factory is responsible for installing and creating the kubernetes deployments inside your Kubernetes cluster.
|
||||
|
||||
Before we can move into the installation of MongoDB, we will need to create a Persistent Volume (PV). The reason for that is that we do not have a volume provisioning tool at the edge, which we do have with a cloud provider. For simplicity, we will use `local-storage`, and make sure the volume is assigned to a specific node (hostname). Please note that you could perfectly use your Ceph cluster as well.
|
||||
Before we can move into the installation of MongoDB, we will need to prepare some storage or persistent volume. To simplify this we can leverage the OpenEBS storage solution, which can automatically provision PV (Persistent volumes) for us.
|
||||
|
||||
Create a folder on the node (VM), where you want to persist the data of MongoDB.
|
||||
Let us start with installing the OpenEBS operator.
|
||||
|
||||
mkdir /home/mongodb/
|
||||
kubectl apply -f https://openebs.github.io/charts/openebs-operator.yaml
|
||||
|
||||
Once done open the `./factory/yaml/mongodb/volume.yaml` file and make sure to change capacity, local path (if changed), and the hostname attribute (VM/machine, on which the directory is made available).
|
||||
Once done it should start installing several resources in the `openebs` namespace. If all resources are created successfully we can launch the `helm install` for MongoDB.
|
||||
|
||||
spec:
|
||||
capacity:
|
||||
--> storage: 10Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Recycle
|
||||
storageClassName: local-storage
|
||||
local:
|
||||
--> path: /home/mongodb/
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
--> - hostname
|
||||
Have a look into the `./factory/yaml/mongodb/values.yaml` file, you will find plenty of configurations for the MongoDB helm chart. Important to note is [to set the storage class to `openebs-hostpath`](https://github.com/kerberos-io/factory/blob/master/yaml/mongodb/values-edge.yaml#L12), this will automatically create a PV on the host system.
|
||||
|
||||
Once completed you can go ahead with creating the PV.
|
||||
|
||||
kubectl create -n mongodb -f ./factory/yaml/mongodb/volume.yaml
|
||||
|
||||
Have a look into the `./factory/yaml/mongodb/values.yaml` file, you will find plenty of configurations for the MongoDB helm chart. To change the username and password of the MongoDB instance, go ahead and [find the attribute where](https://github.com/kerberos-io/factory/blob/master/yaml/mongodb/values.yaml#L75) you can change the root password.
|
||||
To change the username and password of the MongoDB instance, go ahead and [find the attribute where](https://github.com/kerberos-io/factory/blob/master/yaml/mongodb/values.yaml#L75) you can change the root password.
|
||||
|
||||
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||
helm install mongodb -n mongodb bitnami/mongodb --values ./enterprise/yaml/mongodb/values-edge.yaml
|
||||
|
||||
@@ -29,8 +29,18 @@ All recordings from your edge Kerberos Vault will be replicated to a Kerberos Va
|
||||
|
||||
Recordings are stored at the edge, and only a subset is forwarded to a Kerberos Vault in the cloud. You can specify the forwarding rules using custom code.
|
||||
|
||||
## Configuration
|
||||
|
||||
Go to the integrations page, and click (+ Add Integration). Select the Kerberos Vault option, and choose on-demand or continuous forwarding.
|
||||
|
||||
Define the account credentials of the remote Kerberos Vault, to which you are forwarding recordings. If not yet created make sure an account is set up with a valid storage provider.
|
||||
|
||||
{{< figure src="vault-forwarding.gif" alt="Two forwarding modes continuous and on demand." caption="Two forwarding modes continuous and on demand." class="stretch">}}
|
||||
|
||||
Once the integration is created, you still need to activate the integration for a specific account on the account page. Every recording that's now being uploaded through your account will be stored in the local storage provider, and depending on the use case will be forwarded to the remote storage provider.
|
||||
|
||||
{{< figure src="vault-activate-forward.gif" alt="Enable the integration for your account." caption="Enable the integration for your account." class="stretch">}}
|
||||
|
||||
## Examples
|
||||
|
||||
Two examples of on demand forwarding:
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.9 MiB |
@@ -56,7 +56,33 @@ Alternatives to cloud event integrations are self-hosted variants such as a Kafk
|
||||
|
||||
### Kafka
|
||||
|
||||
> Tutorial to be written.
|
||||
Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.
|
||||
|
||||
To integrate a Kafka broker with Kerberos vault you could install your existing Kafka installation, or on board a new Kafka broker inside your Kubernetes cluster. Before installing the Kafka broker, we will need to set up a storage class. As previously mentioned we will use OpenEBS for that, but you could use the storage class you prefer.
|
||||
|
||||
kubectl apply -f https://openebs.github.io/charts/openebs-operator.yaml
|
||||
|
||||
Once OpenEBS is installed and configured, go ahead with setting up the Kafka broker.
|
||||
|
||||
kubectl create namespace kafka
|
||||
helm install kafka bitnami/kafka -f https://raw.githubusercontent.com/kerberos-io/vault/master/yaml/kafka/kafka.values.yaml -n kafka
|
||||
|
||||
Once done you should see the relevant kafka pods and zookeeper being deployed
|
||||
|
||||
kubectl get po -n kafka
|
||||
|
||||
Now you are ready to configure the Kerberos Vault integration, by selecting the Kafka option. You should add the Kafka credentials and authentication mechanism.
|
||||
|
||||
{{< figure src="kafka.gif" alt="Configure, add and validate the Kafka integration." caption="Configure, add and validate the Kafka integration." class="stretch">}}
|
||||
|
||||
- Integration name: this a preferred name for the integration.
|
||||
- Broker: the url of the broker `kafka.kafka:9092`.
|
||||
- Group: the group to which messages are produced, this can be any value you want.
|
||||
- Topic: the topic to which a message is produced, if the topic doesn't exist, it will be created automatically.
|
||||
- Username: the username, `Yourusername`.
|
||||
- Password: the password, `Yourpassword`.
|
||||
- Mechanism: the kafka mechanism, `PLAIN`.
|
||||
- Security: the kafka security, `SASL_PLAINTEXT`.
|
||||
|
||||
## Kerberos integrations
|
||||
|
||||
@@ -64,8 +90,18 @@ Next to third party integrations such as Kafka or AWS SQS, it is possible to int
|
||||
|
||||
### Kerberos Vault
|
||||
|
||||
> Tutorial to be written.
|
||||
Kerberos Vaults can be chained and configured in forwarding mode. This configuration makes it possible to enable offline capabilities and keep the majority of your recordings at the edge. Only a subset of your recordings will be transferred from the edge to the cloud by requesting a forward from Kerberos Hub or building your own forwarding application code.
|
||||
|
||||
{{< figure src="vault-forwarding.gif" alt="Two forwarding modes continuous and on demand." caption="Two forwarding modes continuous and on demand." class="stretch">}}
|
||||
|
||||
To learn more about how to enable the Kerberos Vault integration, have [a look at the forwarding page]().
|
||||
|
||||
### Kerberos Hub
|
||||
|
||||
> Tutorial to be written.
|
||||
The Kerberos Hub integration allows you to send messages from Kerberos Vault and Kerberos Hub, through [the Kerberos Hub pipeline](/hub/pipeline). Messages are sent to the REST API of Kerberos Hub, and injected in the Kerberos Hub pipeline. Once message is injected in the internal message broker (Kafka), it will create all the relevant information and metadata in Kerberos Hub.
|
||||
|
||||
{{< figure src="vault-integration-hub.gif" alt="Kerberos Hub integrates with Kerberos Vault to visualise recordings and metadata." caption="Kerberos Hub integrates with Kerberos Vault to visualise recordings and metadata." class="stretch">}}
|
||||
|
||||
- Integration name: this a preferred name for the integration.
|
||||
- Kerberos Hub Url: the url to the API of Kerberos Hub, `https://api.your.hub.com`
|
||||
- Hub Key: this is the cloud key that is assigned to your user (owner accounts), by default this is `AKIAxxxxxxG5Q`.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.8 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.1 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
@@ -102,83 +102,62 @@ If you have not yet created a bucket a module window will pop up, enter a lowerc
|
||||
|
||||
### Minio
|
||||
|
||||
Minio is a recommended solution if you would like to persist your recordings at the edge. To set up Minio you have to configure a few Kubernetes resources. Inside the vault repository there is a Minio example, so let's clone that repository of not already done.
|
||||
Minio is a recommended solution if you would like to persist your recordings at the edge. To set up Minio you have to configure a few Kubernetes resources. To simplify the installation, we will go ahead with the Minio operator.
|
||||
|
||||
git clone https://github.com/kerberos-io/vault
|
||||
The Minio operator can be used to set up a production ready Minio cluster, with multiple nodes and drives. Using the concept of Minio tenants you can scale your Minio cluster easily.
|
||||
|
||||
Now we have the configurations available, let's start with the creation of a `local-storage` volume using `./vault/yaml/minio/volume.yaml` file. While opening the file, focus on following attributes. Please note that you do not need to use `local-storage`, if you would have some external storage already available.
|
||||
kubectl krew update
|
||||
kubectl krew install minio
|
||||
|
||||
spec:
|
||||
capacity:
|
||||
--> storage: 20Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Recycle
|
||||
storageClassName: hdd
|
||||
local:
|
||||
--> path: /home/minio
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
--> - hostname
|
||||
To install krew in your `kubectl` toolkit, following [the offical documentation](https://krew.sigs.k8s.io/docs/user-guide/setup/install/).
|
||||
|
||||
Adapt the storage capacity to the amount of storage you want to assign to Minio, change the local path to the directory where you want to persist your recordings. Make sure the hostname is the hostname of your node (where the directory is located). Once ready we should create the `local.path` directory on our host system, and create the volume.
|
||||
kubectl minio version
|
||||
kubectl minio init
|
||||
|
||||
mkdir /home/minio
|
||||
kubectl apply -f ./vault/yaml/minio/volume.yaml
|
||||
Run the following command to verify the status of the Operator:
|
||||
|
||||
Now we are ready with creating a new volume, we should create a persistent volume claim (pvc). Open the `./vault/yaml/minio/pvc.yaml` file and make sure the storage capacity is aligned with the configurations of the `volume.yaml`.
|
||||
|
||||
resources:
|
||||
# This is the request for storage. Should be available in the cluster.
|
||||
requests:
|
||||
--> storage: 20Gi
|
||||
kubectl get pods -n minio-operator
|
||||
|
||||
Once ready, create the PVC.
|
||||
Run the following command to create a local proxy to the MinIO Operator Console:
|
||||
|
||||
kubectl apply -f ./vault/yaml/minio/pvc.yaml
|
||||
kubectl minio proxy -n minio-operator
|
||||
|
||||
Now we have prepared the prerequisites, the volumes, we can look into the creation of a Minio instance. Open the `./vault/yaml/minio/deployment.yaml` file and scroll down until you see the Ingress resource. Make sure the Ingress hostname is aligned with your expectations, this will be the url to navigate to the Minio dashboard.
|
||||
{{< figure src="minio-operator-console.gif" alt="Open the MinIO Operator Console, where your tenants are managed." caption="Open the MinIO Operator Console, where your tenants are managed." class="stretch">}}
|
||||
|
||||
spec:
|
||||
rules:
|
||||
--> - host: minio.domain.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: minio
|
||||
servicePort: 9000
|
||||
Once you have the Console open, you can go ahead and create/configure a MinIO tenant. To simplify the creation of a tenant we will apply following manifests, this will create a tenant for us with the proper configuration; feel free to tweak this to your own needs (testing/production).
|
||||
|
||||
Consider [changing the access and secret](https://github.com/kerberos-io/vault/blob/master/yaml/minio/deployment.yaml#L40-L44) credentials.
|
||||
In the below manifests we have been using the OpenEBS storage class for local-storage. Please note that you can use whatever storage provider you like, make sure you change the relevant configuration files.
|
||||
|
||||
- name: MINIO_ACCESS_KEY
|
||||
value: "minio"
|
||||
- name: MINIO_SECRET_KEY
|
||||
value: "minio12345"
|
||||
kubectl apply -f https://openebs.github.io/charts/openebs-operator.yaml
|
||||
|
||||
Once the configuration is verified, apply the `deployment.yaml`. You might consider deploying the Minio instance in a separate namespace `-n minio`.
|
||||
Once you have selected your storage class, or installed OpenEBS, go ahead by applying the different manifests. Below configuration will deploy a single server, with 4 volumes of 10Gb. It will also create a default access key (`minio`) and secret key (`minio123`).
|
||||
|
||||
kubectl apply -f ./vault/yaml/minio/deployment.yaml
|
||||
git clone https://github.com/kerberos-io/vault && cd vault/yaml/minio
|
||||
kubectl apply -f minio.cred.yaml
|
||||
kubectl apply -f minio.config.tenant.yaml
|
||||
kubectl apply -f minio.tenant.yaml
|
||||
|
||||
You should now see Minio being installed, and be able to access it through your favourite web browser. Use the credentials you have defined in the `deployment.yaml` file.
|
||||
Once applied the MinIO tenant will be created, and you should see some pods being created in the `minio-tenant` namespace. Once everything is ready you should be able to access to MinIO Tenant console by forwarding the service.
|
||||
|
||||
{{< figure src="minio.png" alt="When installing at the edge, the preferred installation method is MinIO." caption="When installing at the edge, a preferred installation method is Minio." class="stretch">}}
|
||||
kubectl get svc -n minio-tenant
|
||||
kubectl port-forward svc/minio 9090:80 -n minio-tenant
|
||||
|
||||
While accessing the console, you can create a new Bucket.
|
||||
|
||||
{{< figure src="minio-create-bucket.gif" alt="Create a bucket in Minio." caption="Create a bucket in Minio." class="stretch">}}
|
||||
|
||||
Now you are ready to assign Minio as a storage provider to Kerberos Vault. Open the `Providers` page of Kerberos Vault, and select the Minio provider.
|
||||
|
||||
{{< figure src="minio-setup.gif" alt="Configuring the minio provider in Kerberos Vault." caption="Configuring the minio provider in Kerberos Vault." class="stretch">}}
|
||||
|
||||
- Provider name: this a preferred name for the provider.
|
||||
- Bucket name: the name of a bucket created in minio, make sure this matches.
|
||||
- Region: this is not relevant for an edge deployment and can be left blank.
|
||||
- Hostname: this is the internal DNS name if the Minio instance, for example: **minio:9000**.
|
||||
- Access Key: the `MINIO_ACCESS_KEY` you've defined in the `deployment.yaml` file
|
||||
- Secret Access Key: the `MINIO_SECRET_KEY` you've defined in the `deployment.yaml` file
|
||||
- Provider name: this a preferred name for the provider.
|
||||
- Bucket name: the name of a bucket created in minio, make sure this matches.
|
||||
- Region: this is not relevant for an edge deployment and can be left blank.
|
||||
- Hostname: this is the internal DNS name if the Minio instance, for example: **minio.minio-tenant**.
|
||||
- Access Key: the `access key` you've defined in the `minio.config.tenant.yaml` file
|
||||
- Secret Access Key: the `secret key` you've defined in the `minio.config.tenant.yaml` file
|
||||
|
||||
If you needed more information about the Minio configuration, please have a look at the official [MinIO operator Github page.](https://github.com/minio/operator).
|
||||
|
||||
### Ceph
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 303 KiB |
Reference in New Issue
Block a user