New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when installing Istio for Knative #90
Comments
@duglin I believe this is just standard k8s behavior: https://github.com/kubernetes/kubernetes/blob/6902f3112d98eb6bd0894886ff9cd3fbd03a7f79/staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go#L253 I'll do some more research, I have for sure ran Istio on k3s before. |
yeah, I'm trying to understand why I don't see this on my other clusters when it seems like I should. I don't see any obvious flag to disable this check either.... very odd |
@duglin Have you tried this I believe minikube might be similar to k3s. I used this one and managed to launch it. |
I am unable to reproduce the Step 1 failure on 0.1.0 or the newest RC. The only message I see on Step 1 is:
And when installing Knative Step 2:
All of the pods start except a few:
This is on a DigitalOcean Ubuntu 18.04 droplet. Could you provide more information on your setup @duglin? |
just rerun the kubectl cmd again when you see I was running this on my macbook pro 13", ubuntu 15.10 VM, Vmware Fusion. |
Just tried it again and I see it.
And that ran ok, no errors/issues. Then I ran:
and I see the errors in the first window - the k3s server output. |
Thanks for the info, I am able to reproduce @duglin. The Are you able to verify that istio-system/svclb-istio-ingressgateway is successfully created on other k8s systems? I tried on an RKE system and |
@erikwilson no I don't see that one, but I do see istio-system/istio-ingressgateway-84b89d647f-xqmkx on k3s and istio-system/istio-ingressgateway-84b89d647f-ggbdr on my IKS cluster. Where do you see the svclb.... one in the yamls? I don't see that. |
I don't think it is in the yaml, from the log it appears that istio-system/istio-ingressgateway is trying to create istio-system/svclb-istio-ingressgateway but it is unable to do so. I think k3s is making the error more visible here, but the same thing is happening on other k8s clusters. |
Sorry, we are actually creating something with the svclb- prefix: https://github.com/rancher/k3s/blob/master/pkg/servicelb/controller.go#L213 But to get a better idea on what is happening with the load balancer you can use a command like |
I do see that it is "pending" for K3s, but for IKS it is not, it has an IP assigned. Could it be that K3s, while creating the LB/external-IP is creating a new Kube resource and that name is too long? |
If a port name is longer than 15 characters we are unable to create the associated service load balancer containers. Use our own short name of `lb-port-{port}` to avoid naming issues. For k3s-io/issues/90
@duglin it is related to the naming of the ports, I have a PR in to use shorter port names. Istio will try to use the same ports as the traefik load balancer, so I removed the traefik service like
There may still be some issues with the missing autoscaling/v2beta1 HorizontalPodAutoscaler tho. |
It is easy to update istio.yaml to use autoscaling/v2beta2, still seeing the CrashLoopBackOff errors with Knative tho. |
The load balancer issue related to istio has been fixed, but there is probably more stuff to figure out. Perhaps it is best to open new issues for Knative or other istio stuff so we can close out this port naming problem. |
Getting closer... now I get this:
I believe it's because K3s has apiversions:
but not |
We try to remove old or obsolete API versions, so |
The problem is that's under Istio's control. @linsun do you know if Istio can (or will) upgrade to v2beta2 any time soon? |
Thank you for reporting this @duglin, I am closing out this issue for the service load balancer port name fix and have opened up a few more regarding autoscaling/v2beta2 and knative errors. |
How this was resolved ? I am also facing the same for the activator and dispatcher. |
There are still issues with install Knative that are being tracked at /issues/286, @puneetmathur-87. Although those errors are for Knative v0.4.0 there are still issues with v0.5.0 that may be related to permission changes in Kubernetes v1.14, the changelog provides some potential work-arounds that I have not tried yet. |
Describe the bug
When installing Istio as part of Knative, I see error like this show up in the k3s console:
I can't seem to reproduce this on my other K8s type of clusters (IKS and
hack/local-up-cluster.sh
). Does K3s introduce some new restrictions in this space?To Reproduce
Steps to reproduce the behavior:
step 1
Expected behavior
No errors on the K3s console
The text was updated successfully, but these errors were encountered: