From 3e9ab897b858799fe3dc8a20ef2b354a4773921c Mon Sep 17 00:00:00 2001 From: Lenny Chen <55669665+lennessyy@users.noreply.github.com> Date: Thu, 4 Jan 2024 11:31:02 -0800 Subject: [PATCH] docs: add note about local registry k8s change (#1965) * docs: add note about local registry k8s change * Update docs/docs-content/clusters/edge/networking/local-registry.md Co-authored-by: Karl Cardenas --------- Co-authored-by: Lenny Chen Co-authored-by: Karl Cardenas --- .../edge/networking/local-registry.md | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/docs-content/clusters/edge/networking/local-registry.md b/docs/docs-content/clusters/edge/networking/local-registry.md index bbf11e10be..b84a6cbb81 100644 --- a/docs/docs-content/clusters/edge/networking/local-registry.md +++ b/docs/docs-content/clusters/edge/networking/local-registry.md @@ -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