Skip to content

Commit 7198958

Browse files
authored
DOC-788 | Platform: EE operator and license, set ml and platform flags (#753)
* Platform: EE operator and license, set ml and platform flags * Need to create namespace earlier for secret
1 parent e2ef235 commit 7198958

File tree

2 files changed

+72
-20
lines changed

2 files changed

+72
-20
lines changed

site/content/3.12/components/platform.md

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,19 @@ manage this deployment yourself.
115115
It includes helm charts, manifests, and blobs of the container image layers.
116116
You also receive a package configuration file from the ArangoDB team.
117117

118-
2. Install the certificate manager. You can check <https://github.com/cert-manager/cert-manager>
118+
2. Create a Kubernetes namespace for ArangoDB and a secret with your
119+
Enterprise Edition license key. Substitute `<license-string>` with the actual
120+
license string:
121+
122+
```sh
123+
kubectl create namespace arangodb
124+
125+
kubectl create secret generic arango-license-key \
126+
--namespace arangodb \
127+
--from-literal=token-v2="<license-string>"
128+
```
129+
130+
3. Install the certificate manager. You can check <https://github.com/cert-manager/cert-manager>
119131
for the available releases.
120132

121133
```sh
@@ -130,41 +142,55 @@ manage this deployment yourself.
130142
--set crds.enabled=true
131143
```
132144

133-
3. Install the ArangoDB operator for Kubernetes `kube-arangodb` with helm,
145+
4. Install the ArangoDB operator for Kubernetes `kube-arangodb` with helm,
134146
with options to enable webhooks, certificates, and the gateway feature.
135147

136148
```sh
137-
VERSION_OPERATOR='1.2.50' # Use a newer version if available
149+
VERSION_OPERATOR='1.3.0' # Use a newer version if available
138150

139151
helm upgrade --install operator \
140-
--namespace arangodb --create-namespace \
141-
"https://github.com/arangodb/kube-arangodb/releases/download/${VERSION_OPERATOR}/kube-arangodb-${VERSION_OPERATOR}.tgz" \
152+
--namespace arangodb \
153+
"https://github.com/arangodb/kube-arangodb/releases/download/${VERSION_OPERATOR}/kube-arangodb-enterprise-${VERSION_OPERATOR}.tgz" \
142154
--set "webhooks.enabled=true" \
143155
--set "certificate.enabled=true" \
144156
--set "operator.args[0]=--deployment.feature.gateway=true" \
157+
--set "operator.features.platform=true" \
158+
--set "operator.features.ml=true" \
145159
--set "operator.architectures={amd64}" # or {arm64} for ARM-based CPUs
146160
```
147161

148-
4. Create an `ArangoDeployment` specification for the ArangoDB Core. See the
162+
5. Create an `ArangoDeployment` specification for the ArangoDB Core. See the
149163
[ArangoDeployment Custom Resource Overview](https://arangodb.github.io/kube-arangodb/docs/deployment-resource-reference.html)
150164
and the linked reference.
151165

152166
You need to enable the gateway feature by setting `spec.gateway.enabled` and
153-
`spec.gateway.dynamic` to `true` in the specification:
167+
`spec.gateway.dynamic` to `true` in the specification. You also need to set
168+
`spec.license` to the secret created earlier. Example for an ArangoDB cluster
169+
deployment using version 3.12.5 with three DB-Servers and two Coordinators:
154170

155171
```yaml
156172
apiVersion: "database.arangodb.com/v1"
157173
kind: "ArangoDeployment"
158174
metadata:
159175
name: "platform-example"
160176
spec:
177+
mode: Cluster
178+
image: "arangodb/enterprise:3.12.5"
161179
gateway:
162180
enabled: true
163181
dynamic: true
182+
gateways:
183+
count: 1
184+
dbservers:
185+
count: 3
186+
coordinators:
187+
count: 2
188+
license:
189+
secretName: arango-license-key
164190
# ...
165191
```
166192

167-
5. Download the ArangoDB Platform CLI tool `arangodb_operator_platform` from
193+
6. Download the ArangoDB Platform CLI tool `arangodb_operator_platform` from
168194
<https://github.com/arangodb/kube-arangodb/releases>.
169195
It is available for Linux and macOS, for the x86-64 as well as 64-bit ARM
170196
architecture (e.g. `arangodb_operator_platform_linux_amd64`).
@@ -176,7 +202,7 @@ manage this deployment yourself.
176202
The Platform CLI tool simplifies the further setup and later management of
177203
the Platform's Kubernetes services.
178204

179-
6. Import the zip package of the ArangoDB Platform into the container registry.
205+
7. Import the zip package of the ArangoDB Platform into the container registry.
180206
Replace `platform.zip` with the file path of the offline installation package.
181207
Replace `gcr.io/my-reg` with the address of your registry.
182208

@@ -188,7 +214,7 @@ manage this deployment yourself.
188214
platform.imported.yaml
189215
```
190216

191-
7. Install the package using the package configuration you received from the
217+
8. Install the package using the package configuration you received from the
192218
ArangoDB team (`platform.yaml`) and the configuration generated by the
193219
previous command (`platform.imported.yaml`). These configurations are merged,
194220
allowing for targeted upgrades and user-defined overrides.

site/content/3.13/components/platform.md

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,19 @@ manage this deployment yourself.
115115
It includes helm charts, manifests, and blobs of the container image layers.
116116
You also receive a package configuration file from the ArangoDB team.
117117

118-
2. Install the certificate manager. You can check <https://github.com/cert-manager/cert-manager>
118+
2. Create a Kubernetes namespace for ArangoDB and a secret with your
119+
Enterprise Edition license key. Substitute `<license-string>` with the actual
120+
license string:
121+
122+
```sh
123+
kubectl create namespace arangodb
124+
125+
kubectl create secret generic arango-license-key \
126+
--namespace arangodb \
127+
--from-literal=token-v2="<license-string>"
128+
```
129+
130+
3. Install the certificate manager. You can check <https://github.com/cert-manager/cert-manager>
119131
for the available releases.
120132

121133
```sh
@@ -130,41 +142,55 @@ manage this deployment yourself.
130142
--set crds.enabled=true
131143
```
132144

133-
3. Install the ArangoDB operator for Kubernetes `kube-arangodb` with helm,
145+
4. Install the ArangoDB operator for Kubernetes `kube-arangodb` with helm,
134146
with options to enable webhooks, certificates, and the gateway feature.
135147

136148
```sh
137-
VERSION_OPERATOR='1.2.50' # Use a newer version if available
149+
VERSION_OPERATOR='1.3.0' # Use a newer version if available
138150

139151
helm upgrade --install operator \
140-
--namespace arangodb --create-namespace \
141-
"https://github.com/arangodb/kube-arangodb/releases/download/${VERSION_OPERATOR}/kube-arangodb-${VERSION_OPERATOR}.tgz" \
152+
--namespace arangodb \
153+
"https://github.com/arangodb/kube-arangodb/releases/download/${VERSION_OPERATOR}/kube-arangodb-enterprise-${VERSION_OPERATOR}.tgz" \
142154
--set "webhooks.enabled=true" \
143155
--set "certificate.enabled=true" \
144156
--set "operator.args[0]=--deployment.feature.gateway=true" \
157+
--set "operator.features.platform=true" \
158+
--set "operator.features.ml=true" \
145159
--set "operator.architectures={amd64}" # or {arm64} for ARM-based CPUs
146160
```
147161

148-
4. Create an `ArangoDeployment` specification for the ArangoDB Core. See the
162+
5. Create an `ArangoDeployment` specification for the ArangoDB Core. See the
149163
[ArangoDeployment Custom Resource Overview](https://arangodb.github.io/kube-arangodb/docs/deployment-resource-reference.html)
150164
and the linked reference.
151165

152166
You need to enable the gateway feature by setting `spec.gateway.enabled` and
153-
`spec.gateway.dynamic` to `true` in the specification:
167+
`spec.gateway.dynamic` to `true` in the specification. You also need to set
168+
`spec.license` to the secret created earlier. Example for an ArangoDB cluster
169+
deployment using version 3.12.5 with three DB-Servers and two Coordinators:
154170

155171
```yaml
156172
apiVersion: "database.arangodb.com/v1"
157173
kind: "ArangoDeployment"
158174
metadata:
159175
name: "platform-example"
160176
spec:
177+
mode: Cluster
178+
image: "arangodb/enterprise:3.12.5"
161179
gateway:
162180
enabled: true
163181
dynamic: true
182+
gateways:
183+
count: 1
184+
dbservers:
185+
count: 3
186+
coordinators:
187+
count: 2
188+
license:
189+
secretName: arango-license-key
164190
# ...
165191
```
166192

167-
5. Download the ArangoDB Platform CLI tool `arangodb_operator_platform` from
193+
6. Download the ArangoDB Platform CLI tool `arangodb_operator_platform` from
168194
<https://github.com/arangodb/kube-arangodb/releases>.
169195
It is available for Linux and macOS, for the x86-64 as well as 64-bit ARM
170196
architecture (e.g. `arangodb_operator_platform_linux_amd64`).
@@ -176,7 +202,7 @@ manage this deployment yourself.
176202
The Platform CLI tool simplifies the further setup and later management of
177203
the Platform's Kubernetes services.
178204

179-
6. Import the zip package of the ArangoDB Platform into the container registry.
205+
7. Import the zip package of the ArangoDB Platform into the container registry.
180206
Replace `platform.zip` with the file path of the offline installation package.
181207
Replace `gcr.io/my-reg` with the address of your registry.
182208

@@ -188,7 +214,7 @@ manage this deployment yourself.
188214
platform.imported.yaml
189215
```
190216

191-
7. Install the package using the package configuration you received from the
217+
8. Install the package using the package configuration you received from the
192218
ArangoDB team (`platform.yaml`) and the configuration generated by the
193219
previous command (`platform.imported.yaml`). These configurations are merged,
194220
allowing for targeted upgrades and user-defined overrides.

0 commit comments

Comments
 (0)