Closed metacoma closed 3 months ago
The root cause of this bug is described here: https://github.com/argoproj/argo-cd/issues/13026#issuecomment-1489800913
Here is a steps to eliminate defunct processes in kcl-cmp argo plugin:
tiny
binary to kcl-cmp image
https://github.com/kcl-lang/kcl/pull/1264kcllang/kcllang-cmp-plugin
(for example) image after each KCL releaseAs a result, there are no defunct processes after several argocd app sync
calls.
$ kubectl -n argocd exec -it `kubectl -n argocd get pod -l app.kubernetes.io/component=repo-server -o name` -c my-plugin -- ps auxw
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
999 1 0.0 0.0 2780 1152 ? Ss 00:30 0:00 /tini /var/run/argocd/argocd-cmp-server -- --loglevel=debug
999 6 0.0 0.5 5540792 83536 ? Sl 00:30 0:01 /var/run/argocd/argocd-cmp-server --loglevel=debug
999 76 0.0 0.0 4628 3584 pts/0 Ss+ 00:33 0:00 /bin/bash
999 360 0.0 0.0 7064 2944 pts/1 Rs+ 01:17 0:00 ps auxw
Bug Report
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
No
<defunct>
processes3. What did you see instead (Required)
4. What is your KCL components version? (Required)
0.8.7-linux-amd64