-
Notifications
You must be signed in to change notification settings - Fork 1
Improve availability of oidc-federation-service #8
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
Open
Michael5601
wants to merge
9
commits into
main
Choose a base branch
from
oidc-federation-high-availability
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+50
−1
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
79c6ba4
add vpa and increment replicas
Michael5601 f5d88b2
spread replicas over multiples zones
Michael5601 08fdad3
read replica count from values file
Michael5601 12dfa99
switch from vpa to hpa
Michael5601 86182dd
allow ingress only from proxy nginx controller
Michael5601 6f88bd1
remove replica directive in deployment as hpa is used
Michael5601 14c1fe1
avoid hardcoding values for hpa
Michael5601 afc1824
make ingress only from proxy optional as the ingress controller is no…
Michael5601 0872e3c
remove unused value
Michael5601 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| apiVersion: autoscaling/v2 | ||
| kind: HorizontalPodAutoscaler | ||
| metadata: | ||
| name: github-oidc-federation | ||
| spec: | ||
| scaleTargetRef: | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| name: github-oidc-federation | ||
| minReplicas: {{ .Values.hpa.minReplicas }} | ||
| maxReplicas: {{ .Values.hpa.maxReplicas }} | ||
| metrics: | ||
| - type: Resource | ||
| resource: | ||
| name: cpu | ||
| target: | ||
| type: Utilization | ||
| averageUtilization: {{ .Values.hpa.cpu.averageUtilization }} | ||
| - type: Resource | ||
| resource: | ||
| name: memory | ||
| target: | ||
| type: Utilization | ||
| averageUtilization: {{ .Values.hpa.memory.averageUtilization }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,17 @@ | ||
| hpa: | ||
| minReplicas: 2 | ||
| maxReplicas: 5 | ||
| cpu: | ||
| averageUtilization: 80 | ||
| memory: | ||
| averageUtilization: 80 | ||
| image: | ||
| repository: europe-docker.pkg.dev/gardener-project/releases/github-oidc-federation | ||
| tag: latest | ||
| ingress: | ||
| annotations: {} | ||
| class: nginx | ||
| hosts: [] | ||
| networkPolicy: | ||
| ingressController: | ||
| enabled: true |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
whenUnsatisfiable: DoNotSchedule- dosn't this mean that when a zone goes down, the replacement pod for the lost replica may fail to schedule because the constraint cannot be satisfied? If so, rather useScheduleAnyway?