-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Proxy small fixes #7102
Proxy small fixes #7102
Conversation
Signed-off-by: Etienne Champetier <[email protected]>
Signed-off-by: Etienne Champetier <[email protected]>
Signed-off-by: Etienne Champetier <[email protected]>
Hi @champtar. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: champtar, floryut 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for answering my question on the slack.
/lgtm
@@ -4,6 +4,17 @@ | |||
gather_subset: '!all' | |||
filter: ansible_distribution_*version | |||
|
|||
- name: Add proxy to yum.conf or dnf.conf if http_proxy is defined | |||
ini_file: | |||
path: "{{ ( (ansible_distribution_major_version | int) < 8) | ternary('/etc/yum.conf','/etc/dnf/dnf.conf') }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note for me: dnf is newer package management system than yum and it is available on centos8.
option: proxy | ||
value: "{{ http_proxy | default(omit) }}" | ||
state: "{{ http_proxy | default(False) | ternary('present', 'absent') }}" | ||
no_extra_spaces: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consistent configuration way as the same as centos one.
@@ -22,7 +22,7 @@ | |||
{%- if additional_no_proxy is defined -%} | |||
{{ additional_no_proxy }}, | |||
{%- endif -%} | |||
127.0.0.1,localhost,{{ kube_service_addresses }},{{ kube_pods_subnet }} | |||
127.0.0.1,localhost,{{ kube_service_addresses }},{{ kube_pods_subnet }},svc,svc.{{ dns_domain }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: this additional svc non_proxy configuration is for avoiding http proxy on k8s internal communication.
* Improve how we set 'proxy=' in yum.conf or dnf.conf Signed-off-by: Etienne Champetier <[email protected]> * Fixup spaces in no_proxy Signed-off-by: Etienne Champetier <[email protected]> * Add svc,svc.{{ dns_domain }} to no_proxy Signed-off-by: Etienne Champetier <[email protected]>
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
This improves #7100, but is not a full fix IMO
Special notes for your reviewer:
Does this PR introduce a user-facing change?: