Skip to content

Commit

Permalink
docs: add note about local registry k8s change (#1965)
Browse files Browse the repository at this point in the history
* docs: add note about local registry k8s change

* Update docs/docs-content/clusters/edge/networking/local-registry.md

Co-authored-by: Karl Cardenas <karl@spectrocloud.com>

---------

Co-authored-by: Lenny Chen <lenny.chen@spectrocloud.com>
Co-authored-by: Karl Cardenas <karl@spectrocloud.com>
  • Loading branch information
3 people authored Jan 4, 2024
1 parent 0d86169 commit 3e9ab89
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions docs/docs-content/clusters/edge/networking/local-registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,25 @@ Palette Edge allows you to provision a local Harbor image registry as part of yo

4. If the profile does not already have a storage layer, click **Add New Pack** to add a storage pack. You can choose any storage pack for your storage layer.

5. Click **Add New Pack** and search for the **Harbor Edge Native Config** pack. Add the pack to your cluster profile. For more information about the pack and its parameters, refer to [Harbor Edge Native Config pack documentation](../../../integrations/harbor-edge.md).
5. Select the Kubernetes layer of the profile. Under `cluster.config.kube-apiserver-arg`, remove `AlwaysPullImages` from the list item `enable-admission-plugins`:

6. In the `harbor-config.storage` parameter, make sure you allocate enough storage in the `registry` field to store all your images.
```yaml {7}
kube-apiserver-arg:
- anonymous-auth=true
- profiling=false
- disable-admission-plugins=AlwaysAdmit
- default-not-ready-toleration-seconds=60
- default-unreachable-toleration-seconds=60
- enable-admission-plugins=NamespaceLifecycle,ServiceAccount,NodeRestriction
```
7. Click **Save Changes**.
6. Click **Add New Pack** and search for the **Harbor Edge Native Config** pack. Add the pack to your cluster profile. For more information about the pack and its parameters, refer to [Harbor Edge Native Config pack documentation](../../../integrations/harbor-edge.md).
8. Deploy a new Edge cluster with your updated profile. Or if you have an active cluster, update the cluster to use the new version of the cluster profile. The initial download of the images still requires a connection to the external network, but subsequent images pulls will be from the local harbor registry.
7. In the `harbor-config.storage` parameter, make sure you allocate enough storage in the `registry` field to store all your images.

8. Click **Save Changes**.

9. Deploy a new Edge cluster with your updated profile. Or, if you have an active cluster, update the cluster to use the new version of the cluster profile. The initial download of the images will require a connection to the external network as the images are sourced from the original repository. Subsequent image pulls are sourced from the local Harbor registry.

## Validation

Expand Down

0 comments on commit 3e9ab89

Please sign in to comment.