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

Add metrics-server addon #4581

Merged
merged 3 commits into from Apr 2, 2018
Merged

Add metrics-server addon #4581

merged 3 commits into from Apr 2, 2018

Conversation

itskingori
Copy link
Member

From the official core metrics pipeline docs:

Starting from Kubernetes 1.8, resource usage metrics, such as container CPU and memory usage, are available in Kubernetes through the Metrics API. These metrics can be either accessed directly by user, for example by using kubectl top command, or used by a controller in the cluster, e.g. Horizontal Pod Autoscaler, to make decisions.

The metrics server is not available in a Kubernetes cluster (unless it's been brought up by kube-up.sh and that's only 1.8+). So it's good to have it here. This complements HPA documentation that will be added by #3942.

See kubernetes-sigs/metrics-server#32 also. It's not necessary for end user but useful for context around the compatibility matrix.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 5, 2018
@itskingori
Copy link
Member Author

/assign @justinsb


In order to deploy metrics-server in your cluster run the following command from
the top-level directory of this repository:

Copy link
Contributor

Choose a reason for hiding this comment

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

@justinsb @chrislovecnm any concern with using directories for addon management vs single manifests?

Copy link
Member Author

Choose a reason for hiding this comment

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

@robinpercy Oh, I see. Actually, I think single file would be best so that people aren't forced to clone the repo or somehow copy the folder. One file would be easier as you can kubectl apply the raw github file.

Copy link
Member Author

Choose a reason for hiding this comment

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

@robinpercy @chrislovecnm changed to single file in ae032eb.

@robinpercy
Copy link
Contributor

/assign

Thanks @itskingori! Looks, good. Just have the one question for Justin or Chris around the directory structure.

@chrislovecnm
Copy link
Contributor

@robinpercy We need the addons file and it needs to be tested with channels. I am guessing that we need a single manifest, but again we need to test using the channel binary.

@itskingori
Copy link
Member Author

@chrislovecnm about #4581 (comment), do you have a reference PR I can look at to know how to do that?

@chrislovecnm
Copy link
Contributor

@itskingori how to test or the file layout?

@itskingori
Copy link
Member Author

@chrislovecnm both, how to register it as an addon via the file (assuming that's what you meant) ... and to test.

@chrislovecnm
Copy link
Contributor

@itskingori https://github.com/kubernetes/kops/tree/master/addons/monitoring-standalone has a good layout of files, and you can build channels and I think it is channel apply -f addon.yaml ... I think. Protokube runs it all the time and admitted I have rarely run it by hand. We need the addon.yaml file and I think we want the addon in just one YAML manifest, but you may be able to mess with the addon.yaml file and use multiple. We do not have an addon directory with multiple directories in it, so I am hesitant to have one with subfolders.

Ping me or #kops-dev if you have more questions.

@justinsb
Copy link
Member

justinsb commented Apr 2, 2018

Awesome - thank you @itskingori

I'd like to get this in. We can also look at integrating it, but we're starting to lay the groundwork for adding arbitrary addons via a manifest (see AddonSpec at https://github.com/kubernetes/kops/blob/master/pkg/apis/kops/cluster.go#L51) so this might be a great way to install in that way!

@justinsb
Copy link
Member

justinsb commented Apr 2, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 2, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: itskingori, justinsb

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 2, 2018
@justinsb
Copy link
Member

justinsb commented Apr 2, 2018

/ok-to-test

@k8s-ci-robot k8s-ci-robot merged commit 516daa0 into kubernetes:master Apr 2, 2018
@itskingori itskingori deleted the add_metrics_server_addon branch April 24, 2018 12:09
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants