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
@@ -60,6 +60,8 @@ type KubernetesMetaConfiguration struct {
// TODO: use namespacedname
PodEnvironmentConfigMap string `json:"pod_environment_configmap,omitempty"`
PodPriorityClassName string `json:"pod_priority_class_name,omitempty"`
EnablePodAntiAffinity bool `json:"enable_pod_antiaffinity" default:"false"`
PodAntiAffinityTopologyKey string `name:"pod_antiaffinity_topology_key" default:"kubernetes.io/hostname"`
}
// PostgresPodResourcesDefaults defines the spec of default resources