Problems running windows worker node in kubernetes cluster - mismatched operating system? ...

Is there any way for the UK Prime Minister to make a motion directly dependent on Government confidence?

Crossing US/Canada Border for less than 24 hours

Is it fair for a professor to grade us on the possession of past papers?

Dating a Former Employee

If a VARCHAR(MAX) column is included in an index, is the entire value always stored in the index page(s)?

Is CEO the profession with the most psychopaths?

How to react to hostile behavior from a senior developer?

Can a new player join a group only when a new campaign starts?

Trademark violation for app?

What's the meaning of "fortified infraction restraint"?

8 Prisoners wearing hats

Can anything be seen from the center of the Boötes void? How dark would it be?

How could we fake a moon landing now?

Why are the trig functions versine, haversine, exsecant, etc, rarely used in modern mathematics?

Compare a given version number in the form major.minor.build.patch and see if one is less than the other

Did MS DOS itself ever use blinking text?

Is grep documentation wrong?

Does classifying an integer as a discrete log require it be part of a multiplicative group?

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?

How does the math work when buying airline miles?

What is the meaning of the simile “quick as silk”?

Can melee weapons be used to deliver Contact Poisons?

Is there a kind of relay only consumes power when switching?

Uniqueness of spanning tree on a grid.



Problems running windows worker node in kubernetes cluster - mismatched operating system?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How to install and run docker in windows 10 home edition“read-only file system” error running Docker Toolbox in Windows 7Why am I seeing retransmissions across the network using iperf3?Does Docker EE UCP kubernetes support Ceph RBD storage?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I'm trying to get a windows (server 2019) based docker container running inside a kubernetes cluster, using the mcr.microsoft.com/windows/servercore:1809 image from here



When deploying the container, I'm getting an error that suggests:



The container operating system does not match the host operating system



Having double checked the operating system in both container and host node (which is a windows server 2019 datacenter system), both show the same:



Microsoft Windows [Version 10.0.17763.437]



The docker container runs ok when run directly on the host system (not within the kubernetes cluster)



Any ideas what's going wrong?



Detail from describe pod below.




