mongodb on kubernetes user and password Authentication failed

Solution 1:

You pass BASE64 encoded strings

db.auth('dGVzdA==','UGlvdF8xMjM=')

must be

db.auth('test','Piot_123')

(and change your password as soon as possible, because now it is public)