It did not. It started two independent single threads.
Also, Windows is a terrible host for workload like Kubernetes. Microsoft themselves don't use it. They bought flatcar Linux for that, which is a distro meant specifically to run Kubernetes and nothing else.
There are million ways to enforce such a limitation. But here, you are in a TrueNAS forum. Neither Windows nor Kubernetes...
then why can't it run 10 independent single threads? and why in a virtual machine the same process is successfully split into many threads? I understand that this is not a question for TrueNas, but perhaps you know the answer?
In addition, when I start this application, 2 folders are created in the docker container; in one of them, a configuration file is created; this file contains some settings for launching the application, but not all. For example, there is no CPU Limit. But there is a strange parameter CPU Shares = 2, can this parameter affect the load of threads/cores? and if so, where can I set this parameter? and in general, where does Kubernetes store application launch parameters?
I requested container details:
k3s kubectl get pod Wine-docker-ix-chart-98c67b8d-jk87p --output=yaml --namespace=ix-wine-docker
but there is no CPU Limit in the properties, although I set this property = 16000m, I tried setting other values, but this property is not displayed in the pod properties:
spec:
containers:
- env:
- name: RDP_SERVER
value: "yes"
- name: USER_HOME
value: /mnt/wine
- name: USER_UID
value: "568"
image: scottyhardy/docker-wine:latest
imagePullPolicy: IfNotPresent
name: ix-chart
resources:
limits:
amd.com/gpu: "1"
gpu.intel.com/i915: "0"
nvidia.com/gpu: "0"
requests:
amd.com/gpu: "1"
gpu.intel.com/i915: "0"
nvidia.com/gpu: "0"