Dragonfly2
Dragonfly2 copied to clipboard
How to change the preheat x509 error
Configure deployment using the default helm
preheat
[root@xxxx ~]# curl --location --request POST 'http://10.29.18.87:30175/api/v1/jobs' --header 'Content-Type: application/json' -d '{"type": "preheat", "args": { "type": "image", "url": "https://10.29.0.41/v2/release.io/virtnest/system-images/ubuntu-22.04-x86_64/manifests/v1"}}'
{"message":"Get \"https://10.29.0.41/v2/\": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2024-04-22T08:44:35Z is after 2024-01-02T11:47:53Z"}[root@xxxx ~]#
how to solve
Refer to https://d7y.io/docs/next/reference/configuration/manager, https://github.com/dragonflyoss/helm-charts/blob/main/charts/dragonfly/values.yaml#L176.
Can I skip certificates when post requests?
[root@master-18-86 ~]# cat /etc/containerd/certs.d/10.29.0.41/hosts.toml
server = "https://10.29.0.41"
[host."http://127.0.0.1:65001"]
capabilities = ["pull", "resolve"]
[host."http://127.0.0.1:65001".header]
X-Dragonfly-Registry = ["https://10.29.0.41"]
[host."https://10.29.0.41"]
capabilities = ["pull", "resolve"]
skip_verify = true
I set skip_verify to true, but it has no effect on post requests
Refer to https://d7y.io/docs/next/advanced-guides/preheat/#harbor.