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
import TestRecs from "../partials/ci-cd/_test-recs.mdx"
2
+
3
+
# Use Compatibility Matrix with CI/CD
4
+
5
+
This topic describes how to integrate Replicated Compatibility Matrix into your CI/CD workflows.
6
+
7
+
## About Using Compatibility Matrix with CI/CD
8
+
9
+
Replicated recommends that you integrate Compatibility Matrix into your existing CI/CD workflow to automate the process of creating clusters to install your application and run tests. For more information, including additional best practices and recommendations for CI/CD, see [About Integrating with CI/CD](/vendor/ci-overview).
10
+
11
+
### Replicated GitHub Actions
12
+
13
+
Replicated maintains a set of custom GitHub actions that are designed to replace repetitive tasks related to using Compatibility Matrix and distributing applications with Replicated.
14
+
15
+
If you use GitHub Actions as your CI/CD platform, you can include these custom actions in your workflows rather than using Replicated CLI commands. Integrating the Replicated GitHub actions into your CI/CD pipeline helps you quickly build workflows with the required inputs and outputs, without needing to manually create the required CLI commands for each step.
16
+
17
+
To view all the available GitHub actions that Replicated maintains, see the [replicatedhq/replicated-actions](https://github.com/replicatedhq/replicated-actions/) repository in GitHub.
18
+
19
+
For more information, see [Use Replicated GitHub Actions in CI/CD](/vendor/ci-workflows-github-actions).
20
+
21
+
### Recommended Workflows
22
+
23
+
Replicated recommends that you maintain unique CI/CD workflows for development (continuous integration) and for releasing your software (continuous delivery). For example development and release workflows that integrate Compatibility Matrix for testing, see [Recommended CI/CD Workflows](/vendor/ci-workflows).
24
+
25
+
### Test Script Recommendations
26
+
27
+
Incorporating code tests into your CI/CD workflows is important for ensuring that developers receive quick feedback and can make updates in small iterations. Replicated recommends that you create and run all of the following test types as part of your CI/CD workflows:
Copy file name to clipboardExpand all lines: docs/vendor/testing-how-to.md
+31-44Lines changed: 31 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,32 @@
1
-
import TestRecs from "../partials/ci-cd/_test-recs.mdx"
2
1
import Prerequisites from "../partials/cmx/_prerequisites.mdx"
3
2
4
-
# Use Compatibility Matrix
3
+
# Create Clusters
5
4
6
-
This topic describes how to use Replicated Compatibility Matrix to create ephemeral clusters.
5
+
This topic describes how to use Replicated Compatibility Matrix to create and manage ephemeral clusters to test your applications across different Kubernetes distributions and versions.
7
6
8
-
## Prerequisites
7
+
This topic includes information about creating and managing clusters with Compatibility Matrix using the Replicated Vendor Portal or the Replicated CLI. For information about creating and managing clusters with the Vendor API v3, see the [clusters](https://replicated-vendor-api.readme.io/reference/listclusterusage) section in the Vendor API v3 documentation.
9
8
10
-
Before you can use Compatibility Matrix, you must complete the following prerequisites:
9
+
## About Compatibility Matrix Clusters
11
10
12
-
<Prerequisites/>
11
+
Compatibility Matrix supports both VM-based clusters (such as kind, k3s, RKE2, OpenShift, and Embedded Cluster) and cloud-managed clusters (such as EKS, GKE, and AKS). VM-based clusters run on Replicated bare metal servers, while cloud clusters are provisioned in Replicated-managed cloud accounts for faster delivery.
13
12
14
-
* Existing accounts must accept the TOS for the trial on the [**Compatibility Matrix**](https://vendor.replicated.com/compatibility-matrix) page in the Replicated Vendor Portal.
13
+
You can use Compatibility Matrix clusters for testing and troubleshooting Kubernetes-based deployments and Helm installations for your application.
15
14
16
-
## Create and Manage Clusters
15
+
For information about creating VMs with Compatibility Matrix to test Replicated Embedded Cluster installers or when you need full OS control, see [Create VMs](/vendor/testing-vm-create).
17
16
18
-
This section explains how to use Compatibility Matrix to create and manage clusters with the Replicated CLI or the Vendor Portal.
17
+
## Prerequisites
19
18
20
-
For information about creating and managing clusters with the Vendor API v3, see the [clusters](https://replicated-vendor-api.readme.io/reference/listclusterusage) section in the Vendor API v3 documentation.
19
+
Before you can use Compatibility Matrix clusters, you must complete the following prerequisites:
21
20
22
-
### Create Clusters
21
+
<Prerequisites/>
22
+
23
+
* Existing accounts must accept the TOS for the trial on the [**Compatibility Matrix**](https://vendor.replicated.com/compatibility-matrix) page in the Replicated Vendor Portal.
24
+
25
+
## Create Clusters
23
26
24
27
You can create clusters with Compatibility Matrix using the Replicated CLI or the Vendor Portal.
25
28
26
-
####Replicated CLI
29
+
###With the Replicated CLI
27
30
28
31
To create a cluster using the Replicated CLI:
29
32
@@ -36,7 +39,14 @@ To create a cluster using the Replicated CLI:
36
39
37
40
1. Run the following command to create a cluster:
38
41
42
+
43
+
```bash
44
+
replicated cluster create --distribution DISTRIBUTION
@@ -68,7 +78,7 @@ To create a cluster using the Replicated CLI:
68
78
69
79
In the output of the command, you can see that the `STATUS` of the cluster is `assigned`. When the kubeconfig for the cluster is accessible, the cluster's status is changed to `running`. For more information about cluster statuses, see [Cluster Status](testing-about#cluster-status) in _About Compatibility Matrix._
70
80
71
-
####Vendor Portal
81
+
### Vendor Portal
72
82
73
83
To create a cluster using the Vendor Portal:
74
84
@@ -138,7 +148,7 @@ To create a cluster using the Vendor Portal:
138
148
139
149
[View a larger version of this image](/images/cmx-assigned-cluster.png)
140
150
141
-
###Prepare Clusters
151
+
## Prepare Clusters
142
152
143
153
For applications distributed with the Replicated Vendor Portal, the [`cluster prepare`](/reference/replicated-cli-cluster-prepare) command reduces the number of steps required to provision a cluster and then deploy a release to the cluster for testing. This is useful in continuous integration (CI) workflows that run multiple times a day. For an example workflow that uses the `cluster prepare` command, see [Recommended CI/CD Workflows](/vendor/ci-workflows).
144
154
@@ -197,7 +207,7 @@ The `cluster prepare` command requires either a Helm chart archive or a director
197
207
198
208
For command usage, including additional options, see [cluster prepare](/reference/replicated-cli-cluster-prepare).
199
209
200
-
### Access Clusters
210
+
## Access Clusters
201
211
202
212
Compatibility Matrix provides the kubeconfig forclusters so that you can access clusters with the kubectl command line tool. For more information, see [Command line tool (kubectl)](https://kubernetes.io/docs/reference/kubectl/)in the Kubernetes documentation.
203
213
@@ -227,7 +237,7 @@ To access a cluster from the command line:
227
237
228
238
1. Press Ctrl-D or type`exit` when done to end the shell and the connection to the server.
229
239
230
-
### Upgrade Clusters (kURL Only)
240
+
## Upgrade Clusters (kURL Only)
231
241
232
242
For kURL clusters provisioned with Compatibility Matrix, you can use the the `cluster upgrade`command to upgrade the version of the kURL installer specification used to provision the cluster. A recommended use casefor the `cluster upgrade`command is for testing your application's compatibility with Kubernetes API resource version migrations after upgrade.
For command usage, see [cluster upgrade](/reference/replicated-cli-cluster-upgrade).
241
251
242
-
### Delete Clusters
252
+
## Delete Clusters
243
253
244
254
You can delete clusters using the Replicated CLI or the Vendor Portal.
245
255
246
-
#### Replicated CLI
256
+
### Replicated CLI
247
257
248
258
To delete a cluster using the Replicated CLI:
249
259
@@ -276,7 +286,8 @@ To delete a cluster using the Replicated CLI:
276
286
```
277
287
Where `CLUSTER_ID` is the ID of the target cluster.
278
288
In the output of the command, you can see that the `STATUS` of the cluster is `terminated`. For command usage, see [cluster ls](/reference/replicated-cli-cluster-ls).
279
-
#### Vendor Portal
289
+
290
+
### Vendor Portal
280
291
281
292
To delete a cluster using the Vendor Portal:
282
293
@@ -286,28 +297,4 @@ To delete a cluster using the Vendor Portal:
[View a larger version of this image](/images/cmx-delete-cluster.png)
290
-
291
-
## About Using Compatibility Matrix with CI/CD
292
-
293
-
Replicated recommends that you integrate Compatibility Matrix into your existing CI/CD workflow to automate the process of creating clusters to install your application and run tests. For more information, including additional best practices and recommendations for CI/CD, see [About Integrating with CI/CD](/vendor/ci-overview).
294
-
295
-
### Replicated GitHub Actions
296
-
297
-
Replicated maintains a set of custom GitHub actions that are designed to replace repetitive tasks related to using Compatibility Matrix and distributing applications with Replicated.
298
-
299
-
If you use GitHub Actions as your CI/CD platform, you can include these custom actions in your workflows rather than using Replicated CLI commands. Integrating the Replicated GitHub actions into your CI/CD pipeline helps you quickly build workflows with the required inputs and outputs, without needing to manually create the required CLI commands for each step.
300
-
301
-
To view all the available GitHub actions that Replicated maintains, see the [replicatedhq/replicated-actions](https://github.com/replicatedhq/replicated-actions/) repository in GitHub.
302
-
303
-
For more information, see [Use Replicated GitHub Actions in CI/CD](/vendor/ci-workflows-github-actions).
304
-
305
-
### Recommended Workflows
306
-
307
-
Replicated recommends that you maintain unique CI/CD workflows for development (continuous integration) and for releasing your software (continuous delivery). For example development and release workflows that integrate Compatibility Matrix for testing, see [Recommended CI/CD Workflows](/vendor/ci-workflows).
308
-
309
-
### Test Script Recommendations
310
-
311
-
Incorporating code tests into your CI/CD workflows is important for ensuring that developers receive quick feedback and can make updates in small iterations. Replicated recommends that you create and run all of the following test types as part of your CI/CD workflows:
312
-
313
-
<TestRecs/>
300
+
[View a larger version of this image](/images/cmx-delete-cluster.png)
0 commit comments