Skip to content

Commit

Permalink
docs: preheat add Harbor using self-signed certificates
Browse files Browse the repository at this point in the history
Signed-off-by: zhaoxinxin <[email protected]>
  • Loading branch information
Liam-Zhao committed Sep 27, 2024
1 parent ff14622 commit c1ab98e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docs/advanced-guides/preheat.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,3 +356,39 @@ Click the executions `ID` to view the detailed information of the preheating tas
The expected output is as follows.

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

## Harbor using self-signed certificates

If you use Harbor with a self-signed certificate for preheat, you will need to modify the Manager configuration.

Configure Manager yaml file, The default path in Linux is `/etc/dragonfly/manager.yaml` in linux, refer to [Manager](../reference/configuration/manager.md).

> Notice: `yourdomain.crt` is Harbor's ca.crt.

```shell
job:
# Preheat configuration.
preheat:
# registryTimeout is the timeout for requesting registry to get token and manifest.
registryTimeout: 1m
tls:
# insecureSkipVerify controls whether a client verifies the server's certificate chain and hostname.
insecureSkipVerify: false
# # caCert is the CA certificate for preheat tls handshake, it can be path or PEM format string.
caCert: /etc/certs/yourdomain.crt
```

Skip TLS verification, set `job.preheat.tls.insecureSkipVerify` to true.

```shell
job:
# Preheat configuration.
preheat:
# registryTimeout is the timeout for requesting registry to get token and manifest.
registryTimeout: 1m
tls:
# insecureSkipVerify controls whether a client verifies the server's certificate chain and hostname.
insecureSkipVerify: true
# # caCert is the CA certificate for preheat tls handshake, it can be path or PEM format string.
# caCert: ''
```

0 comments on commit c1ab98e

Please sign in to comment.