user@k8s-mstr:~/kube_projects/testdemo-4.1/app$ kubectl -n test describe pod test-7b8d99f8f9-ksnnp
Name: test-7b8d99f8f9-ksnnp
Namespace: test
Priority: 0
PriorityClassName: <none>
Node: wins2019-worker/192.168.1.10
Start Time: Wed, 17 Apr 2019 11:50:00 +0100
Labels: io.kompose.service=test
pod-template-hash=7b8d99f8f9
Annotations: <none>
Status: Pending
IP:
Controlled By: ReplicaSet/test-7b8d99f8f9
Containers:
test:
Container ID:
Image: test:wins19.4.2.1
Image ID:
Port: 8075/TCP
Host Port: 0/TCP
Args:
python
hello.py
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-xtwkj (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
default-token-xtwkj:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-xtwkj
Optional: false
QoS Class: BestEffort
Node-Selectors: kubernetes.io/os=windows
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message

------

Warning FailedScheduling 63s (x5 over 4m12s) default-scheduler 0/3 nodes are available: 1 node(s) had taints that the pod didn't tolerate, 2 node(s) didn't match node selector.
Normal Scheduled 61s default-scheduler Successfully assigned test/test-7b8d99f8f9-ksnnp to wins2019-worker
Warning FailedCreatePodSandBox 56s kubelet, wins2019-worker Failed create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "test-7b8d99f8f9-ksnnp": Error response from daemon: CreateComputeSystem 4e42952b56de687e7c784aa1b72e8f2079ec945fdbea6f5dbe173c7acf1e8fc8: The container operating system does not match the host operating system.
(extra info: {"SystemType":"Container","Name":"4e42952b56de687e7c784aa1b72e8f2079ec945fdbea6f5dbe173c7acf1e8fc8","Owner":"docker","VolumePath":"\\?\Volume{668e77e8-1d2d-46e7-84c1-364be7ad7d68}","IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\ProgramData\docker\windowsfilter\4e42952b56de687e7c784aa1b72e8f2079ec945fdbea6f5dbe173c7acf1e8fc8","Layers":[{"ID":"7f4bd9df-f1ea-5927-bd98-14abd0c7140c","Path":"C:\ProgramData\docker\windowsfilter\6c6b5d97817dbf136d7ec79febda2a3f3397d855fe7d1e933b23728af95b6a0b"},{"ID":"f87834c9-c212-535a-b960-95f16ca44177","Path":"C:\ProgramData\docker\windowsfilter\edd108b444a8be7be8d412a85c762633094daf6c2e97f51e023cab8508cf2a76"},{"ID":"6a0b1067-e6a2-5532-b748-ad376af5862c","Path":"C:\ProgramData\docker\windowsfilter\25a5e85c88cd9d6394752b3d8d6235a3e4a502b2b3864665c16f2a14fab50215"}],"ProcessorWeight":2,"HostName":"test-7b8d99f8f9-ksnnp","HvPartition":false})









share|improve this question





























    0















    I'm trying to get a windows (server 2019) based docker container running inside a kubernetes cluster, using the mcr.microsoft.com/windows/servercore:1809 image from here



    When deploying the container, I'm getting an error that suggests:



    The container operating system does not match the host operating system



    Having double checked the operating system in both container and host node (which is a windows server 2019 datacenter system), both show the same:



    Microsoft Windows [Version 10.0.17763.437]



    The docker container runs ok when run directly on the host system (not within the kubernetes cluster)



    Any ideas what's going wrong?



    Detail from describe pod below.




    user@k8s-mstr:~/kube_projects/testdemo-4.1/app$ kubectl -n test describe pod test-7b8d99f8f9-ksnnp
    Name: test-7b8d99f8f9-ksnnp
    Namespace: test
    Priority: 0
    PriorityClassName: <none>
    Node: wins2019-worker/192.168.1.10
    Start Time: Wed, 17 Apr 2019 11:50:00 +0100
    Labels: io.kompose.service=test
    pod-template-hash=7b8d99f8f9
    Annotations: <none>
    Status: Pending
    IP:
    Controlled By: ReplicaSet/test-7b8d99f8f9
    Containers:
    test:
    Container ID:
    Image: test:wins19.4.2.1
    Image ID:
    Port: 8075/TCP
    Host Port: 0/TCP
    Args:
    python
    hello.py
    State: Waiting
    Reason: ContainerCreating
    Ready: False
    Restart Count: 0
    Environment: <none>
    Mounts:
    /var/run/secrets/kubernetes.io/serviceaccount from default-token-xtwkj (ro)
    Conditions:
    Type Status
    Initialized True
    Ready False
    ContainersReady False
    PodScheduled True
    Volumes:
    default-token-xtwkj:
    Type: Secret (a volume populated by a Secret)
    SecretName: default-token-xtwkj
    Optional: false
    QoS Class: BestEffort
    Node-Selectors: kubernetes.io/os=windows
    Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
    node.kubernetes.io/unreachable:NoExecute for 300s
    Events:
    Type Reason Age From Message

    ------

    Warning FailedScheduling 63s (x5 over 4m12s) default-scheduler 0/3 nodes are available: 1 node(s) had taints that the pod didn't tolerate, 2 node(s) didn't match node selector.
    Normal Scheduled 61s default-scheduler Successfully assigned test/test-7b8d99f8f9-ksnnp to wins2019-worker
    Warning FailedCreatePodSandBox 56s kubelet, wins2019-worker Failed create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "test-7b8d99f8f9-ksnnp": Error response from daemon: CreateComputeSystem 4e42952b56de687e7c784aa1b72e8f2079ec945fdbea6f5dbe173c7acf1e8fc8: The container operating system does not match the host operating system.
    (extra info: {"SystemType":"Container","Name":"4e42952b56de687e7c784aa1b72e8f2079ec945fdbea6f5dbe173c7acf1e8fc8","Owner":"docker","VolumePath":"\\?\Volume{668e77e8-1d2d-46e7-84c1-364be7ad7d68}","IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\ProgramData\docker\windowsfilter\4e42952b56de687e7c784aa1b72e8f2079ec945fdbea6f5dbe173c7acf1e8fc8","Layers":[{"ID":"7f4bd9df-f1ea-5927-bd98-14abd0c7140c","Path":"C:\ProgramData\docker\windowsfilter\6c6b5d97817dbf136d7ec79febda2a3f3397d855fe7d1e933b23728af95b6a0b"},{"ID":"f87834c9-c212-535a-b960-95f16ca44177","Path":"C:\ProgramData\docker\windowsfilter\edd108b444a8be7be8d412a85c762633094daf6c2e97f51e023cab8508cf2a76"},{"ID":"6a0b1067-e6a2-5532-b748-ad376af5862c","Path":"C:\ProgramData\docker\windowsfilter\25a5e85c88cd9d6394752b3d8d6235a3e4a502b2b3864665c16f2a14fab50215"}],"ProcessorWeight":2,"HostName":"test-7b8d99f8f9-ksnnp","HvPartition":false})









    share|improve this question

























      0












      0








      0








      I'm trying to get a windows (server 2019) based docker container running inside a kubernetes cluster, using the mcr.microsoft.com/windows/servercore:1809 image from here



      When deploying the container, I'm getting an error that suggests:



      The container operating system does not match the host operating system



      Having double checked the operating system in both container and host node (which is a windows server 2019 datacenter system), both show the same:



      Microsoft Windows [Version 10.0.17763.437]



      The docker container runs ok when run directly on the host system (not within the kubernetes cluster)



      Any ideas what's going wrong?



      Detail from describe pod below.




      user@k8s-mstr:~/kube_projects/testdemo-4.1/app$ kubectl -n test describe pod test-7b8d99f8f9-ksnnp
      Name: test-7b8d99f8f9-ksnnp
      Namespace: test
      Priority: 0
      PriorityClassName: <none>
      Node: wins2019-worker/192.168.1.10
      Start Time: Wed, 17 Apr 2019 11:50:00 +0100
      Labels: io.kompose.service=test
      pod-template-hash=7b8d99f8f9
      Annotations: <none>
      Status: Pending
      IP:
      Controlled By: ReplicaSet/test-7b8d99f8f9
      Containers:
      test:
      Container ID:
      Image: test:wins19.4.2.1
      Image ID:
      Port: 8075/TCP
      Host Port: 0/TCP
      Args:
      python
      hello.py
      State: Waiting
      Reason: ContainerCreating
      Ready: False
      Restart Count: 0
      Environment: <none>
      Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-xtwkj (ro)
      Conditions:
      Type Status
      Initialized True
      Ready False
      ContainersReady False
      PodScheduled True
      Volumes:
      default-token-xtwkj:
      Type: Secret (a volume populated by a Secret)
      SecretName: default-token-xtwkj
      Optional: false
      QoS Class: BestEffort
      Node-Selectors: kubernetes.io/os=windows
      Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
      node.kubernetes.io/unreachable:NoExecute for 300s
      Events:
      Type Reason Age From Message

      ------

      Warning FailedScheduling 63s (x5 over 4m12s) default-scheduler 0/3 nodes are available: 1 node(s) had taints that the pod didn't tolerate, 2 node(s) didn't match node selector.
      Normal Scheduled 61s default-scheduler Successfully assigned test/test-7b8d99f8f9-ksnnp to wins2019-worker
      Warning FailedCreatePodSandBox 56s kubelet, wins2019-worker Failed create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "test-7b8d99f8f9-ksnnp": Error response from daemon: CreateComputeSystem 4e42952b56de687e7c784aa1b72e8f2079ec945fdbea6f5dbe173c7acf1e8fc8: The container operating system does not match the host operating system.
      (extra info: {"SystemType":"Container","Name":"4e42952b56de687e7c784aa1b72e8f2079ec945fdbea6f5dbe173c7acf1e8fc8","Owner":"docker","VolumePath":"\\?\Volume{668e77e8-1d2d-46e7-84c1-364be7ad7d68}","IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\ProgramData\docker\windowsfilter\4e42952b56de687e7c784aa1b72e8f2079ec945fdbea6f5dbe173c7acf1e8fc8","Layers":[{"ID":"7f4bd9df-f1ea-5927-bd98-14abd0c7140c","Path":"C:\ProgramData\docker\windowsfilter\6c6b5d97817dbf136d7ec79febda2a3f3397d855fe7d1e933b23728af95b6a0b"},{"ID":"f87834c9-c212-535a-b960-95f16ca44177","Path":"C:\ProgramData\docker\windowsfilter\edd108b444a8be7be8d412a85c762633094daf6c2e97f51e023cab8508cf2a76"},{"ID":"6a0b1067-e6a2-5532-b748-ad376af5862c","Path":"C:\ProgramData\docker\windowsfilter\25a5e85c88cd9d6394752b3d8d6235a3e4a502b2b3864665c16f2a14fab50215"}],"ProcessorWeight":2,"HostName":"test-7b8d99f8f9-ksnnp","HvPartition":false})









      share|improve this question














      I'm trying to get a windows (server 2019) based docker container running inside a kubernetes cluster, using the mcr.microsoft.com/windows/servercore:1809 image from here



      When deploying the container, I'm getting an error that suggests:



      The container operating system does not match the host operating system



      Having double checked the operating system in both container and host node (which is a windows server 2019 datacenter system), both show the same:



      Microsoft Windows [Version 10.0.17763.437]



      The docker container runs ok when run directly on the host system (not within the kubernetes cluster)



      Any ideas what's going wrong?



      Detail from describe pod below.




      user@k8s-mstr:~/kube_projects/testdemo-4.1/app$ kubectl -n test describe pod test-7b8d99f8f9-ksnnp
      Name: test-7b8d99f8f9-ksnnp
      Namespace: test
      Priority: 0
      PriorityClassName: <none>
      Node: wins2019-worker/192.168.1.10
      Start Time: Wed, 17 Apr 2019 11:50:00 +0100
      Labels: io.kompose.service=test
      pod-template-hash=7b8d99f8f9
      Annotations: <none>
      Status: Pending
      IP:
      Controlled By: ReplicaSet/test-7b8d99f8f9
      Containers:
      test:
      Container ID:
      Image: test:wins19.4.2.1
      Image ID:
      Port: 8075/TCP
      Host Port: 0/TCP
      Args:
      python
      hello.py
      State: Waiting
      Reason: ContainerCreating
      Ready: False
      Restart Count: 0
      Environment: <none>
      Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-xtwkj (ro)
      Conditions:
      Type Status
      Initialized True
      Ready False
      ContainersReady False
      PodScheduled True
      Volumes:
      default-token-xtwkj:
      Type: Secret (a volume populated by a Secret)
      SecretName: default-token-xtwkj
      Optional: false
      QoS Class: BestEffort
      Node-Selectors: kubernetes.io/os=windows
      Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
      node.kubernetes.io/unreachable:NoExecute for 300s
      Events:
      Type Reason Age From Message

      ------

      Warning FailedScheduling 63s (x5 over 4m12s) default-scheduler 0/3 nodes are available: 1 node(s) had taints that the pod didn't tolerate, 2 node(s) didn't match node selector.
      Normal Scheduled 61s default-scheduler Successfully assigned test/test-7b8d99f8f9-ksnnp to wins2019-worker
      Warning FailedCreatePodSandBox 56s kubelet, wins2019-worker Failed create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "test-7b8d99f8f9-ksnnp": Error response from daemon: CreateComputeSystem 4e42952b56de687e7c784aa1b72e8f2079ec945fdbea6f5dbe173c7acf1e8fc8: The container operating system does not match the host operating system.
      (extra info: {"SystemType":"Container","Name":"4e42952b56de687e7c784aa1b72e8f2079ec945fdbea6f5dbe173c7acf1e8fc8","Owner":"docker","VolumePath":"\\?\Volume{668e77e8-1d2d-46e7-84c1-364be7ad7d68}","IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\ProgramData\docker\windowsfilter\4e42952b56de687e7c784aa1b72e8f2079ec945fdbea6f5dbe173c7acf1e8fc8","Layers":[{"ID":"7f4bd9df-f1ea-5927-bd98-14abd0c7140c","Path":"C:\ProgramData\docker\windowsfilter\6c6b5d97817dbf136d7ec79febda2a3f3397d855fe7d1e933b23728af95b6a0b"},{"ID":"f87834c9-c212-535a-b960-95f16ca44177","Path":"C:\ProgramData\docker\windowsfilter\edd108b444a8be7be8d412a85c762633094daf6c2e97f51e023cab8508cf2a76"},{"ID":"6a0b1067-e6a2-5532-b748-ad376af5862c","Path":"C:\ProgramData\docker\windowsfilter\25a5e85c88cd9d6394752b3d8d6235a3e4a502b2b3864665c16f2a14fab50215"}],"ProcessorWeight":2,"HostName":"test-7b8d99f8f9-ksnnp","HvPartition":false})






      docker windows-server-2019






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 14 hours ago









      tmn103tmn103

      1




      1






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I had missed a key stage in this and hadn't tagged microsoft/nanoserver:1809 as microsoft/nanoserver:latest



          Addressed this, then re-ran .start.ps1 so that kubeletwin/pause image was rebuilt from correct image.



          and then the pod started running without errors






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1426480%2fproblems-running-windows-worker-node-in-kubernetes-cluster-mismatched-operatin%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I had missed a key stage in this and hadn't tagged microsoft/nanoserver:1809 as microsoft/nanoserver:latest



            Addressed this, then re-ran .start.ps1 so that kubeletwin/pause image was rebuilt from correct image.



            and then the pod started running without errors






            share|improve this answer




























              0














              I had missed a key stage in this and hadn't tagged microsoft/nanoserver:1809 as microsoft/nanoserver:latest



              Addressed this, then re-ran .start.ps1 so that kubeletwin/pause image was rebuilt from correct image.



              and then the pod started running without errors






              share|improve this answer


























                0












                0








                0







                I had missed a key stage in this and hadn't tagged microsoft/nanoserver:1809 as microsoft/nanoserver:latest



                Addressed this, then re-ran .start.ps1 so that kubeletwin/pause image was rebuilt from correct image.



                and then the pod started running without errors






                share|improve this answer













                I had missed a key stage in this and hadn't tagged microsoft/nanoserver:1809 as microsoft/nanoserver:latest



                Addressed this, then re-ran .start.ps1 so that kubeletwin/pause image was rebuilt from correct image.



                and then the pod started running without errors







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 14 hours ago









                tmn103tmn103

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1426480%2fproblems-running-windows-worker-node-in-kubernetes-cluster-mismatched-operatin%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                    Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

                    Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...