generated from dotnet/new-repo
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
ContainerAppCommand default value is : dotnet $(ContainerWorkingDirectory)$(TargetFileName). It should be dotnet ./$(TargetFileName).
In windows-host-process mode, it shows /app/mydll.dll is not found.
Consider following yaml:
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: myapp
labels:
myapp
spec:
securityContext:
windowsOptions:
hostProcess: true
runAsUserName: "NT AUTHORITY\\Local service"
hostNetwork: true
containers:
- name: test
image: myaspnetapp:latest
workingDir: /hpc/app
env:
- name: PATH
value: C:/hpc/Program Files/dotnet
nodeSelector:
"kubernetes.io/os": windows
temp solution:
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: myapp
labels:
myapp
spec:
securityContext:
windowsOptions:
hostProcess: true
runAsUserName: "NT AUTHORITY\\Local service"
hostNetwork: true
containers:
- name: test
image: myaspnetapp:latest
+ command:
+ - dotnet ./myapp.dll
workingDir: /hpc/app
env:
- name: PATH
value: C:/hpc/Program Files/dotnet
nodeSelector:
"kubernetes.io/os": windows
Metadata
Metadata
Assignees
Labels
No labels