Add Pod Anti Affinity (#489)

* Add Pod Anti Affinity
This commit is contained in:
teuto.net Netzdienste GmbH
2019-02-21 16:37:03 +01:00
committed by Sergey Dudoladov
parent 2e9b6533e7
commit 26a7fdfa9f
6 changed files with 73 additions and 2 deletions
+2
View File
@@ -95,6 +95,8 @@ type Config struct {
EnableMasterLoadBalancer bool `name:"enable_master_load_balancer" default:"true"`
EnableReplicaLoadBalancer bool `name:"enable_replica_load_balancer" default:"false"`
CustomServiceAnnotations map[string]string `name:"custom_service_annotations"`
EnablePodAntiAffinity bool `name:"enable_pod_antiaffinity" default:"false"`
PodAntiAffinityTopologyKey string `name:"pod_antiaffinity_topology_key" default:"kubernetes.io/hostname"`
// deprecated and kept for backward compatibility
EnableLoadBalancer *bool `name:"enable_load_balancer"`
MasterDNSNameFormat StringTemplate `name:"master_dns_name_format" default:"{cluster}.{team}.{hostedzone}"`