1
- # MarkLogic Kubernetes Operator
1
+ # MarkLogic Kubernetes Operator (Private Repo)
2
2
3
3
## Introduction
4
4
@@ -14,30 +14,55 @@ pkg/ Contains golang packges to support reconciliation, utilities.
14
14
15
15
## Run or deploy Operator
16
16
17
+ ### Deploy Operator with Helm Chart in Private Repo
18
+ The EA release is currently in a private repository. To access and work with this private repository, please follow these steps:
19
+ 1 . First you need to create a Fine-grained tokens in Github with Read-only permission for marklogic/marklogic-kubernetes-operator repository
20
+ Once you have the token, put store it in a safe place and put it in the environmental variable:
21
+ ``` sh
22
+ GITHUB_TOKEN=< YOUR_GITHUB_TOKEN>
23
+ ```
24
+ 2 . Then add the private repo to Helm repository with the GITHUB_TOKEN:
25
+ ``` sh
26
+ helm repo add marklogic-private https://raw.githubusercontent.com/marklogic/marklogic-kubernetes-operator/gh-pages/ --username < YOUR_USERNAME> --password $GITHUB_TOKEN
27
+ helm repo update
28
+ ```
29
+ 3 . Install the Helm Chart for MarkLogic Operator:
30
+ ``` sh
31
+ helm upgrade marklogic-operator marklogic-private/marklogic-operator --version=1.0.0-ea1 --install --namespace marklogic-operator-system --create-namespace
32
+ ```
33
+ 4 . Check the Operator Pod and make sure it is in Running state:
34
+ ``` sh
35
+ kubectl get pods -n marklogic-operator-system
36
+ ```
37
+
17
38
### Run Operator locally
39
+ After checking out the source code, you can run the MarkLogic Operator locally by following these steps:
18
40
``` sh
19
41
make build # build the project
20
42
make install # instal CRD to Kubernetes cluster
21
43
make run # run the operator controller locally
22
44
```
23
45
24
46
### Deploy Operator locally
47
+ After checking out the source code, you can deploy the MarkLogic Operator locally by following these steps:
25
48
``` sh
26
49
make build # build the project
27
50
make docker-build # build the operator to docker image
28
51
make docker-push # push the operator to remote docker repo
29
52
make deploy # deploy the CRD and Operator into marklogic-operator-system namespace
30
53
```
31
54
32
- ### Deploy Operator with Helm Chart
33
- 1 . Add the Helm repository:
55
+ ### Build Helm Chart locally
56
+ If you don't have the GITHUB_TOKEN that is required to visit the Github Repo, you can also build the Helm Chart locally.
57
+ First build the Helm Chart
34
58
``` sh
35
- helm repo add marklogic-operator https://marklogic.github.io/marklogic-kubernetes-operator/
59
+ make build
60
+ make docker-build
61
+ make helm
36
62
```
37
-
38
- 2 . Install the Helm Chart for MarkLogic Operator:
63
+ Then deploy the Operator with Helm Chart
39
64
``` sh
40
- helm upgrade marklogic-operator marklogic-operator /marklogic-operator --install --namespace marklogic-operator-system --create-namespace
65
+ helm upgrade marklogic-operator ./charts /marklogic-operator --install --namespace marklogic-operator-system --create-namespace
41
66
```
42
67
43
68
## Install MarkLogic Cluster with MarkLogic Operator
0 commit comments