How to make kubernetes scale up/down of statefulset pod, which client-python api calls needs to be use.
found the answer using patch_namespaced_stateful_set & patch_namespaced_stateful_set_status api, need to pass body1 = {"spec":{"replicas":no.of replica}}, hence closing
Most helpful comment
found the answer using
patch_namespaced_stateful_set&patch_namespaced_stateful_set_statusapi, need to pass body1 = {"spec":{"replicas":no.of replica}}, hence closing