i am getting the error below .How can i handle it ?
I tried to execute voting-webapp on google cloud .Everything went fine except postgres pod is going to error state .
i checked logs .
satyam_saty143@cloudshell:~/K8s/example-voting-app-kub (innate-buckeye-276109)$ kubectl logs postgres-pod
Error: Database is uninitialized and superuser password is not specified.
You must specify POSTGRES_PASSWORD to a non-empty value for the
superuser. For example, “-e POSTGRES_PASSWORD=password” on “docker run”.
You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all connections without a password. This is *not* recommended. See PostgreSQL documentation about "trust":
please help how to fix it .