Skip to content

Commit

Permalink
docs: change harbor document (#180)
Browse files Browse the repository at this point in the history
Signed-off-by: zhaoxinxin <[email protected]>
  • Loading branch information
Liam-Zhao authored Nov 5, 2024
1 parent 2f2eada commit 18133fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions 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` or `all_peers`.
```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 @@ -350,16 +353,16 @@ Go to `Projects` and open your project from the project list, and open the `P2P

Click the `NEW POLICY` button to create P2P provider policy.

**Step 1:** Select a pre-configured preheat provider instance as target.

**Step 2:** By setting the Filter parameter, you can specify the image that needs to be preheated.

**Step 3:** Select `Single Peer` or `All Peers` based on your needs.
**Step 1:** Select `Single Peer` or `All Peers` based on your needs.

- **Single Peer**: Preheat to a seed peer.

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

**Step 2:** Enter the cluster id of Dragonfly Manager in `cluster_ids` to specify the preheated cluster.
If `cluster_ids` does not exist,
it means to preheating all clusters.

![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 18133fa

Please sign in to comment.