-
Notifications
You must be signed in to change notification settings - Fork 39k
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 the logging agent's node name as the metadata agent URL. #63353
Use the logging agent's node name as the metadata agent URL. #63353
Conversation
@kawych @piosz @rphillips can someone please review and add the ok-to-test label? |
- name: NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: spec.nodeName | ||
- name: STACKDRIVER_METADATA_AGENT_URL | ||
value: http://$(NODE_NAME):8799 |
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.
$(NODE_NAME) is not visible here. Please generate the url in configure-helper.sh and substitute it with sed as it is done now. Please make sure to test that it works as intended before submitting.
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.
Node name is visible here via Kubernetes bash variable substitution. This is how we're doing it in our manual installation instructions, without the use of bash sed replacing. You can see the configuration as we apply it verbatim here in our public config: https://storage.googleapis.com/stackdriver-gke-beta/configs/logging-agent.yaml
I can try to find the official documentation for this feature, but it has been tested and validated by our team.
/ok-to-test |
Yes, we will cherry pick this into 1.10 if we can get it approved in time. |
/lgtm |
/retest |
/approve no-issue |
/assign @jszczepkowski |
/retest |
/approve no-issue |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bmoyles0117, kawych, mwielgus, piosz 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 |
/retest Review the full test history for this PR. Silence the bot with an |
@bmoyles0117: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
The Stackdriver Logging agent should use the node's hostname when it constructs the Stackdriver Metadata Agent's URL, currently, it's using the GKE Master's hostname, which is a bug.
Release note: