Skip to content

Commit 77b4fff

Browse files
pengzhoumlPeng Zhou
andauthored
MLE-25053 update config readme and sample files (#112)
* MLE-25053: update the readme for Operator 1.1 * update fluent-bit to latest 4.1.1 * update sample config files * fix error in kustomization file * update readme for known issue regarding fluent-bit * remove unneeded files * update the docker-build script * update the fluent-bit version to 4.1.1 * add back hugespages2Mi: "24Gi" --------- Co-authored-by: Peng Zhou <peng.zhou@progress.com>
1 parent 4ffc6d5 commit 77b4fff

18 files changed

+56
-16018
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ OPERATOR_SDK_VERSION ?= v1.34.2
6868
# Image URL to use all building/pushing image targets
6969
# Image for dev: ml-marklogic-operator-dev.bed-artifactory.bedford.progress.com/marklogic-operator-kubernetes
7070
IMG ?= progressofficial/marklogic-operator-kubernetes:$(VERSION)
71-
# IMG ?= "testrepo/marklogic-operator-image-dev:$(VERSION)"
7271

7372

7473
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
@@ -206,7 +205,7 @@ run: manifests generate fmt vet ## Run a controller from your host.
206205
# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
207206
.PHONY: docker-build
208207
docker-build: ## Build docker image with the manager. to build for linux, add --platform="linux/amd64"
209-
$(CONTAINER_TOOL) buildx build -t ${IMG} .
208+
$(CONTAINER_TOOL) buildx build --platform="linux/amd64" -t ${IMG} .
210209

211210
.PHONY: docker-push
212211
docker-push: ## Push docker image with the manager.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ helm repo add marklogic-operator https://marklogic.github.io/marklogic-operator-
2727
helm repo update
2828
```
2929

30-
2. Install the Helm Chart for MarkLogic Operator:
30+
2. Install or upgrade the Helm Chart for MarkLogic Operator:
3131
```sh
32-
helm upgrade marklogic-operator marklogic-operator/marklogic-operator-kubernetes --version=1.0.0 --install --namespace marklogic-operator-system --create-namespace
32+
helm upgrade marklogic-operator marklogic-operator/marklogic-operator-kubernetes --version=1.1.0 --install --namespace marklogic-operator-system --create-namespace
3333
```
3434

3535
3. Make sure the Marklogic Operator pod is running:
@@ -94,6 +94,6 @@ kubectl delete namespace marklogic-operator-system
9494

9595
## Known Issues and Limitations
9696

97-
1. The latest released version of fluent/fluent-bit:3.2.5 has high and critical security vulnerabilities. If you decide to enable the log collection feature, choose and deploy the fluent-bit or an alternate image with no vulnerabilities as per your requirements.
97+
1. The latest released version of fluent/fluent-bit:4.1.1 has high security vulnerabilities. If you decide to enable the log collection feature, choose and deploy the fluent-bit or an alternate image with no vulnerabilities as per your requirements.
9898
2. Known Issues and Limitations for the MarkLogic Server Docker image can be viewed using the link: https://github.com/marklogic/marklogic-docker?tab=readme-ov-file#Known-Issues-and-Limitations.
9999
3. If you're updating the group name configuration, ensure that you delete the pod to apply the changes, as we are using the OnDelete upgrade strategy.

api/v1/common_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ type AdminAuth struct {
6161
type LogCollection struct {
6262
// +kubebuilder:default:=false
6363
Enabled bool `json:"enabled,omitempty"`
64-
// +kubebuilder:default:="fluent/fluent-bit:3.2.5"
64+
// +kubebuilder:default:="fluent/fluent-bit:4.1.1"
6565
Image string `json:"image,omitempty"`
6666
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
6767
// +kubebuilder:default:={"requests":{"cpu":"100m","memory":"200Mi"},"limits":{"cpu":"200m","memory":"500Mi"}}

api/v1/marklogiccluster_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ type MarklogicClusterSpec struct {
6666
EnableConverters bool `json:"enableConverters,omitempty"`
6767
// +kubebuilder:default:={enabled: false, mountPath: "/dev/hugepages"}
6868
HugePages *HugePages `json:"hugePages,omitempty"`
69-
// +kubebuilder:default:={enabled: false, image: "fluent/fluent-bit:3.2.5", resources: {requests: {cpu: "100m", memory: "200Mi"}, limits: {cpu: "200m", memory: "500Mi"}}, files: {errorLogs: true, accessLogs: true, requestLogs: true}, outputs: "stdout"}
69+
// +kubebuilder:default:={enabled: false, image: "fluent/fluent-bit:4.1.1", resources: {requests: {cpu: "100m", memory: "200Mi"}, limits: {cpu: "200m", memory: "500Mi"}}, files: {errorLogs: true, accessLogs: true, requestLogs: true}, outputs: "stdout"}
7070
LogCollection *LogCollection `json:"logCollection,omitempty"`
7171
HAProxy *HAProxy `json:"haproxy,omitempty"`
7272
Tls *Tls `json:"tls,omitempty"`

api/v1/marklogicgroup_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type MarklogicGroupSpec struct {
6464
LivenessProbe ContainerProbe `json:"livenessProbe,omitempty"`
6565
// +kubebuilder:default:={enabled: false, initialDelaySeconds: 10, timeoutSeconds: 5, periodSeconds: 30, successThreshold: 1, failureThreshold: 3}
6666
ReadinessProbe ContainerProbe `json:"readinessProbe,omitempty"`
67-
// +kubebuilder:default:={enabled: false, image: "fluent/fluent-bit:3.2.5", resources: {requests: {cpu: "100m", memory: "200Mi"}, limits: {cpu: "200m", memory: "500Mi"}}, files: {errorLogs: true, accessLogs: true, requestLogs: true}, outputs: "stdout"}
67+
// +kubebuilder:default:={enabled: false, image: "fluent/fluent-bit:4.1.1", resources: {requests: {cpu: "100m", memory: "200Mi"}, limits: {cpu: "200m", memory: "500Mi"}}, files: {errorLogs: true, accessLogs: true, requestLogs: true}, outputs: "stdout"}
6868
LogCollection *LogCollection `json:"logCollection,omitempty"`
6969
// +kubebuilder:default:={name: "Default", enableXdqpSsl: true}
7070
GroupConfig *GroupConfig `json:"groupConfig,omitempty"`

charts/marklogic-operator-kubernetes/templates/marklogiccluster-crd.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4703,7 +4703,7 @@ spec:
47034703
accessLogs: true
47044704
errorLogs: true
47054705
requestLogs: true
4706-
image: fluent/fluent-bit:3.2.5
4706+
image: fluent/fluent-bit:4.1.1
47074707
outputs: stdout
47084708
resources:
47094709
limits:
@@ -4736,7 +4736,7 @@ spec:
47364736
type: boolean
47374737
type: object
47384738
image:
4739-
default: fluent/fluent-bit:3.2.5
4739+
default: fluent/fluent-bit:4.1.1
47404740
type: string
47414741
imagePullSecrets:
47424742
items:
@@ -8285,7 +8285,7 @@ spec:
82858285
type: boolean
82868286
type: object
82878287
image:
8288-
default: fluent/fluent-bit:3.2.5
8288+
default: fluent/fluent-bit:4.1.1
82898289
type: string
82908290
imagePullSecrets:
82918291
items:

charts/marklogic-operator-kubernetes/templates/marklogicgroup-crd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3455,7 +3455,7 @@ spec:
34553455
accessLogs: true
34563456
errorLogs: true
34573457
requestLogs: true
3458-
image: fluent/fluent-bit:3.2.5
3458+
image: fluent/fluent-bit:4.1.1
34593459
outputs: stdout
34603460
resources:
34613461
limits:
@@ -3488,7 +3488,7 @@ spec:
34883488
type: boolean
34893489
type: object
34903490
image:
3491-
default: fluent/fluent-bit:3.2.5
3491+
default: fluent/fluent-bit:4.1.1
34923492
type: string
34933493
imagePullSecrets:
34943494
items:

0 commit comments

Comments
 (0)