Created
January 9, 2022 05:28
-
-
Save umardx/b8ec1ba3abe50728373fc9c47a83eca3 to your computer and use it in GitHub Desktop.
Distribute Pods Evenly Across The Cluster
This file contains 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
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: net-tools | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: net-tools | |
namespace: net-tools | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
type: net-tools | |
template: | |
metadata: | |
labels: | |
type: net-tools | |
spec: | |
topologySpreadConstraints: | |
- maxSkew: 1 | |
topologyKey: kubernetes.io/hostname | |
whenUnsatisfiable: ScheduleAnyway | |
labelSelector: | |
matchLabels: | |
type: net-tools | |
containers: | |
- name: pause | |
image: praqma/network-multitool:c3d4e04 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment