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

feat(charts): Add topologySpreadConstraint to whole stack #80

Merged
merged 1 commit into from
Nov 25, 2023

Conversation

InputObject2
Copy link
Contributor

I added to the values.yaml the podDistribution: cluster # can be "spread" or "cluster" field, so you can choose to have kubernetes try to bunch up all your pods together or spread them out on different nodes.

Results for cluster:

> kubectl get pods -owide
NAME                            READY   STATUS    RESTARTS   AGE     IP             NODE                        
sabnzbd-759bc779c-5hfxl         1/1     Running   0          4m19s   10.1.202.171   us20-k8s-blue-master-2135   
transmission-6dd7d76b8f-g6m9g   1/1     Running   0          4m18s   10.1.202.172   us20-k8s-blue-master-2135   
radarr-68f8f8c989-2mm2x         1/1     Running   0          4m12s   10.1.202.173   us20-k8s-blue-master-2135   
sonarr-575bf4d969-vrvml         1/1     Running   0          4m12s   10.1.202.174   us20-k8s-blue-master-2135   
jackett-7c98b9ccfb-fvs5z        1/1     Running   0          4m19s   10.1.202.177   us20-k8s-blue-master-2135              
plex-dfbf9876d-rhbkw            1/1     Running   0          68s     10.1.202.178   us20-k8s-blue-master-2135   

And the same for spread:

> kubectl get pods -owide
NAME                            READY   STATUS    RESTARTS   AGE   IP             NODE                        
sabnzbd-5c45b9f668-4dgzg        1/1     Running   0          67s   10.1.187.90    us20-k8s-blue-node-1002     
transmission-564574ddb4-4kvxq   1/1     Running   0          67s   10.1.95.126    us20-k8s-blue-master-2119   
jackett-5479c5bffc-22tgq        1/1     Running   0          67s   10.1.226.238   us20-k8s-blue-master-6764   
radarr-84cd65f784-97chf         1/1     Running   0          68s   10.1.215.48    us20-k8s-blue-node-5664     
plex-7dc89c94c7-ddwkp           1/1     Running   0          67s   10.1.187.91    us20-k8s-blue-node-1002     
sonarr-6569c67c48-7vjk9         1/1     Running   0          67s   10.1.202.183   us20-k8s-blue-master-2135   

@kubealex
Copy link
Owner

amazing, thank you for the effort @InputObject2!

@kubealex kubealex merged commit 9744331 into kubealex:master Nov 25, 2023
2 checks passed
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.

2 participants