Skip to content

Commit

Permalink
fix wait-canal-admin init容器失败 导致会反复重启的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zengzhengrong committed Feb 4, 2023
1 parent 2fec476 commit 62624bb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions canal/templates/canal-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ spec:
terminationGracePeriodSeconds: 10
initContainers:
- name: wait-canal-admin
image: zengzhengrong889/box:1.0
command:
- sh
- -c
- sleep 15 ;until curl -s -o /dev/null {{ $adminService }}; do echo waiting for canal-admin; sleep 2; done; echo done
image: zengzhengrong889/zurl:latest
args:
- "--url"
- "http://{{ $adminService }}/api/v1/login"
- "--retry"
- "20"
- "--debug"
- "true"
containers:
- name: {{ $name }}
image: {{ .Values.canalServer.image }}
Expand Down

0 comments on commit 62624bb

Please sign in to comment.