# AWX Container Groups in different K8s clusters

**URL:** <https://forum.ansible.com/t/awx-container-groups-in-different-k8s-clusters/2402>\
**Category:** Get Help\
**Tags:** awx, collections, kubernetes\
**Created:** [November 15, 2023, 3:48pm UTC](https://forum.ansible.com/t/awx-container-groups-in-different-k8s-clusters/2402 "2023-11-15T15:48:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jglapa](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jglapa/32/1554_2.png) [@jglapa](https://forum.ansible.com/u/jglapa)\
**Post date:** [November 15, 2023, 3:48pm UTC](https://forum.ansible.com/t/awx-container-groups-in-different-k8s-clusters/2402/1 "2023-11-15T15:48:01Z")

</div>

Hi! Is it possible to create `container groups` in multiple `K8s` clusters located and delegate some groups of inventory to be executed there?

The use case is multi regional setup where the container group would be close to the hosts are located instead reaching to them from one central?

---

<div class="post-metadata">

**Author:** ![TheRealHaoLiu](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/therealhaoliu/32/100_2.png) [@TheRealHaoLiu](https://forum.ansible.com/u/TheRealHaoLiu)\
**Post date:** [November 15, 2023, 7:46pm UTC](https://forum.ansible.com/t/awx-container-groups-in-different-k8s-clusters/2402/2 "2023-11-15T19:46:22Z")

</div>

yes you can!

Just need to create a credential for your target k8s cluster and use that credential when creating the container group.

[https://ansible.readthedocs.io/projects/awx/en/latest/administration/containers\_instance\_groups.html#create-a-container-group](https://ansible.readthedocs.io/projects/awx/en/latest/administration/containers_instance_groups.html#create-a-container-group)

Let me know if u run into any trouble.

---

<div class="post-metadata">

**Author:** ![jglapa](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jglapa/32/1554_2.png) [@jglapa](https://forum.ansible.com/u/jglapa)\
**Post date:** [November 17, 2023, 6:55am UTC](https://forum.ansible.com/t/awx-container-groups-in-different-k8s-clusters/2402/3 "2023-11-17T06:55:18Z")

</div>

Perfect, Thank You @TheRealHaoLiu

---

<div class="post-metadata">

**Author:** ![jglapa](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jglapa/32/1554_2.png) [@jglapa](https://forum.ansible.com/u/jglapa)\
**Post date:** [November 20, 2023, 3:56pm UTC](https://forum.ansible.com/t/awx-container-groups-in-different-k8s-clusters/2402/4 "2023-11-20T15:56:45Z")

</div>

@TheRealHaoLiu is it possible to somehow control based on host/group variables which container group should handle given host/group?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [December 20, 2023, 3:57pm UTC](https://forum.ansible.com/t/awx-container-groups-in-different-k8s-clusters/2402/5 "2023-12-20T15:57:28Z")

</div>

Closed on December 20, 2023, 3:57pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
