This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 101101 'ingester.tokens-file-path' : '/data/tokens' ,
102102 },
103103
104- newIngesterStatefulSet(name, container)::
104+ newIngesterStatefulSet(name, container, with_anti_affinity=true )::
105105 statefulSet.new(name, 3 , [
106106 container + $.core.v1.container.withVolumeMountsMixin([
107107 volumeMount.new('ingester-data' , '/data' ),
119119 statefulSet.mixin.spec.updateStrategy.withType('RollingUpdate' ) +
120120 $.util.configVolumeMount($._config.overrides_configmap, '/etc/cortex' ) +
121121 $.util.podPriority('high' ) +
122- $.util.antiAffinity +
123122 // Parallelly scale up/down ingester instances instead of starting them
124123 // one by one. This does NOT affect rolling updates: they will continue to be
125124 // rolled out one by one (the next pod will be rolled out once the previous is
126125 // ready).
127- statefulSet.mixin.spec.withPodManagementPolicy('Parallel' ),
126+ statefulSet.mixin.spec.withPodManagementPolicy('Parallel' ) +
127+ (if with_anti_affinity then $.util.antiAffinity else {}),
128128
129129 ingester_statefulset: self .newIngesterStatefulSet('ingester' , $.ingester_container),
130130
You can’t perform that action at this time.
0 commit comments