Skip to content

Commit 1b555dc

Browse files
authored
Merge pull request #122 from arangodb/docs-improvements
Various docs improvements & fixes
2 parents 882be82 + 59068bf commit 1b555dc

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

docs/Manual/Deployment/Kubernetes/Storage.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ the storage to Pods that need them.
66

77
## Storage configuration
88

9-
In the cluster resource, one can specify the type of storage
9+
In the `ArangoDeployment` resource, one can specify the type of storage
1010
used by groups of servers using the `spec.<group>.storageClassName`
1111
setting.
1212

@@ -22,7 +22,11 @@ server.
2222
For optimal performance, ArangoDB should be configured with locally attached
2323
SSD storage.
2424

25-
To accomplish this, one must create `PersistentVolumes` for all servers that
25+
The easiest way to accomplish this is to deploy an
26+
[`ArangoLocalStorage` resource](./StorageResource.md).
27+
The ArangoDB Storage Operator will use it to provide `PersistentVolumes` for you.
28+
29+
The alternative is to create `PersistentVolumes` manually, for all servers that
2630
need persistent storage (single, agents & dbservers).
2731
E.g. for a `Cluster` with 3 agents and 5 dbservers, you must create 8 volumes.
2832

docs/Manual/Deployment/Kubernetes/Usage.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,30 @@
33
## Installation
44

55
The ArangoDB Kubernetes Operator needs to be installed in your Kubernetes
6-
cluster first. To do so, clone this repository and run:
6+
cluster first.
7+
8+
To do so, run (replace `<version>` with the version of the operator that you want to install):
79

810
```bash
9-
kubectl apply -f manifests/crd.yaml
10-
kubectl apply -f manifests/arango-deployment.yaml
11+
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/<version>/manifests/crd.yaml
12+
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/<version>/manifests/arango-deployment.yaml
1113
```
1214

1315
To use `ArangoLocalStorage`, also run:
1416

1517
```bash
16-
kubectl apply -f manifests/arango-storage.yaml
18+
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/<version>/manifests/arango-storage.yaml
1719
```
1820

21+
You can find the latest release of the ArangoDB Kubernetes Operator
22+
[in the kube-arangodb repository](https://github.com/arangodb/kube-arangodb/releases/latest).
23+
1924
## Cluster creation
2025

2126
Once the operator is running, you can create your ArangoDB cluster
2227
by creating a custom resource and deploying it.
2328

24-
For example:
29+
For example (all examples can be found [in the kube-arangodb repository](https://github.com/arangodb/kube-arangodb/tree/master/examples)):
2530

2631
```bash
2732
kubectl apply -f examples/simple-cluster.yaml
@@ -44,7 +49,7 @@ To remove the entire ArangoDB Kubernetes Operator, remove all
4449
clusters first and then remove the operator by running:
4550

4651
```bash
47-
kubectl delete -f manifests/arango-deployment.yaml
52+
kubectl delete deployment arango-deployment-operator
4853
# If `ArangoLocalStorage` is installed
49-
kubectl delete -f manifests/arango-storage.yaml
54+
kubectl delete deployment -n kube-system arango-storage-operator
5055
```

docs/Manual/Tutorials/Kubernetes/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Then run (replace `<version>` with the version of the operator that you want to
3939
```bash
4040
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/<version>/manifests/crd.yaml
4141
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/<version>/manifests/arango-deployment.yaml
42+
# Optional
43+
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/<version>/manifests/arango-storage.yaml
4244
```
4345

4446
The first command installs two `CustomResourceDefinitions` in your Kubernetes cluster:
@@ -49,6 +51,11 @@ The first command installs two `CustomResourceDefinitions` in your Kubernetes cl
4951
The second command installs a `Deployment` that runs the operator that controls
5052
`ArangoDeployment` resources.
5153

54+
The optional third command installs a `Deployment` that runs the operator that
55+
provides `PersistentVolumes` on local disks of the cluster nodes.
56+
Use this when running on bare-metal or if there is no provisioner for fast
57+
storage in your Kubernetes cluster.
58+
5259
## Deploying your first ArangoDB database
5360

5461
The first database we are going to deploy is a single server database.

0 commit comments

Comments
 (0)