@Mumshad Mannambeth this is what issue i am facing for voting app(Db-Deployment) . . .

om Singh:
@Mumshad Mannambeth this is what issue i am facing for voting app(Db-Deployment)
controlplane $ kubectl -n vote logs worker-565d5465d-jn24c
System.AggregateException: One or more errors occurred. (No such device or address) —> http://System.Net|System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: No such device or address
at http://System.Net|System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)
at http://System.Net|System.Net.Dns.EndGetHostAddresses(IAsyncResult asyncResult)
at http://System.Net|System.Net.Dns.<>c.<GetHostAddressesAsync>b__14_1(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
— End of inner exception stack trace —
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at Npgsql.NpgsqlConnector.Connect(NpgsqlTimeout timeout) at Npgsql.NpgsqlConnector.RawOpen(NpgsqlTimeout timeout) at Npgsql.NpgsqlConnector.Open(NpgsqlTimeout timeout) at Npgsql.ConnectorPool.Allocate(NpgsqlConnection conn, NpgsqlTimeout timeout) at Npgsql.NpgsqlConnection.OpenInternal() at Worker.Program.OpenDbConnection(String connectionString) in /code/src/Worker/Program.cs:line 74 at Worker.Program.Main(String[] args) in /code/src/Worker/Program.cs:line 19 ---&gt; (Inner Exception #0) <http://System.Net|System.Net>.Internals.SocketExceptionFactory+ExtendedSocketException: No such device or address at <http://System.Net|System.Net>.Dns.HostResolutionEndHelper(IAsyncResult asyncResult) at <http://System.Net|System.Net>.Dns.EndGetHostAddresses(IAsyncResult asyncResult) at <http://System.Net|System.Net>.Dns.&lt;&gt;c.&lt;GetHostAddressesAsync&gt;b__14_1(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task`1 promise, Boolean requiresSynchronization)<—

Mumshad Mannambeth:
This is because there are some changes to the postgresql image. We need to pass the username and password for the databaes.

Mumshad Mannambeth:
can you check if the postgresql container is running?

om Singh:
yes its running

om Singh:
getting issue in voting app

om Singh:
sorry worker

om Singh:
controlplane $ kubectl -n vote logs worker-565d5465d-jn24c
System.TimeoutException: The operation has timed out.
at Npgsql.NpgsqlConnector.Connect(NpgsqlTimeout timeout)
at Npgsql.NpgsqlConnector.RawOpen(NpgsqlTimeout timeout)
at Npgsql.NpgsqlConnector.Open(NpgsqlTimeout timeout)
at Npgsql.ConnectorPool.Allocate(NpgsqlConnection conn, NpgsqlTimeout timeout)
at Npgsql.NpgsqlConnection.OpenInternal()
at Worker.Program.OpenDbConnection(String connectionString) in /code/src/Worker/Program.cs:line 74
at Worker.Program.Main(String[] args) in /code/src/Worker/Program.cs:line 19

Mohamed Ayman:
Can you please check this thread as it contains the right steps for deploying the voting
Hope it helps!
https://kodekloudworkspace.slack.com/archives/CHBEF7N4B/p1619690897121500|https://kodekloudworkspace.slack.com/archives/CHBEF7N4B/p1619690897121500