Ask Your Question
1

How to set up Http configuration using Cloudflare for Harbor?

asked 2023-05-17 13:59:36 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-17 14:12:02 +0000

pufferfish gravatar image

Here is how you can set up Http configuration using Cloudflare for Harbor:

  1. Sign up for a Cloudflare account and add your domain to your account.
  2. Navigate to your Cloudflare dashboard and click on the DNS tab.
  3. Add an "A" record for your domain and point it to the IP address of your Harbor server.
  4. Click on the Crypto tab and select "Flexible" SSL mode.
  5. Navigate to the Firewall tab and create a firewall rule to allow traffic from your IP address or network to your Harbor server.
  6. Navigate to the Speed tab and enable the "Auto Minify" feature.
  7. Install the Cloudflare plugin for Harbor using the Helm chart.
  8. Edit the values.yaml file and set the following parameters:

    ``` ingress: annotations: external-dns.alpha.kubernetes.io/hostname: <your domain=""> certmanager.k8s.io/issuer: letsencrypt-prod nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" nginx.ingress.kubernetes.io/ssl-redirect: "true" hosts:

    • host: <your domain=""> paths:
      • path: / backend: serviceName: harbor servicePort: http tls:
    • hosts:
    • <your domain=""> secretName: letsencrypt-prod

9. Deploy the Harbor chart using the Helm command:

helm install harbor . -f values.yaml ```

  1. Wait for the Harbor deployment to finish and verify that your Harbor registry is accessible at your domain name.

That's it! You have now set up Http configuration using Cloudflare for Harbor. This will help secure your Harbor registry and improve its performance by caching content and accelerating traffic.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-17 13:59:36 +0000

Seen: 17 times

Last updated: May 17 '23