Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions addons/oceanbase-ce/templates/componentdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
serviceKind: oceanbase-ce
description: {{ .Chart.Description }}
updateStrategy: BestEffortParallel
podManagementPolicy: Parallel
{{- include "oceanbase-ce.spec.vars" . | nindent 2 }}
{{- include "oceanbase-ce.spec.configs" . | nindent 2 }}
exporter:
Expand Down Expand Up @@ -47,6 +48,25 @@ spec:
ports:
- http
- pprof
available:
withProbe:
all:
stdout:
equalTo: available
lifecycleActions:
availableProbe:
exec:
command:
- bash
- -c
- |
ret=$(mysql -h 127.0 -uroot -p$OB_ROOT_PASSWD -P$OB_SERVICE_PORT -e 'show databases;')
if [ $? -eq 0 ];then
echo -n "available"
else
echo -n 'notavailable'
fi
initialDelaySeconds: 10
runtime:
containers:
- name: observer-container
Expand Down
1 change: 1 addition & 0 deletions addons/oceanbase-ce/templates/componentversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ spec:
images:
observer-container: {{ include "oceanbase-ce.observer.repository" . }}:4.3.0.1-100000242024032211
metrics: {{ include "oceanbase-ce.metrics.repository" . }}:4.2.1-100000092023101717
availableProbe: {{ include "oceanbase-ce.observer.repository" . }}:4.3.0.1-100000242024032211
Loading