Production stage stuck
-
I am trying to deploy a Dotnet app through gitlab.com. I have specified a Dockerfile and it builds fine. I am not specifying a .gitlab-ci.yml and have enabled auto-DevOps
-
In the production stage logs I see this and it fails after the timeout
Deploying new stable release…
Release “production” does not exist. Installing it now.
- In the k8s pod logs I see this
Jun 07 18:43:12.748 | production-754 | prod: Microsoft.Hosting.Lifetime[0]
Jun 07 18:43:12.748 | production-754 | Now listening on: http://[::]:5000
Jun 07 18:43:12.749 | production-754 | prod: Microsoft.Hosting.Lifetime[0]
Jun 07 18:43:12.749 | production-754 | Application started. Press Ctrl+C to shut down.
Jun 07 18:43:12.749 | production-754 | prod: Microsoft.Hosting.Lifetime[0]
Jun 07 18:43:12.749 | production-754 | Hosting environment: Development
Jun 07 18:43:12.749 | production-754 | prod: Microsoft.Hosting.Lifetime[0]
Jun 07 18:43:12.749 | production-754 | Content root path: /app
Jun 07 18:43:24.164 | production-754 | prod: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Jun 07 18:43:24.164 | production-754 | Request starting HTTP/1.1 GET http://173.42.3.45:5000/
Jun 07 18:43:24.168 | production-754 | : Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Jun 07 18:43:24.168 | production-754 | Failed to determine the https port for redirect.
Jun 07 18:43:24.193 | production-754 | prod: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Jun 07 18:43:24.193 | production-754 | Request finished in 30.0353ms 404
Jun 07 18:43:32.016 | production-754 | prod: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Jun 07 18:43:32.016 | production-754 | Request starting HTTP/1.1 GET http://173.42.3.45:5000/
Jun 07 18:43:32.017 | production-754 | prod: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Jun 07 18:43:32.017 | production-754 | Request finished in 1.3079ms 404
Jun 07 18:43:34.127 | production-754 | prod: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Jun 07 18:43:34.127 | production-754 | Request starting HTTP/1.1 GET http://173.42.3.45:5000/
Jun 07 18:43:34.130 | production-754 | prod: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Jun 07 18:43:34.130 | production-754 | Request finished in 1.8886ms 404
Although the Dotnet App seems to deploy and startup fine, I think some sort of health check is being performed on 5000 I don’t have any API defined on the root and so it returns a 404
When I run the app locally as a Docker run I don’t see the :5000 calls being invoked and so I think this is done by gitllab or k8s (I am new to both by the way!)
Assuming the issue is the 404, is there a way to override the health check URL to say - :5000/health through any environment variable?
Any help is appreciated
Thanks,
Arun