mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
54 lines
1.2 KiB
Markdown
54 lines
1.2 KiB
Markdown
---
|
|
layout: page
|
|
parent: Custom resources overview
|
|
title: ArangoDeployment
|
|
---
|
|
|
|
# ArangoDeployment Custom Resource Overview
|
|
|
|
[Full CustomResourceDefinition reference ->](./api/ArangoDeployment.V1.md)
|
|
|
|
The ArangoDB Deployment Operator creates and maintains ArangoDB deployments
|
|
in a Kubernetes cluster, given a deployment specification.
|
|
This deployment specification is a `CustomResource` following
|
|
a `CustomResourceDefinition` created by the operator.
|
|
|
|
Example minimal deployment definition of an ArangoDB database cluster:
|
|
|
|
```yaml
|
|
apiVersion: "database.arangodb.com/v1"
|
|
kind: "ArangoDeployment"
|
|
metadata:
|
|
name: "example-arangodb-cluster"
|
|
spec:
|
|
mode: Cluster
|
|
```
|
|
|
|
Example more elaborate deployment definition:
|
|
|
|
```yaml
|
|
apiVersion: "database.arangodb.com/v1"
|
|
kind: "ArangoDeployment"
|
|
metadata:
|
|
name: "example-arangodb-cluster"
|
|
spec:
|
|
mode: Cluster
|
|
environment: Production
|
|
agents:
|
|
count: 3
|
|
args:
|
|
- --log.level=debug
|
|
resources:
|
|
requests:
|
|
storage: 8Gi
|
|
storageClassName: ssd
|
|
dbservers:
|
|
count: 5
|
|
resources:
|
|
requests:
|
|
storage: 80Gi
|
|
storageClassName: ssd
|
|
coordinators:
|
|
count: 3
|
|
image: "arangodb/arangodb:3.9.3"
|
|
```
|