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

disable metrics-server dependency by default #358

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

vsinghal13
Copy link
Contributor

@vsinghal13 vsinghal13 commented Jan 9, 2020

Description

This PR disabled the metrics-server helm chart dependency by default.
metrics-server is only required for the fluentd HPA , which is disabled by default, so we are also defaulting this dependency to false.

It is primarily done to cover the scenario, where the user already has metrics-server installed in the k8s cluster, then our helm install command would fail with the error :

Error: release collection failed: apiservices.apiregistration.k8s.io "v1beta1.metrics.k8s.io" already exists

Now, if the user wants to enable autoscaling for fluentd they will have to do the following steps:

  1. Enable metrics-server dependency
    Note: if metrics-server is already installed , this step is not required

2.Enable autoscaling for fluentd

Testing performed
  • ci/build.sh
  • Redeploy fluentd and fluentd-events pods
  • Confirm events, logs, and metrics are coming in
  • Installed metrics server before running the helm install command and verified that helm install and upgrade are successful

@samjsong
Copy link
Contributor

samjsong commented Jan 9, 2020

Should we include the documentation changes as part of this PR as well?

@vsinghal13
Copy link
Contributor Author

vsinghal13 commented Jan 9, 2020

Should we include the documentation changes as part of this PR as well?

Actually there is an existing documentation PR #329 , which is as per the breaking change, so I did not include it now. Was planning to add this there itself.

@samjsong
Copy link
Contributor

samjsong commented Jan 9, 2020

Hmm, that PR does not include any docs for autoscaling and metrics server, correct?

@vsinghal13
Copy link
Contributor Author

Yes, that PR does not include this as of now.

@vsinghal13 vsinghal13 merged commit 6772e3a into master Jan 9, 2020
@vsinghal13 vsinghal13 deleted the vsinghal-disable-metrics-server-default branch January 9, 2020 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants