{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/federation/issues/242","repository_url":"https://api.github.com/repos/kubernetes/federation","labels_url":"https://api.github.com/repos/kubernetes/federation/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/federation/issues/242/comments","events_url":"https://api.github.com/repos/kubernetes/federation/issues/242/events","html_url":"https://github.com/kubernetes/federation/issues/242","id":301882361,"number":242,"title":"Failed to create ingress in cluster: Invalid value: []extensions.IngressRule(nil): either `backend` or `rules` must be specified'","user":{"login":"quinton-hoole","id":10390785,"avatar_url":"https://avatars0.githubusercontent.com/u/10390785?v=4","gravatar_id":"","url":"https://api.github.com/users/quinton-hoole","html_url":"https://github.com/quinton-hoole","followers_url":"https://api.github.com/users/quinton-hoole/followers","following_url":"https://api.github.com/users/quinton-hoole/following{/other_user}","gists_url":"https://api.github.com/users/quinton-hoole/gists{/gist_id}","starred_url":"https://api.github.com/users/quinton-hoole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quinton-hoole/subscriptions","organizations_url":"https://api.github.com/users/quinton-hoole/orgs","repos_url":"https://api.github.com/users/quinton-hoole/repos","events_url":"https://api.github.com/users/quinton-hoole/events{/privacy}","received_events_url":"https://api.github.com/users/quinton-hoole/received_events","type":"User","site_admin":false},"labels":[{"id":735352407,"url":"https://api.github.com/repos/kubernetes/federation/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false},{"id":732647560,"url":"https://api.github.com/repos/kubernetes/federation/labels/priority/important-soon","name":"priority/important-soon","color":"eb6420","default":false},{"id":823621332,"url":"https://api.github.com/repos/kubernetes/federation/labels/priority/needs-investigation","name":"priority/needs-investigation","color":"3281a3","default":false}],"state":"closed","locked":false,"assignee":{"login":"shashidharatd","id":8734900,"avatar_url":"https://avatars3.githubusercontent.com/u/8734900?v=4","gravatar_id":"","url":"https://api.github.com/users/shashidharatd","html_url":"https://github.com/shashidharatd","followers_url":"https://api.github.com/users/shashidharatd/followers","following_url":"https://api.github.com/users/shashidharatd/following{/other_user}","gists_url":"https://api.github.com/users/shashidharatd/gists{/gist_id}","starred_url":"https://api.github.com/users/shashidharatd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shashidharatd/subscriptions","organizations_url":"https://api.github.com/users/shashidharatd/orgs","repos_url":"https://api.github.com/users/shashidharatd/repos","events_url":"https://api.github.com/users/shashidharatd/events{/privacy}","received_events_url":"https://api.github.com/users/shashidharatd/received_events","type":"User","site_admin":false},"assignees":[{"login":"shashidharatd","id":8734900,"avatar_url":"https://avatars3.githubusercontent.com/u/8734900?v=4","gravatar_id":"","url":"https://api.github.com/users/shashidharatd","html_url":"https://github.com/shashidharatd","followers_url":"https://api.github.com/users/shashidharatd/followers","following_url":"https://api.github.com/users/shashidharatd/following{/other_user}","gists_url":"https://api.github.com/users/shashidharatd/gists{/gist_id}","starred_url":"https://api.github.com/users/shashidharatd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shashidharatd/subscriptions","organizations_url":"https://api.github.com/users/shashidharatd/orgs","repos_url":"https://api.github.com/users/shashidharatd/repos","events_url":"https://api.github.com/users/shashidharatd/events{/privacy}","received_events_url":"https://api.github.com/users/shashidharatd/received_events","type":"User","site_admin":false},{"login":"irfanurrehman","id":10027921,"avatar_url":"https://avatars0.githubusercontent.com/u/10027921?v=4","gravatar_id":"","url":"https://api.github.com/users/irfanurrehman","html_url":"https://github.com/irfanurrehman","followers_url":"https://api.github.com/users/irfanurrehman/followers","following_url":"https://api.github.com/users/irfanurrehman/following{/other_user}","gists_url":"https://api.github.com/users/irfanurrehman/gists{/gist_id}","starred_url":"https://api.github.com/users/irfanurrehman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irfanurrehman/subscriptions","organizations_url":"https://api.github.com/users/irfanurrehman/orgs","repos_url":"https://api.github.com/users/irfanurrehman/repos","events_url":"https://api.github.com/users/irfanurrehman/events{/privacy}","received_events_url":"https://api.github.com/users/irfanurrehman/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-03-02T19:42:18Z","updated_at":"2018-05-28T12:15:30Z","closed_at":"2018-03-13T17:42:10Z","author_association":"MEMBER","body":"andrein [1:33 PM]\r\nHi, I finally got federation working on GKE (tested deployments and services) but I’m having trouble with federated ingress. I can create the federated ingress in the control plane, but it doesn’t propagate to the clusters. I get the following errors in the controller-manager logs:\r\n\r\n```\r\nE0228 21:28:35.246698       1 event.go:260] Could not construct reference to: '&v1beta1.Ingress{TypeMeta:v1.TypeMeta{Kind:\"\", APIVersion:\"\"}, ObjectMeta:v1.ObjectMeta{Name:\"hello-server\", GenerateName:\"\", Namespac\r\ne:\"default\", SelfLink:\"\", UID:\"\", ResourceVersion:\"\", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeco\r\nnds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{\"ingress.federation.kubernetes.io/first-cluster\":\"test-eu\", \"kubernetes.io/ingress.global-static-ip-name\":\"federated-ingress\"}, Owner\r\nReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:\"\"}, Spec:v1beta1.IngressSpec{Backend:(*v1beta1.IngressBackend)(nil), TLS:[]v1beta1.IngressTLS(nil),\r\n Rules:[]v1beta1.IngressRule(nil)}, Status:v1beta1.IngressStatus{LoadBalancer:v1.LoadBalancerStatus{Ingress:[]v1.LoadBalancerIngress(nil)}}}' due to: 'selfLink was empty, can't make reference'. Will not report eve\r\nnt: 'Normal' 'CreateInCluster' 'Creating ingress \"default/hello-server\" in cluster test-us'\r\nE0228 21:28:35.250932       1 event.go:260] Could not construct reference to: '&v1beta1.Ingress{TypeMeta:v1.TypeMeta{Kind:\"\", APIVersion:\"\"}, ObjectMeta:v1.ObjectMeta{Name:\"hello-server\", GenerateName:\"\", Namespac\r\ne:\"default\", SelfLink:\"\", UID:\"\", ResourceVersion:\"\", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeco\r\nnds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{\"kubernetes.io/ingress.global-static-ip-name\":\"federated-ingress\", \"ingress.federation.kubernetes.io/first-cluster\":\"test-eu\"}, Owner\r\nReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:\"\"}, Spec:v1beta1.IngressSpec{Backend:(*v1beta1.IngressBackend)(nil), TLS:[]v1beta1.IngressTLS(nil),\r\n Rules:[]v1beta1.IngressRule(nil)}, Status:v1beta1.IngressStatus{LoadBalancer:v1.LoadBalancerStatus{Ingress:[]v1.LoadBalancerIngress(nil)}}}' due to: 'selfLink was empty, can't make reference'. Will not report eve\r\nnt: 'Normal' 'CreateInCluster' 'Creating ingress \"default/hello-server\" in cluster test-eu'\r\nE0228 21:28:35.254593       1 ingress_controller.go:240] Error creating ingress \"default/hello-server\": Ingress.extensions \"hello-server\" is invalid: spec: Invalid value: []extensions.IngressRule(nil): either `bac\r\nkend` or `rules` must be specified\r\nE0228 21:28:35.254646       1 event.go:260] Could not construct reference to: '&v1beta1.Ingress{TypeMeta:v1.TypeMeta{Kind:\"\", APIVersion:\"\"}, ObjectMeta:v1.ObjectMeta{Name:\"hello-server\", GenerateName:\"\", Namespac\r\ne:\"default\", SelfLink:\"\", UID:\"\", ResourceVersion:\"\", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeco\r\nnds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{\"kubernetes.io/ingress.global-static-ip-name\":\"federated-ingress\", \"ingress.federation.kubernetes.io/first-cluster\":\"test-eu\"}, Owner\r\nReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:\"\"}, Spec:v1beta1.IngressSpec{Backend:(*v1beta1.IngressBackend)(nil), TLS:[]v1beta1.IngressTLS(nil),\r\n Rules:[]v1beta1.IngressRule(nil)}, Status:v1beta1.IngressStatus{LoadBalancer:v1.LoadBalancerStatus{Ingress:[]v1.LoadBalancerIngress(nil)}}}' due to: 'selfLink was empty, can't make reference'. Will not report eve\r\nnt: 'Warning' 'AddInClusterFailed' 'Failed to create ingress \"default/hello-server\" in cluster test-eu: Ingress.extensions \"hello-server\" is invalid: spec: Invalid value: []extensions.IngressRule(nil): either `bac\r\nkend` or `rules` must be specified'\r\nE0228 21:28:35.254808       1 ingress_controller.go:864] Failed to execute updates for default/hello-server: Ingress.extensions \"hello-server\" is invalid: spec: Invalid value: []extensions.IngressRule(nil): either\r\n `backend` or `rules` must be specified\r\nE0228 21:28:35.357689       1 ingress_controller.go:240] Error creating ingress \"default/hello-server\": Ingress.extensions \"hello-server\" is invalid: spec: Invalid value: []extensions.IngressRule(nil): either `bac\r\nkend` or `rules` must be specified\r\nE0228 21:28:35.357743       1 event.go:260] Could not construct reference to: '&v1beta1.Ingress{TypeMeta:v1.TypeMeta{Kind:\"\", APIVersion:\"\"}, ObjectMeta:v1.ObjectMeta{Name:\"hello-server\", GenerateName:\"\", Namespac\r\ne:\"default\", SelfLink:\"\", UID:\"\", ResourceVersion:\"\", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeco\r\nnds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{\"kubernetes.io/ingress.global-static-ip-name\":\"federated-ingress\", \"ingress.federation.kubernetes.io/first-cluster\":\"test-eu\"}, Owner\r\nReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:\"\"}, Spec:v1beta1.IngressSpec{Backend:(*v1beta1.IngressBackend)(nil), TLS:[]v1beta1.IngressTLS(nil),\r\n Rules:[]v1beta1.IngressRule(nil)}, Status:v1beta1.IngressStatus{LoadBalancer:v1.LoadBalancerStatus{Ingress:[]v1.LoadBalancerIngress(nil)}}}' due to: 'selfLink was empty, can't make reference'. Will not report eve\r\nnt: 'Warning' 'AddInClusterFailed' 'Failed to create ingress \"default/hello-server\" in cluster test-us: Ingress.extensions \"hello-server\" is invalid: spec: Invalid value: []extensions.IngressRule(nil): either `backend` or `rules` must be specified'\r\n```\r\n\r\nHere is my ingress, and it includes backend.\r\n\r\n```\r\napiVersion: extensions/v1beta1\r\nkind: Ingress\r\nmetadata:\r\n  name: hello-server\r\n  annotations:\r\n    kubernetes.io/ingress.global-static-ip-name: federated-ingress\r\nspec:\r\n  backend:\r\n    serviceName: hello-server\r\n    servicePort: 8080\r\n```"},"comment":{"url":"https://api.github.com/repos/kubernetes/federation/issues/comments/392511437","html_url":"https://github.com/kubernetes/federation/issues/242#issuecomment-392511437","issue_url":"https://api.github.com/repos/kubernetes/federation/issues/242","id":392511437,"user":{"login":"bartimar","id":16442967,"avatar_url":"https://avatars1.githubusercontent.com/u/16442967?v=4","gravatar_id":"","url":"https://api.github.com/users/bartimar","html_url":"https://github.com/bartimar","followers_url":"https://api.github.com/users/bartimar/followers","following_url":"https://api.github.com/users/bartimar/following{/other_user}","gists_url":"https://api.github.com/users/bartimar/gists{/gist_id}","starred_url":"https://api.github.com/users/bartimar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartimar/subscriptions","organizations_url":"https://api.github.com/users/bartimar/orgs","repos_url":"https://api.github.com/users/bartimar/repos","events_url":"https://api.github.com/users/bartimar/events{/privacy}","received_events_url":"https://api.github.com/users/bartimar/received_events","type":"User","site_admin":false},"created_at":"2018-05-28T12:15:30Z","updated_at":"2018-05-28T12:15:30Z","author_association":"NONE","body":"I have the same issue on GKE today. Any progress on this? \r\nAny workarounds I could use? I wanna use NodePorts, not LoadBalancers..."}}
{"actor":{"display_login":"bartimar"}}