Skip to content

Commit a98ddb2

Browse files
committed
edits
1 parent db1db8d commit a98ddb2

File tree

4 files changed

+214
-17
lines changed

4 files changed

+214
-17
lines changed

docs/vendor/quick-start.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Replicated recommends that you allow one to two hours to complete this quick sta
3131

3232
## Set Up Your Environment
3333

34-
Before you begin, do the following to see up your environment:
34+
Before you begin, do the following to set up your environment:
3535

3636
* Install the Helm CLI, which is the tool for interacting with Helm and managing Helm charts. See [Install Helm](/vendor/environment-setup#install-helm).
3737

docs/vendor/tutorial-embedded-cluster-automation.mdx

Lines changed: 204 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,145 @@
1-
# Tutorial: Automate Installation with Embedded Cluster
1+
# Perform a Headless Installation of SlackerNews
22

3-
This tutorial shows how to install a release using Embedded Cluster from the command line without using the Admin Console UI. This is also known as a _headless_ installation.
3+
This topic provides a tutorial that demonstrates how to perform a headless installation for an application distributed with Replicated.
44

5-
## Set Up
5+
## Introduction
66

7-
Get access to a VM.
7+
This tutorial shows how to install a Helm chart with Replicated Embedded Cluster from the command line without interacting with the Admin Console UI. This is also known as a _headless_ installation. Headless installations are often used for automating application deployment as part of CI/CD pipelines.
8+
9+
In this tutorial, you will:
10+
11+
* Download the Helm chart and release manifests for the sample application (SlackerNews)
12+
13+
* Create a release for SlackerNews in the Replicated Platform
14+
15+
* Create a ConfigValues file to pass application-specific configuration values to the installation from the command line
16+
17+
* Run the Embedded Cluster `install` command to perform a headless install of SlackerNews in a VM
18+
19+
## Set Up Your Environment
20+
21+
Before you begin, do the following to set up your environment:
22+
23+
* Install the Helm CLI, which is the tool for interacting with Helm and managing Helm charts. See [Install Helm](/vendor/environment-setup#install-helm).
24+
25+
* Ensure that you have access to a VM that meets the requirements for Embedded Cluster:
26+
27+
* **Option 1: Use Compatibility Matrix.** To use Replicated Compatibility Matrix to create a VM, do the following before proceeding:
28+
29+
* Request Compatibility Matrix credits. You can request credits by creating a Vendor Portal account and then going to [**Compatibility Matrix > Request more credits**](https://vendor.replicated.com/compatibility-matrix) in the Vendor Portal. For more information about creating an account, see [Create a Vendor Account](vendor-portal-creating-account). For more information about Compatibility Matrix credits, see [Billing and Credits](/vendor/testing-about#billing-and-credits).
30+
31+
:::note
32+
If you are new to the Replicated platform, you might be eligible for $100 in free Compatibility Matrix credits. To request your free credits, reach out to our sales team at https://www.replicated.com/contact and note in the comments that you are completing the Replicated Quick Start.
33+
:::
34+
35+
* Ensure that you have an SSH key in your GitHub account. Then, add your GitHub username to your Vendor Portal [**Account Settings**](https://vendor.replicated.com/account-settings). This will provide SSH access to VMs that you create with Compatibility Matrix. For more information, see [Set Up SSH Access](/vendor/testing-vm-create#set-up-ssh-access) in _Create VMs_.
36+
37+
After you complete the prerequisites above, continue to the [Quick Start](#quick-start). You will create the VM with Compatibility Matrix as part of the tutorial.
38+
39+
* **Option 2: Bring your own VM.** Your VM must meet these requirements:
40+
41+
* Firewalls must allow HTTP and HTTPS traffic.
42+
43+
<Requirements/>
44+
45+
For more information, see [Set Up Development Environments for Testing](/vendor/environment-setup#dev).
846

947
## Tutorial
1048

11-
1. Create an app.
49+
1. Create an application using the Replicated CLI:
50+
51+
1. On your local machine, install the Replicated CLI:
52+
53+
* MacOS
54+
55+
```bash
56+
brew install replicatedhq/replicated/cli
57+
```
58+
* Linux / Windows Subsystem for Linux (WSL)
59+
60+
```bash
61+
version=$(curl -s https://api.github.com/repos/replicatedhq/replicated/releases/latest \
62+
| grep -m1 -Po '"tag_name":\s*"v\K[^"]+')
63+
curl -Ls \
64+
"https://github.com/replicatedhq/replicated/releases/download/v${version}/replicated_${version}_linux_amd64.tar.gz" \
65+
-o replicated.tar.gz
66+
tar xf replicated.tar.gz replicated && rm replicated.tar.gz
67+
mv replicated /usr/local/bin/replicated
68+
```
69+
For more information and additional installation options, see [Install the Replicated CLI](/reference/replicated-cli-installing).
70+
71+
1. Authorize the Replicated CLI:
72+
73+
```bash
74+
replicated login
75+
```
76+
In the browser window that opens, follow the prompt to log in to your Vendor Portal account and authorize the CLI.
77+
78+
1. Create an application named `SlackerNews`:
79+
80+
```bash
81+
replicated app create SlackerNews
82+
```
83+
84+
1. Set the `REPLICATED_APP` environment variable to the application that you created:
85+
86+
```bash
87+
export REPLICATED_APP=APP_SLUG
88+
```
89+
Where `APP_SLUG` is the unique application slug provided in the output of the `app create` command.
90+
91+
Setting the `REPLICATED_APP` environment variable allows you to interact with the application using the Replicated CLI without needing to use the `--app` flag with every command.
92+
93+
1. Get the release files and Helm chart archive for SlackerNews:
1294

13-
1. Get the release files and Helm chart archive.
95+
1. Run the following command to download version 1.0.1 of the sample SlackerNews Helm chart to a new `quick-start` directory:
1496

15-
1. Add the files to a new release with `replicated release create --yaml-dir manifests --promote Unstable`.
97+
```bash
98+
curl -O --create-dirs --output-dir quick-start https://docs.replicated.com/slackernews-1.0.1.tar.gz
99+
```
16100

17-
1. Create a customer with Embedded Cluster installation.
101+
1. Untar the chart:
18102

19-
1. If you are using Compatibility Matrix, create the VM:
103+
```bash
104+
tar -xzf quick-start/slackernews-1.0.1.tar.gz -C quick-start/ && rm quick-start/slackernews-1.0.1.tar.gz
105+
```
20106

21-
1. Create the VM
22-
1. Create the DNS records.
107+
1. Download and untar the release manifests:
23108

24-
1. SSH onto your VM.
109+
1. Create the release:
25110

26-
1. Download the installation assets and untar. You can add these commands to CI/CD workflows to automate this step.
111+
1. Lint the YAML files in the `manifests` directory:
112+
113+
```bash
114+
replicated release lint --yaml-dir .
115+
```
116+
**Example output:**
117+
```bash
118+
RULE TYPE FILENAME LINE MESSAGE
119+
may-contain-secrets info slackernews.yaml 142 It looks like there might be secrets in this file
120+
preflight-spec warn Missing preflight spec
121+
troubleshoot-spec warn Missing troubleshoot spec
122+
nonexistent-status-informer-object warn replicated-app.yaml 14 Status informer points to a nonexistent kubernetes object. If this is a Helm resource, this warning can be ignored.
123+
nonexistent-status-informer-object warn replicated-app.yaml 15 Status informer points to a nonexistent kubernetes object. If this is a Helm resource, this warning can be ignored.
124+
nonexistent-status-informer-object warn replicated-app.yaml 16 Status informer points to a nonexistent kubernetes object. If this is a Helm resource, this warning can be ignored.
125+
```
126+
:::note
127+
You can ignore `info` or `warn` messages for the purpose of this quick start.
128+
:::
129+
130+
1. From the `manifests` directory, create a release and promote it to the Unstable channel:
131+
132+
```bash
133+
replicated release create --yaml-dir . --promote Unstable
134+
```
135+
**Example output**:
136+
```bash
137+
• Reading manifests from .
138+
• Creating Release ✓
139+
• SEQUENCE: 1
140+
• Promoting ✓
141+
• Channel 2kvjwEj4uBaCMoTigW5xty1iiw6 successfully set to release 1
142+
```
27143

28144
1. Create the ConfigValues file:
29145

@@ -34,8 +150,81 @@ Get access to a VM.
34150
values:
35151
slackernews_domain:
36152
value: YOUR_DOMAIN
37-
```
38-
Where `YOUR_DOMAIN` is the domain to use for SlackerNews. For Compatibility Matrix VMs, this is the hostname provided for the DNS record you created with port 443.
153+
```
154+
Where `YOUR_DOMAIN` is the domain to use for SlackerNews. For Compatibility Matrix VMs, this is the hostname provided for the DNS record you created with port 443.
155+
156+
Save the ConfigValues on your local machine. You will transfer this file to your VM as part of a later step.
157+
158+
1. Create a test customer so that you can install the release in your VM with Embedded Cluster:
159+
160+
1. Log in to the [Vendor Portal](https://vendor.replicated.com).
161+
162+
1. Under the application drop down, select the SlackerNews application that you created.
163+
164+
<img alt="App drop down" src="/images/quick-start-app-dropdown-slackernews.png" width="250px"/>
165+
166+
[View a larger version of this image](/images/quick-start-app-dropdown-slackernews.png)
167+
168+
1. Click **Customers > Create customer**.
169+
170+
The **Create a new customer** page opens:
171+
172+
![Customer a new customer page in the Vendor Portal](/images/create-customer.png)
173+
174+
[View a larger version of this image](/images/create-customer.png)
175+
176+
1. For **Customer name**, enter a name for the customer. For example, `Example Customer`.
177+
178+
1. For **Assigned Channel**, select **Unstable**. This allows the customer to install releases promoted to the Unstable channel.
179+
180+
1. For **Customer type**, select **Development**.
181+
182+
1. For **Install types**, enable **Embedded Cluster (current generation product)** and disable the other install type options.
183+
184+
1. Click **Save Changes**.
185+
186+
1. If you brought your own VM, SSH onto your VM. Otherwise, follow these steps to create and SSH onto a VM with Compatibility Matrix:
187+
188+
1. Create an Ubuntu VM that expires after two hours:
189+
190+
```bash
191+
replicated vm create --distribution ubuntu --version 24.04 --instance-type r1.small --disk 50 --ttl 2h
192+
```
193+
**Example output:**
194+
```bash
195+
ID NAME DISTRIBUTION VERSION STATUS NETWORK CREATED EXPIRES COST
196+
97940819 practical_black ubuntu 24.04 queued c726ffff 2025-08-20 14:32 MDT - $0.69
197+
```
198+
199+
1. After a few minutes, check the status of the VM to see when it is `running`:
200+
201+
```bash
202+
replicated vm ls
203+
```
204+
**Example output:**
205+
```bash
206+
ID NAME DISTRIBUTION VERSION STATUS NETWORK CREATED EXPIRES COST
207+
97940819 practical_black ubuntu 24.04 running c726ffff 2025-08-20 14:32 MDT 2025-08-20 16:33 MDT $0.69
208+
```
209+
210+
1. Run the following command to use the Compatibility Matrix Forwarder to SSH onto the VM:
211+
212+
```bash
213+
214+
```
215+
Where `VM_ID` is the `ID` from the output of the `replicated vm ls` command.
216+
217+
:::note
218+
If you are prompted to add the fingerprint for replicatedvm.com, type `yes` and press Enter.
219+
:::
220+
221+
1. When prompted, provide the passphrase for the SSH key in your linked GitHub account. Compatibility Matrix uses GitHub SSH to provide access to the VM.
222+
223+
1. On your VM, run the first two commands in the **Embedded cluster install instructions** dialog to download the latest release and extract the installation assets. Do not yet run the installation command.
224+
225+
<img width="600px" src="/images/embedded-cluster-install-dialog-latest.png" alt="embedded cluster install instructions dialog"/>
226+
227+
[View a larger version of this image](/images/embedded-cluster-install-dialog-latest.png)
39228

40229
1. Transfer the ConfigValues to your VM using scp.
41230

docs/vendor/tutorial-helm-cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Tutorial: Install with the Helm CLI
1+
# Install SlackerNews with the Helm CLI
22

33
This tutorial shows how to install a release using the Helm CLI.
44

sidebars.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ const sidebars = {
4848
// 'vendor/namespaces',
4949
// ],
5050
// },
51+
{
52+
type: 'category',
53+
label: 'Tutorials',
54+
items: [
55+
'vendor/tutorial-embedded-cluster-automation',
56+
'vendor/tutorial-helm-cli',
57+
],
58+
},
5159
{
5260
type: 'category',
5361
label: 'Labs',

0 commit comments

Comments
 (0)