There are two ways of creating a database cluster:
initdb
pg_createcluster
The preferred way in debian is pg_createcluster so that it creates the configuration files in /etc/postgresql/xx and startup and shutdown is handled automatically via systemctl.