Skip to content

Commit

Permalink
fix: zookeeper snapshot log mount error (#1427)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubeJocker authored Jan 20, 2025
1 parent 2b5ae1c commit 5236030
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addons-cluster/zookeeper/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
{{- if .Values.storageClassName }}
storageClassName: {{ .Values.storageClassName | quote }}
{{- end }}
- name: log
- name: snapshot-log
spec:
{{- if .Values.storageClassName }}
storageClassName: {{ .Values.storageClassName | quote }}
Expand Down
2 changes: 1 addition & 1 deletion addons/zookeeper/config/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ zookeeper.log.dir=/opt/bitnami/zookeeper/logs
zookeeper.log.file=zookeeper.log
zookeeper.log.threshold=INFO
zookeeper.log.maxfilesize=256MB
zookeeper.log.maxbackupindex=20
zookeeper.log.maxbackupindex=4

zookeeper.tracelog.dir=/opt/bitnami/zookeeper/logs
zookeeper.tracelog.file=zookeeper_trace.log
Expand Down
6 changes: 3 additions & 3 deletions addons/zookeeper/config/zookeeper-config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ maxClientCnxns=500
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
autopurge.snapRetainCount=5
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
autopurge.purgeInterval=12

## Metrics Providers
#
Expand All @@ -39,7 +39,7 @@ maxClientCnxns=500
{{- end }}

# whitelist
4lw.commands.whitelist=srvr, mntr, ruok, conf, stat
4lw.commands.whitelist=srvr, mntr, ruok, conf, stat, sync

# cluster server list
{{- printf "\n" }}
Expand Down
1 change: 1 addition & 0 deletions addons/zookeeper/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Common annotations
*/}}
{{- define "zookeeper.annotations" -}}
helm.sh/resource-policy: keep
apps.kubeblocks.io/skip-immutable-check: "true"
{{ include "zookeeper.apiVersion" . }}
{{- end }}

Expand Down
2 changes: 1 addition & 1 deletion addons/zookeeper/templates/cmpd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ spec:
/kubeblocks/scripts/roleprobe.sh
runtime:
volumes:
- name: snapshot-log
- name: log
emptyDir: {}
securityContext:
fsGroup: 0
Expand Down

0 comments on commit 5236030

Please sign in to comment.