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
The following directories would be created in the State Store:
144
132
145
-
<br/>
133
+
- `destinations/dev/default/dependencies/`
134
+
- `destinations/dev/default/resources/`
146
135
147
-
The paths should be used when setting up the workers to pull
148
-
down from the `StateStore`.
136
+
Kratix will, by default, write to unique directories within those paths depending on the
137
+
Promise or Resource being requested. You can stop this behaviour by setting the `filepath.mode` to `none`.
149
138
150
139
:::info
151
140
152
-
The reason for two directories is that GitOps applies require any prerequisite workloads like CRDs to be ready before any dependent workloads are applied. By dividing the two directories you can configure your GitOps tool to manage this for you.
141
+
Pre-requisites, like CRDs, are written to the `dependencies` subdirectory. This setup is
142
+
often required by GitOps tools to ensure that all dependencies are ready before the
Copy file name to clipboardexpand all lines: docs/main/04-guides/04-new-destination.mdx
+31-23
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,24 @@ description: Guide on how to register a new Destination with Kratix
3
3
title: Adding a new Destination
4
4
---
5
5
6
-
One of the most powerful features of Kratix is its ability to react when new Destinations are added to the platform. These Destinations can represent additional Kubernetes clusters, Kubernetes namespaces, or completely different infrastructure like a Terraform Cloud account or edge compute provider. By default, any Promise installed into Kratix will schedule it's Dependencies to new Destinations joining the platform.
6
+
One of the most powerful features of Kratix is its ability to react when new
7
+
Destinations are added to the platform. These Destinations can represent
8
+
additional Kubernetes clusters, Kubernetes namespaces, or completely different
9
+
infrastructure like a Terraform Cloud account or edge compute provider. By
10
+
default, any Promise installed into Kratix will schedule it's Dependencies to
11
+
new Destinations joining the platform.
7
12
8
13
## Prerequisites
9
14
10
-
In this section, we will register a new Kubernetes cluster as a Destination with Kratix, and
11
-
experience the Kratix multi-cluster capabilities. Before continuing, you will need a Platform
12
-
Kubernetes cluster running Kratix, and a second worker Kubernetes cluster to
13
-
register with the Platform. You also need at least one Promise installed on
14
-
the Platform.
15
+
In this section, we will register a new Kubernetes cluster as a Destination with
16
+
Kratix, and experience the Kratix multi-cluster capabilities. Before continuing,
17
+
you will need a Platform Kubernetes cluster running Kratix, and a second worker
18
+
Kubernetes cluster to register with the Platform. You also need at least one
19
+
Promise installed on the Platform.
15
20
16
21
For the context of this guide, we will assume the setup from [Installing Kratix
17
-
with KinD](./installing-kratix-others) and that the following environment variables are
18
-
set:
22
+
with KinD](./installing-kratix-others) and that the following environment
23
+
variables are set:
19
24
20
25
```bash
21
26
export PLATFORM="kind-platform"
@@ -29,12 +34,12 @@ installed, if needed.
29
34
30
35
```shell-session
31
36
$ kubectl --context $PLATFORM get destinations.platform.kratix.io
32
-
NAME AGE
33
-
worker-1 1h
37
+
NAME READY
38
+
worker-1 True
34
39
35
40
$ kubectl --context $PLATFORM get promises.platform.kratix.io
36
-
NAME AGE
37
-
jenkins-promise1h
41
+
NAME STATUSKIND API VERSION VERSION
42
+
jenkins Available jenkins marketplace.kratix.io/v1alpha1
38
43
```
39
44
40
45
On the worker, you should see the Jenkins Operator running:
@@ -49,8 +54,9 @@ If your setup is different, update the commands accordingly.
49
54
50
55
## Preparing the new cluster
51
56
52
-
You will now add the new cluster to the Platform as a Destination and watch Kratix reconcile the
53
-
system. For that, you need to first create the new Kubernetes cluster:
57
+
You will now add the new cluster to the Platform as a Destination and watch
58
+
Kratix reconcile the system. For that, you need to first create the new
When you request a new Jenkins, the Resources will be created in one of the available Destinations, by default this is selected in a non-deterministic way.
121
+
When you request a new Jenkins, the Resources will be created in one of the
122
+
available Destinations, by default this is selected in a non-deterministic way.
116
123
117
124
For further documentation on Destination scheduling, check the [Destination Reference
118
125
documentation](../reference/destinations/intro).
119
126
120
-
:::info
121
-
If you are specifically interested in making a Resource location deterministic, you can check out the [scheduling workloads](../reference/destinations/multidestination-management#resources) reference.
122
-
:::
127
+
:::info If you are specifically interested in making a Resource location
0 commit comments