Skip to content

Commit cf9db4f

Browse files
authored
Merge pull request #3687 from replicatedhq/131449
Explain HelmChart requirements for Helm CLI installs and Security Center
2 parents 03313ed + f328908 commit cf9db4f

File tree

6 files changed

+70
-32
lines changed

6 files changed

+70
-32
lines changed

docs/partials/helm/_helm-install-prereqs.mdx

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
To deploy Helm charts, KOTS requires a unique HelmChart custom resource for each Helm chart `.tgz` archive in the release. You configure the HelmChart custom resource to provide the necessary instructions to KOTS for processing and preparing the chart for deployment. Additionally, the HelmChart custom resource creates a mapping between KOTS and your Helm chart to allow Helm values to be dynamically set during installation or upgrade.
1+
For installations with a Replicated installer (Embedded Cluster, KOTS, kURL), a unique HelmChart custom resource is required for each Helm chart `.tgz` archive in a release. The primary purpose of the HelmChart custom resource is to provide the necessary instructions to the Replicated installer for processing and preparing the given Helm chart for deployment.
2+
3+
The HelmChart custom resource is also used to generate a list of required images for the chart, which is required for the following use cases:
4+
* Air gap installations with the Helm CLI or with a Replicated installer
5+
* Online installations with a Replicated installer where the user will push images to a local image registry
6+
* Online or air gap installations that use the [Security Center (Alpha)](/vendor/security-center-about) to scan and report on Helm chart images

docs/reference/custom-resource-helmchart-v2.mdx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ This topic describes the KOTS HelmChart v2 custom resource.
2323

2424
<KotsHelmCrDescription/>
2525

26-
For more information, see [About Distributing Helm Charts with KOTS](/vendor/helm-native-about).
27-
2826
## Example
2927

3028
The following is an example manifest file for the HelmChart v2 custom resource:
@@ -93,17 +91,18 @@ For an example of recursive and non-recursive merging, see [About Recursive Merg
9391

9492
The `builder` key contains the minimum Helm values required so that the output of `helm template` exposes all container images needed to install the chart in an air-gapped environment.
9593

96-
The Replicated Vendor Portal uses the Helm values that you provide in the `builder` key to run `helm template` on the chart, then parses the output to discover the list of required images for the chart.
97-
98-
The Vendor Portal uses this list of images to create the Helm air gap installation instructions that are automatically made available to customers in the Replicated Enterprise Portal or Download Portal. For more information about installing with Helm in air-gapped environments, see [Install and Update with Helm in Air Gap Environments](/vendor/helm-install-airgap).
94+
The Replicated Vendor Portal uses the Helm values that you provide in the `builder` key to run `helm template` on the chart, then parses the output to generate a list of required images for the chart.
9995

100-
The list of images is also used when you build the `.airgap` bundle for a release to support air gap installations with a Replicated installer (Embedded Cluster, KOTS, kURL). For more information about how to build `.airgap` bundles, see [Package Air Gap Bundles for Helm Charts](/vendor/helm-packaging-airgap-bundles).
96+
The Vendor Portal then uses this list of images to do the following:
97+
* Create the Helm CLI air gap installation instructions that are automatically made available to customers in the Replicated Enterprise Portal or Download Portal. For more information, see [Install and Update with Helm in Air Gap Environments](/vendor/helm-install-airgap).
98+
* Build the `.airgap` bundle for a release to support air gap installations with a Replicated installer (Embedded Cluster, KOTS, kURL). For more information about how to build `.airgap` bundles, see [Package Air Gap Bundles for Helm Charts](/vendor/helm-packaging-airgap-bundles).
99+
* Determine which images to scan and report on in the Security Center (Alpha). For more information about the Security Center, see [About the Security Center (Alpha)](/vendor/security-center-about).
101100

102101
The `builder` key is required to support the following installation types:
103102

104103
* Air gap installations with a Replicated installer (Embedded Cluster, KOTS, kURL)
105-
* Air gap installations with Helm
106-
* Online installations with a Replicated installer where the user configured a local image registry in the Admin Console
104+
* Air gap installations with the Helm CLI
105+
* Online installations with a Replicated installer where the user will push images to a local image registry
107106

108107
#### Requirements
109108

docs/vendor/helm-install-airgap.mdx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,13 @@ These instructions assume that the customer is logged in to the portal on a work
1212

1313
Before you install, complete the following prerequisites:
1414

15-
* Declare the SDK as a dependency in your Helm chart. For more information, see [Install the SDK as a Subchart](replicated-sdk-installing#install-the-sdk-as-a-subchart) in _Installing the Replicated SDK_.
15+
* Declare the Replicated SDK as a dependency in your Helm chart. For more information, see [Install the SDK as a Subchart](replicated-sdk-installing#install-the-sdk-as-a-subchart) in _Installing the Replicated SDK_.
1616

17-
* If your Helm chart's default values do not expose all the required and optional images that might be needed to install in air-gapped environments, add the Replicated HelmChart custom resource to your release and configure `builder` key. For more information, see [builder](/reference/custom-resource-helmchart-v2#builder) in _HelmChart v2_. If your default values expose all images needed for air gap installations, you do not need to configure the `builder` key.
17+
* For each Helm chart in your release, add the Replicated HelmChart custom resource. Additionally, if the chart's default values do not expose all the required and optional images that might be needed to install in air-gapped environments, configure the HelmChart resource's `builder` key. For more information about how to configure the `builder` key, see [builder](/reference/custom-resource-helmchart-v2#builder) in _HelmChart v2_.
1818

19-
<details>
20-
<summary>What is the purpose of the `builder` key?</summary>
19+
Configuring the `builder` key ensures all the images that might be needed to install in air-gapped environments are included in the Helm CLI installation instructions in the Enterprise Portal. For installations that use the [Security Center (Alpha)](/vendor/security-center-about), the HelmChart custom resource is also required to build the list of images that are scanned in the Security Center.
2120

22-
Configuring the `builder` key ensures that the Vendor Portal can template the chart to discover the full list of container images required to install the chart in an air-gapped environment. The Vendor Portal uses this list of required images to create the Helm air gap installation instructions for the customer.
23-
</details>
24-
25-
* The customer used to install must have the following:
21+
* The customer record in the Vendor Portal must have the following:
2622

2723
* A valid email address. This email address is only used as a username for the Replicated registry and is never contacted. For more information, see [Creating a Customer](/vendor/releases-creating-customer).
2824

@@ -36,7 +32,7 @@ Helm air gap installation instructions are provided in either the Enterprise Por
3632

3733
For more information about enabling the Enterprise Portal for a customer, see [Manage Customer Access to the Enterprise Portal](/vendor/enterprise-portal-invite).
3834

39-
### Enterprise Portal (Beta)
35+
### Enterprise Portal
4036

4137
To install with Helm in an air gap environment using the Enterprise Portal:
4238

docs/vendor/install-with-helm.mdx

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Prerequisites from "../partials/helm/_helm-install-prereqs.mdx"
21
import FirewallOpeningsIntro from "../partials/install/_firewall-openings-intro.mdx"
32

43
# Install with Helm
@@ -9,7 +8,31 @@ This topic describes how to use Helm to install releases that contain one or mor
98

109
Before you install, complete the following prerequisites:
1110

12-
<Prerequisites/>
11+
* The customer record in the Vendor Portal must have a valid email address. This email address is only used as a username for the Replicated registry and is never contacted. For more information about adding an email address for a customer, see [Creating a Customer](/vendor/releases-creating-customer).
12+
13+
* The customer must have the **Existing Cluster (Helm CLI)** install type enabled. For more information about enabling install types for customers in the Vendor Portal, see [Manage Install Types for a License](licenses-install-types).
14+
15+
* Create an image pull secret for the proxy registry and add it to your Helm chart. This ensures that the Replicated proxy registry can be used to grant proxy access to your application images for Helm CLI installations. To create the image pull secret and add it to your Helm chart, follow the steps in [Use the Proxy Registry with Helm CLI Installations](/vendor/helm-image-registry).
16+
17+
* Declare the Replicated SDK as a dependency in your Helm chart. For more information, see [Install the SDK as a Subchart](replicated-sdk-installing#install-the-sdk-as-a-subchart) in _Installing the Replicated SDK_.
18+
19+
* If the [Security Center (Alpha)](/vendor/security-center-about) is enabled for your account, add a unique HelmChart custom resource for each Helm chart in your release. The HelmChart custom resource is required to create the list of images that are scanned and reported on in the Security Center.
20+
21+
The following is an example HelmChart custom resource for a chart named `examplechart` with a chart version of `1.0.0`:
22+
23+
```yaml
24+
apiVersion: kots.io/v1beta2
25+
kind: HelmChart
26+
metadata:
27+
name: examplechart
28+
spec:
29+
chart:
30+
# name must match the name of the chart
31+
name: examplechart
32+
# chartVersion must match the version of the chart
33+
chartVersion: 1.0.0
34+
```
35+
For more information about the HelmChart custom resource, see [HelmChart v2](/reference/custom-resource-helmchart-v2).
1336
1437
## Firewall Openings for Online Installations with Helm {#firewall}
1538

docs/vendor/security-center-about.mdx

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This topic provides an overview of the Replicated Security Center.
44

55
:::note
6-
The Security Center is Alpha. To access the Security Center, a feature flag must be enabled for your team. See [Limitations](/vendor/security-center-about#limitations) below.
6+
The Security Center is Alpha. To get access to the Security Center, reach out to your Replicated account representative.
77
:::
88

99
## Overview
@@ -12,13 +12,35 @@ The Security Center helps you strengthen security enablement in your application
1212

1313
The Security Center is powered by Replicated’s [SecureBuild](https://securebuild.com/) technology. Every image is scanned continuously, not just at release time. Customers can see the same application version security information that you do, driving customer transparency, reduced security questionnaire burden, and adoption of newer, more secure versions of your application.
1414

15-
## Limitations
16-
* The Security Center is Alpha. The features and functionality of the Security Center are subject to change.
15+
## Requirements
16+
1717
* Access to the Security Center Alpha requires a feature flag be turned on for your team. For more information, reach out to your Replicated account representative.
18-
* Security Center reporting is available only for Embedded Cluster and Helm CLI installations. It is not available for kURL installations or for KOTS installations in an existing cluster.
1918
* Display and reporting of application images requires the [Replicated SDK version 1.8.0](/release-notes/rn-replicated-sdk#180) or later.
2019
* Display and reporting of Embedded Cluster images requires the [Replicated SDK version 1.9.0](/release-notes/rn-replicated-sdk#190) or later.
21-
* In a Helm CLI install, display of all container images observed in the cluster beyond application images requires setting the Replicated SDK to [Report All Images](/vendor/replicated-sdk-customizing#report-all-images). This setting is automatically enabled for Embedded Cluster installations.
20+
* For Helm CLI installations, to include all container images observed in the cluster in the Security Center reports (rather than application images only), set the Replicated SDK to [Report All Images](/vendor/replicated-sdk-customizing#report-all-images). This setting is automatically enabled for Embedded Cluster installations.
21+
* Each Helm chart in the release must have a unique [HelmChart](/reference/custom-resource-helmchart-v2) custom resource. The HelmChart custom resource is required to create the list of images that are scanned and reported on in the Security Center. This HelmChart custom resource requirement applies to both Helm CLI and Embedded Cluster installations.
22+
23+
The following is an example HelmChart custom resource for a chart named `examplechart` with a chart version of `1.0.0`:
24+
25+
```yaml
26+
apiVersion: kots.io/v1beta2
27+
kind: HelmChart
28+
metadata:
29+
name: examplechart
30+
spec:
31+
chart:
32+
# name must match the name of the chart
33+
name: examplechart
34+
# chartVersion must match the version of the chart
35+
chartVersion: 1.0.0
36+
```
37+
For more information about the HelmChart custom resource, see [HelmChart v2](/reference/custom-resource-helmchart-v2).
38+
39+
## Limitations
40+
* The Security Center is Alpha. The features and functionality of the Security Center are subject to change.
41+
* Security Center reporting is available only for Embedded Cluster and Helm CLI installations. It is not available for kURL installations or for KOTS installations in an existing cluster.
42+
* If you have configured the [`builder`](/reference/custom-resource-helmchart-v2#builder) key in any of the HelmChart custom resources in your release, note that the Security Center uses the Helm values provided in the `builder` key to create the list of images that are scanned and reported on for the given Helm chart. The Security Center will scan and report on this same list of images for both air gap and online installations. If there are any images that you want reported on in the Security Center, ensure that they are exposed by the values provided in the `builder` key.
43+
2244

2345
## Security Center Interfaces
2446

0 commit comments

Comments
 (0)