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/Local_Development_Tutorial.md
+10-15Lines changed: 10 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
# Local Development Tutorial: Getting Started with MarkLogic in Kubernetes
2
2
3
-
# Table of contents
4
3
*[Introduction](#Introduction)
5
4
*[Prerequisites](##Prerequisites)
6
5
*[Procedure](#Procedure)
@@ -21,13 +20,12 @@ This tutorial describes how to set up local Kubernetes development environment w
21
20
22
21
23
22
## Prerequisites
24
-
The following steps assume you are running this tutorial from a desktop environment. Mobile environments will likely experience problems and may not work.
25
-
-[Docker](https://docs.docker.com/engine/install/): Subscribe to Docker Hub and pulldown the latest image from: https://hub.docker.com/_/marklogic
23
+
The following steps assume you are running this tutorial from a desktop environment.
24
+
-[Docker](https://docs.docker.com/engine/install/): Pull the latest MarkLogic Server image from: https://hub.docker.com/r/marklogicdb/marklogic-db
26
25
```sh
27
-
# Something similar to this, with the latest version tag, which can be found on the dockerhub link above
-[KubeCTL](https://kubernetes.io/docs/tasks/tools/): Download and install this tool to assist with debugging in a Kubernetes environment.
28
+
-[Kubectl](https://kubernetes.io/docs/tasks/tools/): Download and install this tool to assist with debugging in a Kubernetes environment.
31
29
-[Helm](https://helm.sh/docs/intro/install/): Clone or download the chart repository: https://github.com/marklogic/marklogic-kubernetes
32
30
-[Minikube](https://k8s-docs.netlify.app/en/docs/tasks/tools/install-minikube/): Download the Minikube Kubernetes environment, which will host the MarkLogic Server applications.
33
31
- Browser: The latest version of a supported web browser. See the list here: [Web Browser](https://developer.marklogic.com/products/support-matrix/)
@@ -53,17 +51,14 @@ NAME STATUS ROLES AGE VERSION
53
51
minikube Ready control-plane,master 1d v1.23.3
54
52
```
55
53
56
-
To enable addons run the follow Minikube command for ingress:
57
-
`minikube addons enable ingress`
58
54
## Installing a Single MarkLogic Host to Minikube
59
-
- Push the image used for MarkLogic Server to the VM:
The image ID used in the example is `store/marklogicdb/marklogic-server:10.0-9-centos-1.0.0-ea4`, which may not be the latest image. To find the latest ID go to https://hub.docker.com/_/marklogic
62
-
- Add the helm repository
55
+
- Push the image used for MarkLogic Server to the Minikube:
Additionally create a `values.yaml` file for your installation, like the one found in the repository under `/charts`: https://marklogic.github.io/marklogic-kubernetes/. The `values.yaml` file controls configuration for MarkLogic Server running in kubernetes.
65
-
Run `helm install RELEASE_NAME marklogic/marklogic --version=1.0.0-ea1 -f values.yaml` where the `RELEASE_NAME` can be any name you want to use to identify this deployment.
66
-
For example: `helm install marklogic-local-dev-env marklogic/marklogic --version=1.0.0-ea1 -f values.yaml`
60
+
Run `helm install RELEASE_NAME marklogic/marklogic --version=1.0.0-ea1 --values values.yaml` where the `RELEASE_NAME` can be any name you want to use to identify this deployment.
61
+
For example: `helm install marklogic-local-dev-env marklogic/marklogic --version=1.0.0-ea1 --values values.yaml`
67
62
## Installing Multiple MarkLogic Hosts to Minikube
68
63
To create a MarkLogic cluster in Minikube, change the `replicaCount` in the `values.yaml` file to 3, or any other odd number to avoid the [split brain problem](https://help.marklogic.com/Knowledgebase/Article/View/119/0/start-up-quorum-and-forest-level-failover). Then follow the procedure outlined in the [Installing a Single MarkLogic Host to Minikube](##Installing-a-Single-MarkLogic-Host-to-Minikube) section.
69
64
@@ -112,7 +107,7 @@ Events:
112
107
Type Reason Age From Message
113
108
---- ------ ---- ---- -------
114
109
Normal Scheduled 13m default-scheduler Successfully assigned default/marklogic-0 to minikube
115
-
Normal Pulled 13m kubelet Container image "store/marklogicdb/marklogic-server:10.0-8.3-centos-1.0.0-ea3" already present on machine
110
+
Normal Pulled 13m kubelet Container image "marklogicdb/marklogic-db:latest" already present on machine
116
111
Normal Created 13m kubelet Created container marklogic
117
112
Normal Started 13m kubelet Started container marklogic
118
113
Warning Unhealthy 13m kubelet Startup probe failed: ls: cannot access /var/opt/MarkLogic/ready: No such file or directory
0 commit comments