You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
agents = [for agent in try(each.value.agents, []) : kowabunga_agent.eu-west[agent].id]
96
+
}
97
+
```
98
+
99
+
{{< alert color="warning" title="Warning" >}}
100
+
Note that, despite have 2 **Kiwi** instances, from Kowabunga perspective, we're only registering one. This is because, the 2 instances are only used for high-availability and failover perspective. From service point of view, the region only has one single network gateway.
101
+
102
+
Despite that, each instance will have its own agent, to establish a WebSocket connection to **Kahuna** orchestrator.
103
+
{{< /alert >}}
104
+
105
+
Let's continue with the 3 **Kaktus** instances declaration and their associated agents. Note that, this time, instances are associated to the zone itself, not the region.
106
+
107
+
{{< alert color="success" title="Information" >}}
108
+
Note that **Kaktus** instance creaion/update takes 4 specific parameters into account:
109
+
-**cpu_price** and **memory_price** are purely arbitrary values that express how much actual money is worth your metal infrastructure. These are used to compute virtual cost calculation later, when you'll be spwaning **Kompute** instances with vCPUs and vGB of RAM. Each server being different, it's fully okay to have different values here for your fleet.
110
+
-**cpu_overcommit** and **memory_overcommit** define the [overcommit](https://en.wikipedia.org/wiki/Memory_overcommitment) ratio you accept your physical hosts to address. As for price, not every server is born equal. Some have hyper-threading, other don't. You may consider that a value of 3 or 4 is fine, other tend to be stricter and use 2 instead. The more you set the bar, the more virtual resources you'll be able to create but the less actual physical resources they'll be able to get.
agents = [for agent in try(each.value.agents, []) : kowabunga_agent.eu-west-a[agent].id]
183
+
}
184
+
```
185
+
186
+
And again, apply:
187
+
188
+
```sh
189
+
$ kobra tf apply
190
+
```
191
+
192
+
That done, **Kiwi** and **Kaktus** instances have been registered, but more essentially, their associated agents. For each newly created agent, you should have received an email (check the admin one you previously set in **Kahuna**'s configuration). Keep track of these emails, they contain one-time credentials about the agent identifier and it's associated API key.
193
+
194
+
This is the super secret thing that will allow them further to establish secure connection to **Kahuna** orchestrator. We're soon going to declare these credentials in Ansible's secrets so **Kiwi** and **Kaktus** instances can be provisioned accordingly.
195
+
196
+
{{< alert color="warning" title="Warning" >}}
197
+
There's no way to recover the agent API key. It's never printed anywhere but on the email you just received. Even the database doesn't contain it. If one agent's API key is lost, you can either request a new one from API or destroy the agent and create a new one in-place.
198
+
{{< /alert >}}
199
+
200
+
Let's continue and [provision our region's **Kiwi** instances](/docs/getting-started/create-kiwi/) !
0 commit comments