You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deploy-and-configure/installation/scenario-k8s-deployment/index.md
+99-72Lines changed: 99 additions & 72 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,56 +1,65 @@
1
1
---
2
2
icon: simple/kubernetes
3
3
---
4
-
# Kubernetes deployment with Helm
4
+
# Scenario: Kubernetes Deployment
5
5
6
6
## Introduction
7
7
8
-
This page describes the basic principles of installing Corporate Memory in a Kubernetes cluster with `helm` and `kubectl`.
9
-
It will not explain the basic principles of Kubernetes or help in installing the tools.
10
-
In the next section, you will find useful links for installing the required tools.
8
+
This page describes the basic principles of installing Corporate Memory in a
9
+
Kubernetes cluster with `helm` and `kubectl`.
10
+
It will not explain the basic principles of Kubernetes or help in installing
11
+
the required tools.
11
12
12
-
The code examples in this section assume that you have a POSIX-compliant shell (Linux, macOS, or WSL for Windows), a working `KUBECONFIG`, and a fully provisioned cluster.
13
+
The code examples in this section assume that you have a POSIX-compliant shell
14
+
(Linux, macOS, or WSL for Windows), a working `KUBECONFIG`, and a fully
15
+
provisioned cluster.
13
16
14
17
## Requirements
15
18
16
-
- Access credentials to eccenca Artifactory and eccenca Docker Registry → [contact us to get yours](https://eccenca.com/en/contact)
17
-
- A license for GraphDB https://www.ontotext.com/products/graphdb/
18
-
- Kubectl from https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
19
-
- Helm from https://helm.sh/docs/intro/install/
20
-
- If deploying on K3D, download a static binary from https://github.com/k3d-io/k3d/releases (or use the script at https://k3d.io/ to do the same).
21
-
19
+
- Access credentials for the eccenca infrastructre (e.g. Docker Registry) → [contact us to get yours](https://eccenca.com/en/contact)
20
+
- A license for [GraphDB](https://www.ontotext.com/products/graphdb/)
Although this document lists value files for the three charts, we suggest always looking at the default `values.yaml` file from the archive or repository. The examples shown here are very basic and should not represent a production environment. The `CHANGELOG.md` and `README.md` files in the archives or repositories can also give some insights.
31
+
Although this document lists value files for the three charts, we suggest always
32
+
looking at the default `values.yaml` file from the archive or repository.
33
+
The examples shown here are very basic and should not represent a production
34
+
environment. The `CHANGELOG.md` and `README.md` files in the archives or
35
+
repositories can also give some insights.
30
36
31
-
We assume that namespaces are already created. You can either deploy all three components into one namespace or into separate ones.
37
+
We assume that the k8s namespaces are already created.
38
+
You can either deploy all three components into one namespace or into separate ones.
32
39
33
-
```console
40
+
```console
34
41
kubectl create namespace graphdb
35
42
kubectl create namespace keycloak
36
43
kubectl create namespace cmem
37
44
```
38
45
39
-
## Installation GraphDB
46
+
## GraphDB Installation
40
47
41
48
To install GraphDB, we will use the Ontotext Helm chart.
42
49
You can get the source code from [github](https://github.com/Ontotext-AD/graphdb-helm/tree/main).
43
-
Also always have a look at GraphDBs [documentation page](https://graphdb.ontotext.com/documentation/).
50
+
Additionally have a look at GraphDBs [documentation page](https://graphdb.ontotext.com/documentation/).
44
51
45
-
Be aware, that with Version 11 of GraphDB you are required to deploy a license file, even in the Free edition.
46
-
You can [aquire one by filling a form.](https://www.ontotext.com/products/graphdb/). See also documentation [here](https://graphdb.ontotext.com/documentation/11.1/licensing.html).
52
+
Be aware, that with Version 11 of GraphDB you are required to deploy a license
53
+
file, even in the Free edition.
54
+
You can aquire one by [filling a form](https://www.ontotext.com/products/graphdb/).
55
+
See also the [licensing documentation](https://graphdb.ontotext.com/documentation/11.1/licensing.html).
47
56
48
57
### 1. Obtain the chart
49
58
50
-
You can download their chart from [github](https://github.com/Ontotext-AD/graphdb-helm/releases) or add their repository
51
-
to your environment with Helm:
59
+
You can download the GraphDB chart from [github](https://github.com/Ontotext-AD/graphdb-helm/releases)
60
+
or add their repository to your environment with `helm`:
Create a file named `keycloak-values.yaml` to configure your Keycloak deployment. At a minimum, you should configure the initial admin credentials and the ingress settings.
162
-
You can also [download the minimum file here:](files/keycloak-values.yaml) (`keycloak-values.yaml`).
177
+
Create a file named `keycloak-values.yaml` to configure your Keycloak deployment.
178
+
At a minimum, you should configure the initial admin credentials and the
179
+
ingress settings.
180
+
You can also [download the minimum value file](files/keycloak-values.yaml) (`keycloak-values.yaml`).
163
181
164
-
```yaml
182
+
```yaml
165
183
---
166
184
postgres:
167
185
internal: true
168
186
provisioning:
169
187
enabled: true
170
-
# If true, this will drop the public schema and re-provision the database on every start.
188
+
# If true, this will drop the public schema and
189
+
# re-provision the database on every start.
171
190
force: true
172
191
173
192
ingress:
@@ -196,15 +215,16 @@ Please see the `README.md` file in the chart repository for explanations.
196
215
Use `helm` to deploy the chart into the `keycloak` namespace.
By default, Corporate Memory is subject to the eccenca free Personal, Evaluation and Development License Agreement (PEDAL), a license intended for non-commercial usage.
277
+
By default, Corporate Memory is subject to the eccenca free Personal,
278
+
Evaluation and Development License Agreement (PEDAL),
279
+
a license intended for non-commercial usage.
255
280
256
281
If you have a dedicated license file, create a secret with a `license.asc` data entry:
257
282
258
-
```console
283
+
```console
259
284
kubectl create secret generic cmem-license \
260
285
--from-file license.asc
261
286
--namespace cmem
262
287
```
263
288
264
289
Then, add the secret name to your `values.yaml` file for the key `global.license`.
265
290
266
-
For more background on license, see also: https://documentation.eccenca.com/latest/deploy-and-configure/configuration/dataplatform/application-full/
267
-
268
-
To configure your Corporate Memory deployment create a file named `cmem-values.yaml`.
291
+
To configure your Corporate Memory deployment, create a file named `cmem-values.yaml`.
269
292
At a minimum, you should configure the
293
+
270
294
- `hostname`, under which the deployment is reachable later
271
295
- `cmemClientSecret`, if you use the postgres provisioning dump the default is fine
272
-
- `keycloakBaseUrl`and `keycloakIssuerUrl`, where keycloak and the realm can be found
296
+
- `keycloakBaseUrl`/ `keycloakIssuerUrl`, where keycloak and the realm can be found
273
297
- `explore.store.graphdb`-values as database connection
274
-
- `ingress`-values like host and tls.secretName, if you use certmanager.
298
+
- `ingress`-values like `host` and `tls.secretName`, if you use `certmanager`.
275
299
276
-
You can also [download the minimum file here:](files/cmem-values.yaml) (`cmem-values.yaml`).
300
+
You can also [download the minimum value file](files/cmem-values.yaml) (`cmem-values.yaml`).
277
301
278
302
Edit `cmem-values.yaml` and adjust the configuration to your needs.
279
303
280
-
```yaml
304
+
```yaml
281
305
ingress:
282
306
enabled: true
283
307
className: nginx
@@ -324,21 +348,24 @@ explore:
324
348
325
349
### 3. Install the Corporate Memory chart
326
350
327
-
To pull the Corporate Memory images, you need to provide credentials to your Docker registry.
351
+
To pull the Corporate Memory images, you need to provide credentials for the eccenca
0 commit comments