Skip to content

Commit

Permalink
docs: change harbor document
Browse files Browse the repository at this point in the history
Signed-off-by: zhaoxinxin <[email protected]>
  • Loading branch information
Liam-Zhao committed Nov 4, 2024
1 parent 2f2eada commit c8f444d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/advanced-guides/preheat.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Use Open API for preheating image. First create a POST request for preheating.
If the `scheduler_cluster_ids` does not exist,
it means to preheat all scheduler clusters.

> Notice: The scope parameter selects `single_peer` (Preheat to a seed peer) or `all_peers` (Preheat to each peer in the P2P cluster).
```bash
curl --location --request POST 'http://dragonfly-manager:8080/oapi/v1/jobs' \
--header 'Content-Type: application/json' \
Expand All @@ -47,7 +49,8 @@ curl --location --request POST 'http://dragonfly-manager:8080/oapi/v1/jobs' \
"url": "https://index.docker.io/v2/library/alpine/manifests/3.19",
"filteredQueryParams": "Expires&Signature",
"username": "your_registry_username",
"password": "your_registry_password"
"password": "your_registry_password",
"scope": "single_peer" or "all_peers"
}
}'
```
Expand Down Expand Up @@ -360,6 +363,8 @@ Click the `NEW POLICY` button to create P2P provider policy.

- **All Peers**: Preheat to each peer in the P2P cluster.

**Step 4:** Enter the cluster id of Dragonfly Manager to specify the preheated cluster. If empty, all clusters will be selected.

![create-policy](../resource/advanced-guides/preheat/create-policy.png)

### Executions Preheat policy
Expand Down
2 changes: 1 addition & 1 deletion docs/operations/integrations/harbor.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ This document will help you experience how to use dragonfly with harbor.
## P2P Preheat {#p2p-preheat}

Dragonfly 2.0 is compatible with dragonfly 1.0 integrated harbor preheat interface.
Harbor preheat feature integrates dragonfly, please refer to [harbor-preheat](../../advanced-guides/preheat.md#preheat).
Harbor preheat feature integrates dragonfly, please refer to [harbor-preheat](../../advanced-guides/preheat.md#harbor).
Binary file modified docs/resource/advanced-guides/preheat/create-policy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c8f444d

Please sign in to comment.