Skip to content
This repository was archived by the owner on Jun 28, 2023. It is now read-only.

Use a (VMware) Harbor hosted ha-proxy image for CAPD installations #897

Closed
krishnade-vm opened this issue Jun 30, 2021 · 4 comments
Closed
Labels
kind/feature A request for a new feature owner/core-eng Work executed by TCE's core engineering team tech debt Technical Debt
Milestone

Comments

@krishnade-vm
Copy link

krishnade-vm commented Jun 30, 2021

Bug Report

We Found out that some DataCenter have rate limit by Docker , In such cases deployment of cluster fails . we need to Tackle this scenario/ Error from customer perspective

Error Log:
Unable to find image 'kindest/haproxy:2.1.1-alpine' locally
docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
See 'docker run --help'.

Expected Behavior

Should be able to pull all necessary images that is required for cluster deployment

Steps to Reproduce the Bug

Deploy Ubuntu VM from DC (Please contact me if you need VM from our team DC )
deploy stand-alone cluster
you see progress stuck in control plane initialization

Used below debug method suggested by Josh

  1. docker ps
    2.docker exec -it {bootstrap_hash} /bin/bash
    3.kubectl get po -A
    4.kubectl logs -f capd-controller-manager-xxxx -n capd-system -c manager

You will see the below error

Unable to find image 'kindest/haproxy:2.1.1-alpine' locally
docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
See 'docker run --help'.

Environment Details

  • Build version (tanzu version): 0.6.0rc
  • Operating System (client):Ubuntu 20.04.2 LTS
@krishnade-vm krishnade-vm added kind/bug A bug in an existing capability triage/needs-triage Needs triage by TCE maintainers labels Jun 30, 2021
@jpmcb
Copy link
Contributor

jpmcb commented Jun 30, 2021

We should pull all images from a VMware, public facing image proxy cache. We had talked about making this apart of the July release of TCE.

In the mean time, if you have access to a proxy cache, it can be used to get dockerhub images, cached within the registry, without hitting the rate limit. Then, you can pull them locally, and the docker agent should be able to find them and use them for your standalone cluster.

@joshrosso
Copy link
Contributor

Adding on to @jpmcb's comment:

A fair near-term solution would be to:

a. ensure the haproxy image's repository is configurable
b. copy the image from DockerHub to Harbor, using a tool like imgpkg copy.

I'm also moving this to a feature request rather than bug. This is the expected
behavior of upstream CAPD.

@joshrosso joshrosso added kind/feature A request for a new feature and removed kind/bug A bug in an existing capability triage/needs-triage Needs triage by TCE maintainers labels Jun 30, 2021
@joshrosso joshrosso added this to the v0.7.0 milestone Jul 12, 2021
@joshrosso joshrosso self-assigned this Jul 12, 2021
@randomvariable
Copy link
Contributor

See also kubernetes-sigs/kind#1895

@joshrosso joshrosso modified the milestones: v0.7.0, v0.8.0 Aug 10, 2021
@joshrosso joshrosso assigned nrb and unassigned joshrosso Aug 12, 2021
@joshrosso joshrosso self-assigned this Aug 20, 2021
@joshrosso
Copy link
Contributor

Doing some initial investigation.

Making ha proxy image configurable:

This capability is available in cluster-api v0.4.0.

Tanzu-framework is tracking the upgrade to cluster API v0.4.0 here:

Once this is in place, we can update the CAPD provider in tanzu-framework to use an ha-proxy image pointed at our harbor registry.

We'll need to delay this request until after our 0.9.0 (public release).

The initial ask (although we should make this change to support customer throttling and air-gapped scenarios, came from our internal team. They were being rate-limited from within kind. Our recommended workaround for the near term is to pre-seed the host image with the ha-proxy image. This will prevent pulling it remotely.

cc @RusiH @krishnade-vm

@joshrosso joshrosso changed the title Pull Rate Limit by docker When deploying Cluster through VM Use a (VMware) Harbor hosted ha-proxy image for CAPD installations Aug 23, 2021
@joshrosso joshrosso removed this from the v0.8.0 milestone Aug 23, 2021
@joshrosso joshrosso added this to the icebox milestone Aug 23, 2021
@joshrosso joshrosso added owner/core-eng Work executed by TCE's core engineering team and removed area/cluster-lifecycle labels Sep 19, 2021
@seemiller seemiller added the tech debt Technical Debt label Dec 6, 2021
@jdumars jdumars closed this as completed Oct 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature A request for a new feature owner/core-eng Work executed by TCE's core engineering team tech debt Technical Debt
Projects
None yet
Development

No branches or pull requests

7 participants