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 HPA and PDB #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tiwarisanjay
Copy link

@tiwarisanjay tiwarisanjay commented Nov 4, 2022

What does this PR do?

Adding HorizontalPodAutoscaler and Disruption Budget for the Application

Where should the reviewer start?

https://github.com/cloudability/metrics-agent/tree/master/charts/metrics-agent
added :
- pdb.yaml
- hpa.yaml
update:
- values.yaml with pdb and hap. By default both are disabled with false value so no change and can be enabled with true value

How should this be manually tested?

Command to see the resources

 helm template cloudability  . -f values.yaml --dry-run | more

Any background context you want to provide?

We are creating our own helm chart but would like to use the public one so adding all our new features to public helm charts for everyones benefits.

What picture best describes this PR (optional but encouraged)?

Adding HorizontalPodAutoscaler and Disruption Budget for the Application

What are the relevant Github Issues?

No issue

Developer Done List

  • [ YES] Tests Added/Updated
  • [ NO] Updated README.md
  • Verified backward compatible
  • Verified database migrations will not be catastrophic
  • [ YES] Considered Security, Availability and Confidentiality

For the Reviewer:

Just HPA and PDB's are added so no functionality change. Everything else will be same.

By approving this PR, the reviewer acknowledges that they have checked all items in this done list.

Reviewer/Approval Done List

  • Tests Pass Locally
  • CI Build Passes
  • Verified README.md is updated
  • Verified changes are backward compatible
  • Reviewed impact to Security, Availability and Confidentiality (if issue found, add comments and request changes)

@CLAassistant
Copy link

CLAassistant commented Nov 4, 2022

CLA assistant check
All committers have signed the CLA.

@sonarcloud
Copy link

sonarcloud bot commented Nov 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@tiwarisanjay
Copy link
Author

tiwarisanjay commented Nov 4, 2022

@apptiopzuo @daniel-spray
Could you please check and approve. Just adding HPA and PDB for helm charts.

@apptiopzuo
Copy link
Collaborator

@tiwarisanjay: Metrics agent doesn't support running more than one pod at this time.

@tiwarisanjay
Copy link
Author

@apptiopzuo So how it supports high availability? One pod can easily go down if one zone is bad.

@apptiopzuo
Copy link
Collaborator

@apptiopzuo So how it supports high availability? One pod can easily go down if one zone is bad.

You are right. We will need evaluate how to support the HA from the design.

@tiwarisanjay
Copy link
Author

@apptiopzuo You can add redis in front. Check ArgoCD HA

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.

3 participants