Skip to content

adds iam-ra to proxy configuration and fixes al23 yum config #1031

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

Open
wants to merge 1 commit into
base: mainline
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions latest/ug/nodes/hybrid-nodes-proxy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,16 @@ Acquire::http::Proxy "http://[.replaceable]#proxy-domain:port#";
Acquire::https::Proxy "http://[.replaceable]#proxy-domain:port#";
----

*Amazon Linux 2023 and Red Hat Enterprise Linux*
*Amazon Linux 2023*

. Configure `dnf` to use your proxy. Create a file `/etc/dnf/dnf.conf` with the proxy-domain and port values for your environment.
+
[source,yaml,subs="verbatim,attributes,quotes"]
----
proxy=http://[.replaceable]#proxy-domain:port#
----

*Red Hat Enterprise Linux*

. Configure `yum` to use your proxy. Create a file `/etc/yum.conf` with the proxy-domain and port values for your environment.
+
Expand All @@ -153,6 +162,20 @@ Acquire::https::Proxy "http://[.replaceable]#proxy-domain:port#";
proxy=http://[.replaceable]#proxy-domain:port#
----

=== IAM Roles Anywhere proxy configuration

The IAM Roles Anywhere credential provider service is responsible for refreshing credentials when using IAM Roles Anywhere with the `enableCredentialsFile` flag (see <<hybrid-nodes-add-ons-pod-id>>). If you are using a proxy in your on-premises environment, you must configure the service so it can communicate with IAM Roles Anywhere endpoints.

Create a file called `http-proxy.conf` in the `/etc/systemd/system/aws_signing_helper_update.service.d/` directory with the following content. Replace `proxy-domain` and `port` with the values for your environment.

[source,yaml,subs="verbatim,attributes,quotes"]
----
[Service]
Environment="HTTP_PROXY=http://[.replaceable]#proxy-domain:port#"
Environment="HTTPS_PROXY=http://[.replaceable]#proxy-domain:port#"
Environment="NO_PROXY=localhost"
----

== Cluster wide configuration

The configurations in this section must be applied after you create your Amazon EKS cluster and before running `nodeadm init` on each hybrid node.
Expand Down Expand Up @@ -189,4 +212,5 @@ containers:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
----
----