Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.