Hello @Tomislav_Plavcic, I followed your steps exactly and still didn’t see the “horizons” fields in rs.conf().
Another “interesting” observation is that if I try to modify my PerconaServerMongoDB resource with kubectl instead of helm, passing in the modified official manifest “https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/v1.15.0/deploy/cr.yaml” to enable “splitHorizons”, “kubectl -n -f cr.yaml” fails with output shown below.
strict decoding error: unknown field “spec.replsets[0].splitHorizons”
Some decoder “somewhe” doesn’t seem to like “splitHorizons” field name…
[root@adevxp035-c1n1 percona]# kubectl -n percona apply -f percona-db-manifs.1.15.0-mod2.yaml
The request is invalid: patch: Invalid value: “{"apiVersion":"psmdb.percona.com/v1","kind":"PerconaServerMongoDB","metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"psmdb.percona.com/v1\",\"kind\":\"PerconaServerMongoDB\",\"metadata\":{\"annotations\":{},\"finalizers\":[\"delete-psmdb-pods-in-order\"],\"name\":\"db-psmdb-db\",\"namespace\":\"percona\"},\"spec\":{\"allowUnsafeConfigurations\":false,\"backup\":{\"enabled\":false,\"image\":\"percona/percona-backup-mongodb:2.3.0\",\"serviceAccountName\":\"percona-server-mongodb-operator\"},\"crVersion\":\"1.15.0\",\"image\":\"percona/percona-server-mongodb:6.0.9-7\",\"imagePullPolicy\":\"Always\",\"pmm\":{\"enabled\":false,\"image\":\"percona/pmm-client:2.39.0\",\"serverHost\":\"monitoring-service\"},\"replsets\":[{\"affinity\":{\"antiAffinityTopologyKey\":\"kubernetes.io/hostname\"},\"arbiter\":{\"affinity\":{\"antiAffinityTopologyKey\":\"kubernetes.io/hostname\"},\"enabled\":false,\"resources\":{\"limits\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"},\"requests\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"}},\"size\":1},\"expose\":{\"enabled\":true,\"exposeType\":\"ClusterIP\"},\"name\":\"rs0\",\"nonvoting\":{\"affinity\":{\"antiAffinityTopologyKey\":\"kubernetes.io/hostname\"},\"enabled\":false,\"podDisruptionBudget\":{\"maxUnavailable\":1},\"resources\":{\"limits\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"},\"requests\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"}},\"size\":3,\"volumeSpec\":{\"persistentVolumeClaim\":{\"resources\":{\"requests\":{\"storage\":\"3Gi\"}}}}},\"podDisruptionBudget\":{\"maxUnavailable\":1},\"resources\":{\"limits\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"},\"requests\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"}},\"size\":3,\"splitHorizons\":{\"db-psmdb-db-rs0-0\":{\"external\":\"rs0-0.mycluster.xyz:27017\"},\"db-psmdb-db-rs0-1\":{\"external\":\"rs0-1.mycluster.xyz:27017\"},\"db-psmdb-db-rs0-2\":{\"external\":\"rs0-2.mycluster.xyz:27017\"}},\"volumeSpec\":{\"persistentVolumeClaim\":{\"resources\":{\"requests\":{\"storage\":\"3Gi\"}}}}}],\"secrets\":{\"encryptionKey\":\"db-psmdb-db-mongodb-encryption-key\",\"users\":\"db-psmdb-db-secrets\"},\"sharding\":{\"configsvrReplSet\":{\"affinity\":{\"antiAffinityTopologyKey\":\"kubernetes.io/hostname\"},\"expose\":{\"enabled\":false,\"exposeType\":\"ClusterIP\"},\"podDisruptionBudget\":{\"maxUnavailable\":1},\"resources\":{\"limits\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"},\"requests\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"}},\"size\":3,\"volumeSpec\":{\"persistentVolumeClaim\":{\"resources\":{\"requests\":{\"storage\":\"3Gi\"}}}}},\"enabled\":false,\"mongos\":{\"affinity\":{\"antiAffinityTopologyKey\":\"kubernetes.io/hostname\"},\"expose\":{\"exposeType\":\"ClusterIP\"},\"podDisruptionBudget\":{\"maxUnavailable\":1},\"resources\":{\"limits\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"},\"requests\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"}},\"size\":3}},\"updateStrategy\":\"SmartUpdate\",\"upgradeOptions\":{\"apply\":\"disabled\",\"schedule\":\"0 2 * * *\",\"setFCV\":false,\"versionServiceEndpoint\":\"https://check.percona.com\"}}}\n"},"creationTimestamp":"2023-10-13T20:59:53Z","finalizers":["delete-psmdb-pods-in-order"],"generation":1,"managedFields":[{"apiVersion":"psmdb.percona.com/v1","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/last-applied-configuration":{}},"f:finalizers":{".":{},"v:\"delete-psmdb-pods-in-order\"":{}}},"f:spec":{".":{},"f:allowUnsafeConfigurations":{},"f:backup":{".":{},"f:enabled":{},"f:image":{},"f:serviceAccountName":{}},"f:crVersion":{},"f:image":{},"f:imagePullPolicy":{},"f:pmm":{".":{},"f:enabled":{},"f:image":{},"f:serverHost":{}},"f:replsets":{},"f:secrets":{".":{},"f:encryptionKey":{},"f:users":{}},"f:sharding":{".":{},"f:configsvrReplSet":{".":{},"f:affinity":{".":{},"f:antiAffinityTopologyKey":{}},"f:expose":{".":{},"f:enabled":{},"f:exposeType":{}},"f:podDisruptionBudget":{".":{},"f:maxUnavailable":{}},"f:resources":{".":{},"f:limits":{".":{},"f:cpu":{},"f:memory":{}},"f:requests":{".":{},"f:cpu":{},"f:memory":{}}},"f:size":{},"f:volumeSpec":{".":{},"f:persistentVolumeClaim":{".":{},"f:resources":{".":{},"f:requests":{".":{},"f:storage":{}}}}}},"f:enabled":{},"f:mongos":{".":{},"f:affinity":{".":{},"f:antiAffinityTopologyKey":{}},"f:expose":{".":{},"f:exposeType":{}},"f:podDisruptionBudget":{".":{},"f:maxUnavailable":{}},"f:resources":{".":{},"f:limits":{".":{},"f:cpu":{},"f:memory":{}},"f:requests":{".":{},"f:cpu":{},"f:memory":{}}},"f:size":{}}},"f:updateStrategy":{},"f:upgradeOptions":{".":{},"f:apply":{},"f:schedule":{},"f:setFCV":{},"f:versionServiceEndpoint":{}}}},"manager":"kubectl-client-side-apply","operation":"Update","time":"2023-10-13T20:59:53Z"},{"apiVersion":"psmdb.percona.com/v1","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:conditions":{},"f:host":{},"f:mongoImage":{},"f:mongoVersion":{},"f:observedGeneration":{},"f:ready":{},"f:replsets":{".":{},"f:rs0":{".":{},"f:initialized":{},"f:ready":{},"f:size":{},"f:status":{}}},"f:size":{},"f:state":{}}},"manager":"percona-server-mongodb-operator","operation":"Update","subresource":"status","time":"2023-10-13T21:01:14Z"}],"name":"db-psmdb-db","namespace":"percona","resourceVersion":"1210776","uid":"796b42d8-4621-4e56-9de2-4966d14f7eaf"},"spec":{"allowUnsafeConfigurations":false,"backup":{"enabled":false,"image":"percona/percona-backup-mongodb:2.3.0","serviceAccountName":"percona-server-mongodb-operator"},"crVersion":"1.15.0","image":"percona/percona-server-mongodb:6.0.9-7","imagePullPolicy":"Always","pmm":{"enabled":false,"image":"percona/pmm-client:2.39.0","serverHost":"monitoring-service"},"replsets":[{"affinity":{"antiAffinityTopologyKey":"kubernetes.io/hostname"},"arbiter":{"affinity":{"antiAffinityTopologyKey":"kubernetes.io/hostname"},"enabled":false,"resources":{"limits":{"cpu":"300m","memory":"0.5G"},"requests":{"cpu":"300m","memory":"0.5G"}},"size":1},"expose":{"enabled":true,"exposeType":"ClusterIP"},"name":"rs0","nonvoting":{"affinity":{"antiAffinityTopologyKey":"kubernetes.io/hostname"},"enabled":false,"podDisruptionBudget":{"maxUnavailable":1},"resources":{"limits":{"cpu":"300m","memory":"0.5G"},"requests":{"cpu":"300m","memory":"0.5G"}},"size":3,"volumeSpec":{"persistentVolumeClaim":{"resources":{"requests":{"storage":"3Gi"}}}}},"podDisruptionBudget":{"maxUnavailable":1},"resources":{"limits":{"cpu":"300m","memory":"0.5G"},"requests":{"cpu":"300m","memory":"0.5G"}},"size":3,"splitHorizons":{"db-psmdb-db-rs0-0":{"external":"rs0-0.mycluster.xyz:27017"},"db-psmdb-db-rs0-1":{"external":"rs0-1.mycluster.xyz:27017"},"db-psmdb-db-rs0-2":{"external":"rs0-2.mycluster.xyz:27017"}},"volumeSpec":{"persistentVolumeClaim":{"resources":{"requests":{"storage":"3Gi"}}}}}],"secrets":{"encryptionKey":"db-psmdb-db-mongodb-encryption-key","users":"db-psmdb-db-secrets"},"sharding":{"configsvrReplSet":{"affinity":{"antiAffinityTopologyKey":"kubernetes.io/hostname"},"expose":{"enabled":false,"exposeType":"ClusterIP"},"podDisruptionBudget":{"maxUnavailable":1},"resources":{"limits":{"cpu":"300m","memory":"0.5G"},"requests":{"cpu":"300m","memory":"0.5G"}},"size":3,"volumeSpec":{"persistentVolumeClaim":{"resources":{"requests":{"storage":"3Gi"}}}}},"enabled":false,"mongos":{"affinity":{"antiAffinityTopologyKey":"kubernetes.io/hostname"},"expose":{"exposeType":"ClusterIP"},"podDisruptionBudget":{"maxUnavailable":1},"resources":{"limits":{"cpu":"300m","memory":"0.5G"},"requests":{"cpu":"300m","memory":"0.5G"}},"size":3}},"updateStrategy":"SmartUpdate","upgradeOptions":{"apply":"disabled","schedule":"0 2 * * *","setFCV":false,"versionServiceEndpoint":"https://check.percona.com"}},"status":{"conditions":[{"lastTransitionTime":"2023-10-13T20:59:56Z","status":"True","type":"initializing"},{"lastTransitionTime":"2023-10-13T21:01:08Z","message":"rs0: ready","reason":"RSReady","status":"True","type":"ready"},{"lastTransitionTime":"2023-10-13T21:01:08Z","status":"True","type":"initializing"},{"lastTransitionTime":"2023-10-13T21:01:14Z","status":"True","type":"ready"}],"host":"db-psmdb-db-rs0.percona.svc.cluster.local","mongoImage":"percona/percona-server-mongodb:6.0.9-7","mongoVersion":"6.0.9-7","observedGeneration":1,"ready":3,"replsets":{"rs0":{"initialized":true,"ready":3,"size":3,"status":"ready"}},"size":3,"state":"ready"}}”: strict decoding error: unknown field “spec.replsets[0].splitHorizons”