Aldosterone is produced by the zona glomerulosa cells of the adrenal gland in response to:
The effect of aldosterone needs to vary in that in some instances sodium will need to be retained without acting upon potassium while at other times potassium will need to be excreted while sodium balance is maintained:
An excellent review of the actions of aldosterone: Connell JM, Davies E. The new biology of aldosterone. J. Endocrinol. 2005; 186: 1–20.