Repository navigation
Description
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
munnerz commentedon Mar 6, 2018
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
scratchwork okay? (I've not much experience running windows containers!)jbiel commentedon Mar 7, 2018
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/windowservercoretags have to be maintained. Unfortunately, Docker on Windows doesn't support thescratchimage.As a short-term fix it'd be nice to be able to add
nodeSelectortags to thecert-manager-acmesolverpods that are created. I'll probably have to hack up a solution for that in order to get our cluster to issue certs.whereisaaron commentedon Mar 10, 2018
@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-acmesolverpods.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!
retest-bot commentedon Sep 3, 2018
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
retest-bot commentedon Oct 3, 2018
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
retest-bot commentedon Nov 3, 2018
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
jetstack-bot commentedon Nov 3, 2018
@retest-bot: Closing this issue.
Details
In response to this:
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.
sedevops commentedon May 16, 2019
Any news on this thread? The
cert-manager-acmesolveris still deployed into the windows node so the certificates couldn't be generatedperosb commentedon Nov 5, 2020
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