Skip to content

Windows node issues #377

Closed
Closed

Description

@esheris

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

What happened:
I have a hybrid windows/linux kubernetes cluster in azure. I was able to get certmanager itself to run on the linux nodes with a nodeSelector. When I deploy a container to a windows node with an ingress configured to use CM, CM creates a pod named cm-example-domain-com-tls-random. This pod ends up in imagePullBackOff as it seems to be trying to place it on the windows node but the image is linux.
What you expected to happen:
CM to correctly place the pod so it can start
How to reproduce it (as minimally and precisely as possible):
Create a hybrid cluster, install cert-manager into the linux nodes using a nodeSelector. create clusterissuer, create windows deployment/ingress/service/etc with the ingress configured to use the issuer.

Anything else we need to know?:
kubectl describe
Events:
Type Reason Age From Message


Normal Scheduled 6m default-scheduler Successfully assigned <names changed to protect the innocent-tls-tvqx to 11499k8s9011
Normal SuccessfulMountVolume 6m kubelet, 11499k8s9011 MountVolume.SetUp succeeded for volume "default-token-mnx2k"
Normal SandboxChanged 5m (x2 over 6m) kubelet, 11499k8s9011 Pod sandbox changed, it will be killed and re-created.
Warning Failed 5m kubelet, 11499k8s9011 Failed to pull image "quay.io/jetstack/cert-manager-acmesolver:v0.2.3": rpc error: code = Unknown desc = failed to register layer: re-exec error: exit status 1: output: ProcessBaseLayer C:\ProgramData\docker\windowsfilter\31b483a99331bc851ca1a609a3fb34ac34b367bd78e52d7f8e80d0578ea5b5a2: The system cannot find the path specified.
Warning Failed 5m (x3 over 6m) kubelet, 11499k8s9011 Error: ErrImagePull
Warning Failed 5m kubelet, 11499k8s9011 Failed to pull image "quay.io/jetstack/cert-manager-acmesolver:v0.2.3": rpc error: code = Unknown desc = failed to register layer: re-exec error: exit status 1: output: ProcessBaseLayer C:\ProgramData\docker\windowsfilter\49576ff2b6ed85ebd044a018b3975f20c37478c4ada9efc21176f6eb55c63760: The system cannot find the path specified.
Normal Pulling 4m (x4 over 6m) kubelet, 11499k8s9011 pulling image "quay.io/jetstack/cert-manager-acmesolver:v0.2.
3"
Warning Failed 1m (x20 over 5m) kubelet, 11499k8s9011 Error: ImagePullBackOff
Environment:

  • Kubernetes version (use kubectl version):
    Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.0", GitCommit:"925c127ec6b946659ad0fd596fa959be43f0cc05", GitTreeSta
    te:"clean", BuildDate:"2017-12-15T21:07:38Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"windows/amd64"}
    Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeSta
    te:"clean", BuildDate:"2018-02-07T11:55:20Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
  • Cloud provider or hardware configuration**:
    Azure
  • Install tools:
    nginx-ingress
  • Others:

Activity

  1. added
    kind/bug
    on Mar 2, 2018
  2. munnerz commented on Mar 6, 2018

    @munnerz
    Member

    With the new manifest list support in Docker, it'd be awesome to push various archs and os's for at least the acmesolver.

    If we cross compile using go, is there a particular base image we should be using to run the binary, or does scratch work okay? (I've not much experience running windows containers!)

  3. jbiel commented on Mar 7, 2018

    @jbiel

    We're getting our toes wet with a hybrid (Windows/Linux) Kubernetes cluster and just encountered this issue. I haven't used any Docker images that are multi-platform aware, but it's a good idea. It's important to note that (on Windows) host/container OS versions (ltsc2016 or 1709) must match (it's much more strict than Linux in this regard.) There are some exceptions for 1907 Hyper-V hosts, but in general it's a good assumption that containers matching each of the main microsoft/windowservercore tags have to be maintained. Unfortunately, Docker on Windows doesn't support the scratch image.

    Step 1/3 : FROM scratch
    Windows does not support FROM scratch
    

    As a short-term fix it'd be nice to be able to add nodeSelector tags to the cert-manager-acmesolver pods that are created. I'll probably have to hack up a solution for that in order to get our cluster to issue certs.

  4. whereisaaron commented on Mar 10, 2018

    @whereisaaron
    Contributor

    @jbiel you could add a 'taint' to your Windows nodes to only schedule things on those nodes that 'tolerate' Windows. That should achieve your goal even before @munnerz finally capitulates 😄 and lets users add arbitrary annotations/labels/nodeSelectors/tolerations to cert-manager-acmesolver pods.

    I see that 1.10 is adding CRI support for Windows containers, and I think Microsoft in 1709 added support for some Linux networking features needed for k8s networks and Calico. Exciting times!

  5. added
    kind/feature
    area/acme
    and removed
    kind/bug
    on Jun 5, 2018
  6. retest-bot commented on Sep 3, 2018

    @retest-bot

    Issues go stale after 90d of inactivity.
    Mark the issue as fresh with /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.
    If this issue is safe to close now please do so with /close.
    Send feedback to jetstack.
    /lifecycle stale

  7. added
    lifecycle/stale
    on Sep 3, 2018
  8. retest-bot commented on Oct 3, 2018

    @retest-bot

    Stale issues rot after 30d of inactivity.
    Mark the issue as fresh with /remove-lifecycle rotten.
    Rotten issues close after an additional 30d of inactivity.
    If this issue is safe to close now please do so with /close.
    Send feedback to jetstack.
    /lifecycle rotten
    /remove-lifecycle stale

  9. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Oct 3, 2018
  10. retest-bot commented on Nov 3, 2018

    @retest-bot

    Rotten issues close after 30d of inactivity.
    Reopen the issue with /reopen.
    Mark the issue as fresh with /remove-lifecycle rotten.
    Send feedback to jetstack.
    /close

  11. jetstack-bot commented on Nov 3, 2018

    @jetstack-bot
    Contributor

    @retest-bot: Closing this issue.

    Details

    In response to this:

    Rotten issues close after 30d of inactivity.
    Reopen the issue with /reopen.
    Mark the issue as fresh with /remove-lifecycle rotten.
    Send feedback to jetstack.
    /close

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

  12. sedevops commented on May 16, 2019

    @sedevops

    Any news on this thread? The cert-manager-acmesolver is still deployed into the windows node so the certificates couldn't be generated

  13. perosb commented on Nov 5, 2020

    @perosb

    Any news on this thread? The cert-manager-acmesolver is still deployed into the windows node so the certificates couldn't be generated

    Anyone have hints on how this should be solved?

    Edit:

    To update with answer.
    nodeSelector can be set using a podTemplate:
    https://cert-manager.io/docs/configuration/acme/http01/#podtemplate

        solvers:
          - http01:
              ingress:
                class: nginx
                podTemplate:
                  spec:
                    nodeSelector:
                      kubernetes.io/os: linux
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/acmekind/featurelifecycle/rotten

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions