Skip to content

Commit 1a707c2

Browse files
chengyu-lliuchengyu
andauthored
fix: support removing pika instance from codis dashboard before pod stop (OpenAtomFoundation#2475)
Co-authored-by: liuchengyu <liuchengyu@360.cn>
1 parent 3b0731e commit 1a707c2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tools/kubeblocks_helm/pika/templates/clusterdefinition.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ spec:
7070
args:
7171
- "-c"
7272
- "/script/admin.sh --register-server;tail -f /dev/null"
73+
lifecycle:
74+
preStop:
75+
exec:
76+
command:
77+
- "/bin/bash"
78+
- "-c"
79+
- "/script/admin.sh --remove-server"
7380
- name: etcd
7481
workloadType: Stateful
7582
characterType: etcd

0 commit comments

Comments
 (0)