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
Copy file name to clipboardExpand all lines: docs/vendor/quick-start.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Replicated recommends that you allow one to two hours to complete this quick sta
31
31
32
32
## Set Up Your Environment
33
33
34
-
Before you begin, do the following to see up your environment:
34
+
Before you begin, do the following to set up your environment:
35
35
36
36
* Install the Helm CLI, which is the tool for interacting with Helm and managing Helm charts. See [Install Helm](/vendor/environment-setup#install-helm).
# Tutorial: Automate Installation with Embedded Cluster
1
+
# Perform a Headless Installation of SlackerNews
2
2
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.
4
4
5
-
## Set Up
5
+
## Introduction
6
6
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).
8
46
9
47
## Tutorial
10
48
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:
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:
12
94
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:
14
96
15
-
1. Add the files to a new release with `replicated release create --yaml-dir manifests --promote Unstable`.
1. Create a customer with Embedded Cluster installation.
101
+
1. Untar the chart:
18
102
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
+
```
20
106
21
-
1. Create the VM
22
-
1. Create the DNS records.
107
+
1. Download and untar the release manifests:
23
108
24
-
1.SSH onto your VM.
109
+
1.Create the release:
25
110
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:
• Channel 2kvjwEj4uBaCMoTigW5xty1iiw6 successfully set to release 1
142
+
```
27
143
28
144
1. Create the ConfigValues file:
29
145
@@ -34,8 +150,81 @@ Get access to a VM.
34
150
values:
35
151
slackernews_domain:
36
152
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
+

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:
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.
0 commit comments