# Does the buildkite/agent-stack-k8s work with Buildkite Clusters feature?

**URL:** https://forum.buildkite.community/t/does-the-buildkite-agent-stack-k8s-work-with-buildkite-clusters-feature/2758
**Category:** General
**Created:** [March 28, 2023, 10:38pm UTC](https://forum.buildkite.community/t/does-the-buildkite-agent-stack-k8s-work-with-buildkite-clusters-feature/2758 "2023-03-28T22:38:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![wallyqs](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/wallyqs/32/1218_2.png) [@wallyqs](https://forum.buildkite.community/u/wallyqs)
#### Post date: [March 28, 2023, 10:38pm UTC](https://forum.buildkite.community/t/does-the-buildkite-agent-stack-k8s-work-with-buildkite-clusters-feature/2758/1 "2023-03-28T22:38:22Z")

</div>

I tried to set it up for the cluster but the agent always returns Failed to acquire job: PUT … 404

```auto
kubectl logs buildkite-... -n bk -c agent
2023-03-28 22:25:39 WARN buildkite-... PUT https://agent.buildkite.com/v3/jobs/.../acquire: 404 Could not find job: ... (Attempt 10/10) 
2023-03-28 22:25:39 INFO buildkite-... Disconnecting... 
2023-03-28 22:25:40 INFO buildkite-... Disconnected 
2023-03-28 22:25:40 FATAL Failed to acquire job: PUT https://agent.buildkite.com/v3/jobs/.../acquire: 404 Could not find job: ...

```

---

<div class="post-metadata">

### Author: ![james.s](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/james.s/32/1305_2.png) [@james.s](https://forum.buildkite.community/u/james.s)
#### Post date: [March 29, 2023, 12:06am UTC](https://forum.buildkite.community/t/does-the-buildkite-agent-stack-k8s-work-with-buildkite-clusters-feature/2758/2 "2023-03-29T00:06:57Z")

</div>

Hello @wallyqs! Thanks for reaching out to us 👋

For the K8s Agent Stack, have you set its tags to target the same one as your setup Cluster upon installation? Im assuming you installed it via Helm, but please let me know if not.

Cheers!

---

<div class="post-metadata">

### Author: ![wallyqs](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/wallyqs/32/1218_2.png) [@wallyqs](https://forum.buildkite.community/u/wallyqs)
#### Post date: [March 29, 2023, 12:41am UTC](https://forum.buildkite.community/t/does-the-buildkite-agent-stack-k8s-work-with-buildkite-clusters-feature/2758/3 "2023-03-29T00:41:27Z")

</div>

Thanks James, yes I did an install via helm and did not set any tags (assumed it would be using the queue=kubernetes tag). The same setup outside in the cluster setup did work on the first try, but could not do the same when running with the cluster token.

---

<div class="post-metadata">

### Author: ![james.s](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/james.s/32/1305_2.png) [@james.s](https://forum.buildkite.community/u/james.s)
#### Post date: [March 29, 2023, 1:31am UTC](https://forum.buildkite.community/t/does-the-buildkite-agent-stack-k8s-work-with-buildkite-clusters-feature/2758/4 "2023-03-29T01:31:23Z")

</div>

No worries @wallyqs!

You are right that the queue=kubernetes is defaulted 👍

I similarly ran a unclustered stack fine on my side locally - that being said I’ve got attention on this with our Engineering folks behind the K8s stack to see what the case is.

Cheers again and thanks for the quick feedback on this!

You are right that the queue=kubernetes is defaulted

---

<div class="post-metadata">

### Author: ![wallyqs](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/wallyqs/32/1218_2.png) [@wallyqs](https://forum.buildkite.community/u/wallyqs)
#### Post date: [March 29, 2023, 5:56pm UTC](https://forum.buildkite.community/t/does-the-buildkite-agent-stack-k8s-work-with-buildkite-clusters-feature/2758/7 "2023-03-29T17:56:40Z")

</div>

Thanks, confirmed it works now!

---

<div class="post-metadata">

### Author: ![paula](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/paula/32/954_2.png) [@paula](https://forum.buildkite.community/u/paula)
#### Post date: [August 29, 2023, 5:39am UTC](https://forum.buildkite.community/t/does-the-buildkite-agent-stack-k8s-work-with-buildkite-clusters-feature/2758/8 "2023-08-29T05:39:30Z")

</div>


