Skip to content

Ingress not visible immediately #24

Closed

Description

@grantr

On a relatively new cluster (less than an hour old), I ran the demo with bazel run sample/demo/helloworld:everything.apply. Everything appeared to work, except the ingress did not appear in kubectl get ingress immediately. It took at least 15 seconds to show in that list (I checked a minute later and it was there). Statuses of the RevisionTemplate and Revision were as expected. Logs show that the ingress was created immediately:

I0129 19:00:36.153595       1 controller.go:278] Running reconcile ElaService for elaservice-example
&{TypeMeta:{Kind: APIVersion:} ObjectMeta:{Name:elaservice-example GenerateName: Namespace:default SelfLink:/apis/elafros.dev/v1alpha1/namespaces/default/elaservices/elaservice-example UID:b06c282d-0526-11e8-bfae-42010af00290 ResourceVersion:1228 Generation:0 CreationTimestamp:2018-01-29 19:00:36 +0000 UTC DeletionTimestamp:<nil> DeletionGracePeriodSeconds:<nil> Labels:map[] Annotations:map[kubectl.kubernetes.io/last-applied-configuration:{"apiVersion":"elafros.dev/v1alpha1","kind":"ElaService","metadata":{"annotations":{},"name":"elaservice-example","namespace":"default"},"spec":{"domainSuffix":"demo.googlecustomer.net","rollout":{"traffic":[{"percent":100,"revisionTemplate":"revisiontemplate-example"}]}}}
] OwnerReferences:[] Initializers:nil Finalizers:[] ClusterName:} Spec:{DomainSuffix:demo.googlecustomer.net ServiceType: Rollout:{Traffic:[{Name: Revision: RevisionTemplate:revisiontemplate-example Percent:100}]} Current: Next: RolloutPercentToNext:0 ForceReconcile:} Status:{Current: RolloutPercentage: Next: Conditions:[]}}
2018/01/29 19:00:36 Creating/Updating placeholder k8s services
2018/01/29 19:00:36 Created service: "elaservice-example-service"
2018/01/29 19:00:36 Creating or updating ingress rule
2018/01/29 19:00:36 Created ingress "elaservice-example-ela-ingress"
2018/01/29 19:00:36 Creating istio route rules
...

Once the ingress was created, there were no events attached to it:

Name:             elaservice-example-ela-ingress
Namespace:        default
Address:          35.227.54.4
Default backend:  default-http-backend:80 (10.28.0.8:8080)
Rules:
  Host                     Path  Backends
  ----                     ----  --------
  demo.googlecustomer.net  
                              elaservice-example-service:http (<none>)
Annotations:
Events:  <none>

During the period of invisibility, I only tried listing all ingresses; I didn't try to get the ingress by name.

Nobody else has seen this behavior. Even if GKE was experiencing delays attaching IPs, we'd expect the resource to appear in the list immediately.

Activity

  1. added
    kind/feature
    on Feb 3, 2018
  2. mchmarny commented on Feb 5, 2018

    @mchmarny
    Contributor

    I'm not able to replicate this, kubectl get ing lists new ingress service right after deploying sample. @grantr can you check if the original issue is still there with the latest builds?

  3. mattmoor commented on Feb 8, 2018

    @mattmoor
    Contributor

    I believe this is because the latency is in creating a GCP load balancer, and subsequent Ingress use the same external IP (so it's faster).

  4. added
    area/API
    on Mar 15, 2018
  5. mattmoor commented on Mar 15, 2018

    @mattmoor
    Contributor

    I think we want to add a watch of the Route controller before we declare the Route ready.

  6. added this to the milestone on Apr 3, 2018
  7. mattmoor commented on Apr 11, 2018

    @mattmoor
    Contributor

    @tcnghia the linked PR mentions that it partially fixes this. Can you please spell out what work is remaining?

  8. tcnghia commented on Apr 13, 2018

    @tcnghia
    Contributor

    The Ready Status that we added for Route is sufficient for the client to wait for the IP address, they don't need to rely on seeing the Ingress to do the wait.

    However it would be nicer to have the Ingress appear faster. I am not sure if this is something we can do on our side (i.e. do we have a bug that causes Ingress to appear later than it should?). So the remaining work is to figure out if we do have such bug and fix it.

  9. mattmoor commented on Apr 13, 2018

    @mattmoor
    Contributor

    Ah, let's close this and open a new issue to track the second issue?

    I think the root of what prompted this issue has been resolved (and thus the M4 scoped portion).

    I think faster ingress is more aspirational (not M4) and the path unclear.

  10. tcnghia commented on Apr 13, 2018

    @tcnghia
    Contributor

    I think faster ingress is more aspirational (not M4) and the path unclear.

    Yes, that sums it up correctly. Closing SGTM.

  11. added a commit that references this issue on Jan 14, 2019
  12. added a commit that references this issue on Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/APIarea/networkingkind/feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions