Federated Deployment
Federated deployments are a little smarter. When you create a federated deployment with X replicas and you have N clusters, the replicas will be distributed evenly between the clusters by default. If you have 3 clusters and the federated deployment has 15 pods, then each cluster will run 5 replicas. As with other federated resources, the control plane will store the federated deployment with 15 replicas and then create 3 deployments (1 for each cluster) with 5 replicas each. You can control the number of replicas per cluster by adding an annotation: federation.kubernetes.io/deployment-preferences. Federated deployment is still in Alpha as of Kubernetes 1.10. In the future, the annotation will become a proper field in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access