Skip to content

Conversation

@paigecalvert
Copy link
Contributor

@paigecalvert paigecalvert commented Oct 17, 2024

@replicated-ci replicated-ci added type::docs Improvements or additions to documentation type::feature labels Oct 17, 2024
@netlify
Copy link

netlify bot commented Oct 17, 2024

Deploy Preview for replicated-docs ready!

Name Link
🔨 Latest commit d9a9189
🔍 Latest deploy log https://app.netlify.com/sites/replicated-docs/deploys/6734dff9ff9e020008503fb0
😎 Deploy Preview https://deploy-preview-2753--replicated-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Oct 17, 2024

Deploy Preview for replicated-docs-upgrade ready!

Name Link
🔨 Latest commit d9a9189
🔍 Latest deploy log https://app.netlify.com/sites/replicated-docs-upgrade/deploys/6734dff9140d840008631ae1
😎 Deploy Preview https://deploy-preview-2753--replicated-docs-upgrade.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@paigecalvert paigecalvert marked this pull request as ready for review October 18, 2024 17:49
@paigecalvert paigecalvert requested a review from a team as a code owner October 18, 2024 17:49
This topic describes how to configure the Replicated HelmChart custom resource version `kots.io/v1beta2` to support Helm chart installations with Replicated KOTS.

## Overview
## Workflow
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just updated this workflow section to turn it into a numbered list, which tends to do a better job at conveying required action than unordered lists

```

#### Example: Rewrite public image names {#local-public-example}
### Task 1b: Rewrite Public Image Names
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated this section to use gchr in the example instead of docker, which we had done in this unmerged PR: https://github.com/replicatedhq/replicated-docs/pull/2628/files


:::note
The Replicated [snapshots](snapshots-overview) feature for backup and restsore is supported only for existing cluster installations with KOTS. Snapshots are not support for installations with Embedded Cluster. For more information about disaster recovery for installations with Embedded Cluster, see [Disaster Recovery for Embedded Cluster](/vendor/embedded-disaster-recovery.mdx).
:::
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ Added in this note which we added in the not-yet-merged-onboarding PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also moved this Task to last (after builder key)

```
### Support Local Image Registries for Online Installations {#local-registries}
## Additional Information
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ Moved the overview, v1/v2 differences and the info about migrating existing v1 installations down under Additional Information. Felt less noisy. This also aligns with a change you had requested in the onboarding PR

@paigecalvert paigecalvert requested a review from ajp-io October 18, 2024 18:13
To support Helm chart installations with the KOTS `kots.io/v1beta2` HelmChart custom resource, do the following:
1. Rewrite image names to use the Replicated proxy registry. See [Rewrite Image Names](#rewrite-image-names).
1. Inject a KOTS-generated image pull secret that grants proxy access to private images. See [Inject Image Pull Secrets](#inject-image-pull-secrets).
1. Add a pull secret for any Docker Hub images that could be rate limited. See [Add Pull Secret for Rate-Limited Docker Hub Images](#docker-secret).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should be advising people to pull these through the proxy. The overhead of the Docker Hub secret is the same overhead as allowing access to the private registry without us. By telling them to manage a secret for Docker Hub we blow a giant hole in our value prop.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, and Paige had a PR ready to do that, but Dmitriy wanted it tested in a KOTS app first. So we need to do that and get his/VP team sign off. https://replicated.slack.com/archives/CEEFDQURM/p1726020572386039?thread_ts=1726010537.693589&cid=CEEFDQURM

# If the user configured a registry, use the registry namespace they provided
# If air gap Embedded Cluster/kURL install, use the buit-in registry's hostname
# Else use the image's namespace at proxy.replicated.com
repository: '{{repl HasLocalRegistry | ternary LocalRegistryNamespace "proxy/my-app/quay.io/my-org" }}/nginx'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example should use a function to get the app slug.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that a license field value, or what is the template function way to get that?

```
@every 1h45m
```
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ ignore me

To support Helm chart installations with the KOTS `kots.io/v1beta2` HelmChart custom resource, do the following:
1. Rewrite image names to use the Replicated proxy registry. See [Rewrite Image Names](#rewrite-image-names).
1. Inject a KOTS-generated image pull secret that grants proxy access to private images. See [Inject Image Pull Secrets](#inject-image-pull-secrets).
1. Add a pull secret for any Docker Hub images that could be rate limited. See [Add Pull Secret for Rate-Limited Docker Hub Images](#docker-secret).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, and Paige had a PR ready to do that, but Dmitriy wanted it tested in a KOTS app first. So we need to do that and get his/VP team sign off. https://replicated.slack.com/archives/CEEFDQURM/p1726020572386039?thread_ts=1726010537.693589&cid=CEEFDQURM

# If the user configured a registry, use the registry namespace they provided
# If air gap Embedded Cluster/kURL install, use the buit-in registry's hostname
# Else use the image's namespace at proxy.replicated.com
repository: '{{repl HasLocalRegistry | ternary LocalRegistryNamespace "proxy/my-app/quay.io/my-org" }}/nginx'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that a license field value, or what is the template function way to get that?

@paigecalvert paigecalvert merged commit e615188 into main Nov 13, 2024
3 of 4 checks passed
@paigecalvert paigecalvert deleted the 114155 branch November 13, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type::docs Improvements or additions to documentation type::feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants