Skip to content

Commit fa32870

Browse files
authored
Merge pull request #3407 from replicatedhq/cmx-vm-beta
Add CMX VMs beta docs
2 parents 4bc1704 + 8d2e618 commit fa32870

File tree

5 files changed

+508
-45
lines changed

5 files changed

+508
-45
lines changed

docs/vendor/testing-ci-cd.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
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:
28+
29+
<TestRecs/>

docs/vendor/testing-how-to.md

Lines changed: 31 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
1-
import TestRecs from "../partials/ci-cd/_test-recs.mdx"
21
import Prerequisites from "../partials/cmx/_prerequisites.mdx"
32

4-
# Use Compatibility Matrix
3+
# Create Clusters
54

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.
76

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.
98

10-
Before you can use Compatibility Matrix, you must complete the following prerequisites:
9+
## About Compatibility Matrix Clusters
1110

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.
1312

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.
1514

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).
1716

18-
This section explains how to use Compatibility Matrix to create and manage clusters with the Replicated CLI or the Vendor Portal.
17+
## Prerequisites
1918

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:
2120

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
2326

2427
You can create clusters with Compatibility Matrix using the Replicated CLI or the Vendor Portal.
2528

26-
#### Replicated CLI
29+
### With the Replicated CLI
2730

2831
To create a cluster using the Replicated CLI:
2932

@@ -36,7 +39,14 @@ To create a cluster using the Replicated CLI:
3639

3740
1. Run the following command to create a cluster:
3841

42+
43+
```bash
44+
replicated cluster create --distribution DISTRIBUTION
3945
```
46+
47+
To specify more options:
48+
49+
```bash
4050
replicated cluster create --name NAME --distribution K8S_DISTRO --version K8S_VERSION --disk DISK_SIZE --instance-type INSTANCE_TYPE [--license-id LICENSE_ID]
4151
```
4252
Where:
@@ -68,7 +78,7 @@ To create a cluster using the Replicated CLI:
6878

6979
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._
7080

71-
#### Vendor Portal
81+
### Vendor Portal
7282

7383
To create a cluster using the Vendor Portal:
7484

@@ -138,7 +148,7 @@ To create a cluster using the Vendor Portal:
138148

139149
[View a larger version of this image](/images/cmx-assigned-cluster.png)
140150

141-
### Prepare Clusters
151+
## Prepare Clusters
142152

143153
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).
144154

@@ -197,7 +207,7 @@ The `cluster prepare` command requires either a Helm chart archive or a director
197207

198208
For command usage, including additional options, see [cluster prepare](/reference/replicated-cli-cluster-prepare).
199209

200-
### Access Clusters
210+
## Access Clusters
201211

202212
Compatibility Matrix provides the kubeconfig for clusters 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.
203213

@@ -227,7 +237,7 @@ To access a cluster from the command line:
227237

228238
1. Press Ctrl-D or type `exit` when done to end the shell and the connection to the server.
229239

230-
### Upgrade Clusters (kURL Only)
240+
## Upgrade Clusters (kURL Only)
231241

232242
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 case for the `cluster upgrade` command is for testing your application's compatibility with Kubernetes API resource version migrations after upgrade.
233243
@@ -239,11 +249,11 @@ replicated cluster upgrade cabb74d5 --version 9d5a44c
239249
240250
For command usage, see [cluster upgrade](/reference/replicated-cli-cluster-upgrade).
241251
242-
### Delete Clusters
252+
## Delete Clusters
243253
244254
You can delete clusters using the Replicated CLI or the Vendor Portal.
245255
246-
#### Replicated CLI
256+
### Replicated CLI
247257
248258
To delete a cluster using the Replicated CLI:
249259
@@ -276,7 +286,8 @@ To delete a cluster using the Replicated CLI:
276286
```
277287
Where `CLUSTER_ID` is the ID of the target cluster.
278288
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
280291
281292
To delete a cluster using the Vendor Portal:
282293
@@ -286,28 +297,4 @@ To delete a cluster using the Vendor Portal:
286297
287298
<img alt="Delete cluster button" src="/images/cmx-delete-cluster.png" width="700px"/>
288299
289-
[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

Comments
 (0)