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
Update the stackdriver agents yaml to include a deployment for cluster level resources #62043
Update the stackdriver agents yaml to include a deployment for cluster level resources #62043
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. |
/ok-to-test |
@@ -30,6 +30,8 @@ spec: | |||
- image: gcr.io/stackdriver-agents/stackdriver-metadata-agent:{{ metadata_agent_version }} | |||
imagePullPolicy: IfNotPresent | |||
name: metadata-agent | |||
command: ["/opt/stackdriver/metadata/sbin/metadatad"] |
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.
Please use list syntax consistent with the rest of the file (each element in separate line preceded with a dash).
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.
Done. Merged the args into the command list.
@@ -2156,11 +2156,15 @@ EOF | |||
[[ "${METADATA_AGENT_VERSION:-}" != "" ]]; then | |||
metadata_agent_cpu_request="${METADATA_AGENT_CPU_REQUEST:-40m}" | |||
metadata_agent_memory_request="${METADATA_AGENT_MEMORY_REQUEST:-50Mi}" | |||
metadata_agent_cluster_level_cpu_request="${METADATA_AGENT_CLUSTER_LEVEL_CPU_REQUEST:-40m}" |
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.
@supriyagarg @x13n
Do we have any more up-to-date numbers, so that we can set reasonable defaults?
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.
I don't have any up-to-date numbers. Let me check with others in the agents team.
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.
Let's not block this PR, but set reasonable defaults separately
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.
This is way too high to be acceptable (but the same goes for the DaemonSet one).
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.
Responded to comments, and udpated implementation to use a ConfigMap
@@ -30,6 +30,8 @@ spec: | |||
- image: gcr.io/stackdriver-agents/stackdriver-metadata-agent:{{ metadata_agent_version }} | |||
imagePullPolicy: IfNotPresent | |||
name: metadata-agent | |||
command: ["/opt/stackdriver/metadata/sbin/metadatad"] |
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.
Done. Merged the args into the command list.
@@ -2156,11 +2156,15 @@ EOF | |||
[[ "${METADATA_AGENT_VERSION:-}" != "" ]]; then | |||
metadata_agent_cpu_request="${METADATA_AGENT_CPU_REQUEST:-40m}" | |||
metadata_agent_memory_request="${METADATA_AGENT_MEMORY_REQUEST:-50Mi}" | |||
metadata_agent_cluster_level_cpu_request="${METADATA_AGENT_CLUSTER_LEVEL_CPU_REQUEST:-40m}" |
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.
I don't have any up-to-date numbers. Let me check with others in the agents team.
LGTM, please squash the commits. |
69c71ac
to
1ad414d
Compare
Thanks - bumped the version to 0.18.2 and squashed the commits. |
/retest |
1ad414d
to
526daf0
Compare
526daf0
to
ed65b0d
Compare
Update: bumped the version to 0.19.1, and added a liveness probes to both the daemonset and the deployment |
/retest |
/lgtm |
/assign @MaciekPytel |
@supriyagarg Shouldn't this have a release note (especially if you're planning to cherry-pick it)? |
/approve Please remove hold after you address comments by @x13n. |
ed65b0d
to
d44c1e9
Compare
Just fixed a typo in the env vars: CLUSETER -> CLUSTER in one place. |
They can be added directly to https://github.com/kubernetes/kubernetes/blob/master/cluster/gce/util.sh |
/lgtm |
…r level resources
b0b8634
to
e350c46
Compare
Squashed the commits. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kawych, MaciekPytel, supriyagarg, x13n 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 |
1 similar comment
/retest |
@supriyagarg: The following tests 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 (batch tested with PRs 62043, 62168). If you want to cherry-pick this change to another branch, please follow the instructions here. |
@@ -7,6 +7,19 @@ metadata: | |||
kubernetes.io/cluster-service: "true" | |||
addonmanager.kubernetes.io/mode: Reconcile | |||
--- | |||
apiVersion: v1 | |||
kind: ConfigMap | |||
metadata: |
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.
This ConfigMap is missing labels for addon manager:
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile
What this PR does / why we need it: This PR introduces a Deployment based on the Stackdriver Metadata Agent, that will allow users to collect cluster level metadata like unscheduled pods, and services. All the services in a cluster are written against the "k8s_cluster" resource.