For K8s deployers: Is there a way to specify an au...
# replication-troubleshooting
d
For K8s deployers: Is there a way to specify an automatic cleanup of pods upon completion?
j
Hi Dusty, I'm just starting to get mine up and running..... I thought that's what the
airbyte-pod-sweeper
deployment was for. Currently I only have 1 sync running as a test but I don't have pods hanging around for too long
d
Yea, I just realized that was the point of the pod sweeper, but it doesn’t look like it’s running at all.
Is there anything I can do to troubleshoot the pod-sweeper? It isn’t cleaning up completed pods ever, and the logs are empty.
a
@Dusty Shapiro are you using the latest chart with an older airbyte version? they aren't compatible for the pod sweeper. it's pretty easy to confirm - look at one of your sync jobs (describe the pod) - older airbyte versions use
worker-pod
as a label and newer use
job-pod
. The latest helm charts have the pod sweeper script sweep pods with the
job-pod
label.
The pod sweeper stores its script in a configmap, so as a quick workaround (if you are in fact impacted by a version incompatibility), you can edit the configmap to change the label, and restart the pod-sweeper
d
Let me take a gander. I’m on a bit of an older chart version since I had to fork it to add some external Secret support, so I can’t update as quickly as I’d like.
a
ok, could be reversed for you then (if you've updated the airbyte version) - script might be using the older label and your pods have the newer one
d
Airbyte version is 0.40.28 Chart version is 0.43.13
Let me get a pod description
Yep, the label is
airbyte=job-pod
It looks like the pod sweeper script in that configmap is selecting with the label
-l airbyte=job-pod
let me confirm this is the chart i have deployed though
Should I expect logged output in the pod sweeper?
a
it logs when removing pods, not when skipping pods to remove
d
Got it - it’s not doing anything so need to dig in a bit more here
Ah, I found it
The configmap that is deployed does specify
worker-pod
Will edit that bash script, good looking out
and there is some output. Thanks again @Adam Bloom
a
np! just went through this a few weeks ago, so it was still fresh 🙂
d
I’m curious, do you have a forked version of the chart or did you edit the configmap via kubectl?
a
official chart has
job-pod
now - I edited via kubectl as a quick workaround until the official chart update was released
d
👍 I just tried to bump to current but ran into this error. Perhaps I’ll try to find the latest tag that has
job-pod
and bump to that in the meantime
s
New helm charts are published, if anyone here is still running into issues please give them a try