I tried the below steps, and all the pods get terminated and leadership was moved to the new pods correctly.
``` juju deploy postgresql-k8s juju deploy mattermost-k8s juju relate mattermost-k8s postgresql-k8s:db juju scale-application mattermost-k8s 6
mkubectl -nt1 delete pods -l app.kubernetes.io/name=mattermost-k8s mkubectl -nt1 delete pods -l app.kubernetes.io/name=mattermost-k8s mkubectl -nt1 delete pods -l app.kubernetes.io/name=mattermost-k8s
```
I tried the below steps, and all the pods get terminated and leadership was moved to the new pods correctly.
```
juju deploy postgresql-k8s
juju deploy mattermost-k8s
juju relate mattermost-k8s postgresql-k8s:db
juju scale-application mattermost-k8s 6
mkubectl -nt1 delete pods -l app.kubernetes. io/name= mattermost- k8s io/name= mattermost- k8s io/name= mattermost- k8s
mkubectl -nt1 delete pods -l app.kubernetes.
mkubectl -nt1 delete pods -l app.kubernetes.
```