Closed geffzhang closed 5 years ago
Does the published application work outside of docker?
the published application work outside of docker, only crash in k8s
now https://github.com/dotnet/dotnet-docker/blob/master/samples/dotnetapp/dotnet-docker-selfcontained.md with selfcontained docker,Give 2G memory or did it happen OOMKilled
PS C:\Users\geffzhang> kubectl describe pod/weyhdauthserver-7c9d48d987-thp98 -n dev
Name: weyhdauthserver-7c9d48d987-thp98
Namespace: dev
Node: 10.0.0.17/10.0.0.17
Start Time: Mon, 01 Jul 2019 10:37:11 +0800
Labels: pod-template-hash=3758048543
qcloud-app=weyhdauthserver
Annotations:
Normal Scheduled 4m default-scheduler Successfully assigned weyhdauthserver-7c9d48d987-thp98 to 10.0.0.17 Normal SuccessfulMountVolume 4m kubelet, 10.0.0.17 MountVolume.SetUp succeeded for volume "localtime" Normal SuccessfulMountVolume 4m kubelet, 10.0.0.17 MountVolume.SetUp succeeded for volume "config-volumes" Normal SuccessfulMountVolume 4m kubelet, 10.0.0.17 MountVolume.SetUp succeeded for volume "default-token-5rc6z" Normal Pulling 4m kubelet, 10.0.0.17 pulling image "hub.tencentyun.com/weyhd/weyhdauthserver:20190701022301" Normal Pulled 4m kubelet, 10.0.0.17 Successfully pulled image "hub.tencentyun.com/weyhd/weyhdauthserver:20190701022301" Normal Created 1m (x2 over 4m) kubelet, 10.0.0.17 Created container Normal Pulled 1m kubelet, 10.0.0.17 Container image "hub.tencentyun.com/weyhd/weyhdauthserver:20190701022301" already present on machine Normal Started 1m (x2 over 4m) kubelet, 10.0.0.17 Started container
Maybe it's about it. https://github.com/dotnet/coreclr/issues/18044
@geffzhang I tried a 2.2 application in docker and I'm unable to reproduce it. Would you be able to provide a minimal sample that reproduces the issue?
@geffzhang feel free to reopen once you have more details to share.
I have .net core 2.2.0 installed and I'm trying to run the published docker of my asp.net core mvc application from the deployment folder of the same PC I'm publishing from using Visual Studio 2019.
When I go to run it with k8s , the project starts and spins up the webserver on my 80 port as expected, but when I access the server Kestrel spits out an error message:
this is dockerfile: