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

Adding metrics server #60174

Merged
merged 1 commit into from
Apr 2, 2018
Merged

Adding metrics server #60174

merged 1 commit into from
Apr 2, 2018

Conversation

hyperbolic2346
Copy link
Contributor

What this PR does / why we need it:
Adds support for the metrics server in the kubernetes-master charm. This allows the use of a horizontal pod autoscaler.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/484
Special notes for your reviewer:
Needs to go in after charmed-kubernetes/cdk-addons#28
Release note:

kubernetes-master charm now supports metrics server for horizontal pod autoscaler.

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 22, 2018
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 22, 2018
@BenTheElder
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 1, 2018
@BenTheElder
Copy link
Member

you should probably assign someone from cluster/juju/OWNERS, the current set of reviewers on this PR are assigned to far too many PRs :^)

@hyperbolic2346
Copy link
Contributor Author

/assign @Cynerva @ktsakalozos

api_opts['proxy-client-cert-file'] = client_cert_path
api_opts['proxy-client-key-file'] = client_key_path
api_opts['enable-aggregator-routing'] = 'true'
api_opts['client-ca-file'] = ca_cert_path
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just always set client-ca-file (and maybe the rest of these) regardless of the configuration of enable-metrics? Would it hurt anything?

I'm asking because, if we always set client-ca-file, it would provide a convenient fix for https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/515.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Cynerva I have no problem with that, I was just trying to reduce the scope of the change to only have an impact when metrics were enabled. Is this a request to make that change or just start a conversation?

Copy link
Contributor

Choose a reason for hiding this comment

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

Just starting a conversation, sorry for not being clear on that. I don't think anything needs to change in this PR, it looks solid and I don't want to expand the scope of it without good reason. We can address https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/515 in a standalone PR later :)

@Cynerva
Copy link
Contributor

Cynerva commented Mar 14, 2018

This LGTM, but we need to get charmed-kubernetes/cdk-addons#28 merged before we can let this one go out.

@Cynerva
Copy link
Contributor

Cynerva commented Mar 27, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 27, 2018
@ktsakalozos
Copy link
Contributor

/lgtm

@ktsakalozos
Copy link
Contributor

/retest

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cynerva, hyperbolic2346, ktsakalozos

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

@ktsakalozos
Copy link
Contributor

/test pull-kubernetes-typecheck

@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here.

@k8s-github-robot k8s-github-robot merged commit 2550bab into kubernetes:master Apr 2, 2018
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. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants