Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use upstream docker-registry-proxy and set proxy-connect timeouts #918

Merged

Conversation

fgimenez
Copy link
Contributor

@fgimenez fgimenez commented Feb 1, 2021

These changes will prevent errors like https://prow.apps.ovirt.org/view/gcs/kubevirt-prow/logs/publish-bootstrap-image/1354780192060477440 when pushing big layers through our proxy.

I've also taken the opportunity to switch to the upstream docker-registry-proxy image now that rpardini/docker-registry-proxy#70 is fixed and our previous upstream PRs have already landed.

Finally, I've added the proxy deployment to the automated prow-deploy, was missing there.

Signed-off-by: Federico Gimenez [email protected]

@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Feb 1, 2021
@fgimenez
Copy link
Contributor Author

fgimenez commented Feb 1, 2021

/cc @dhiller

secret:
secretName: docker-mirror-proxy
- name: storage
hostPath:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it required for the proxy to use hostpath? I mean, if the node goes down our cache won't work any more? Or do we have more than one cache node?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are completely right, when i created the docker-mirror-proxy deployment i just copied over the docker-mirror deployment, this hostPath setting was inherited from the old cluster constraints https://github.com/kubevirt/project-infra/blob/master/github/ci/prow/templates/mirror.yaml#L45-L47

I've just pushed changes to use a PVC instead, PTAL.

Copy link
Contributor

@dhiller dhiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, one question though.

Copy link
Contributor

@dhiller dhiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Feb 4, 2021
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhiller

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 4, 2021
@kubevirt-bot kubevirt-bot merged commit a2cd67e into kubevirt:master Feb 4, 2021
@fgimenez fgimenez deleted the fix-big-layer-push-through-proxy branch February 4, 2021 10:54
value: "true"
- name: ALLOW_PUSH
value: "true"
- name: PROXY_CONNECT_TIMEOUT
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed, this is a duplicate env var. Also elsewhere in PR #918.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants