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
[Federation] unable to create a federated ingress #39087
Comments
cc @kubernetes/sig-federation-misc |
Federated Ingress currently only works for HTTPS Ingresses. Also, you will need the workaround described here for now - http://kubernetes.io/docs/user-guide/federation/federated-ingress/#known-issue. We plan to fix the firewall issue and that work is being tracked in Issue #37306. |
@madhusudancs even with the workaround, the Ingress controller only gets created in one cluster, which means the HTTPS LB only has one available backend. How do you make it create Ingress controllers in every cluster and have the HTTPS LB treat each cluster as a backend? The Federated Service creates a service in each cluster today, but not Federated Ingress. |
@thesandlord is it possible to share your manifests? |
I'm basically following this blog post. Both server and client are Kubernetes 1.5.1 The issue could be related to #34291, as I didn't specify a nodeport for the service. Deployment: apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: web
spec:
replicas: 6
template:
metadata:
labels:
name: web
spec:
containers:
- name: web
image: gcr.io/<PROJECT_ID>/web:v1
imagePullPolicy: Always
ports:
- containerPort: 3000 Service: apiVersion: v1
kind: Service
metadata:
name: web
spec:
ports:
- port: 80
targetPort: 3000
protocol: TCP
nodePort: 30036
selector:
name: web
type: LoadBalancer Ingress: apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: web
spec:
backend:
serviceName: web
servicePort: 80 |
Quick Update: I am able to manually create a L7 load balancer through the Google Cloud Console. I manually created the health check and backends (I used the unmanaged instance groups that GKE creates by default). Everything seems to work. |
Related to issue of ingress being created only in one of the underlying clusters:
Hope this helps. |
@lguminski @thesandlord solves the problem. |
@ualtinok that did it! This is awesome! I'm going to try and get this into the docs. |
Tried all these tricks. I have 3 clusters and only one appears in the ingress with all health checks failing. Also in the ingress I can see the clusters being switched probably to health check them but everything fails. I started the ingress with a reserved global ip address as well...no cake. |
@madhusudancs is this a release blocker for |
This is now fixed v1.6. |
Kubernetes version (use
kubectl version
):Kubernetes 1.5.1
Environment:
What happened:
After I federated several clusters, all federated services work fine (replica sets, services) except for ingress.
What you expected to happen:
Ingress does not get propagated across all clusters
Here are controller's log (run with
-v=4
flag)https://gist.github.com/anonymous/a51ce3266f97a4103c6d47aabf76c228
How to reproduce it (as minimally and precisely as possible):
(all commands used to set it up are in https://github.com/ContainerSolutions/k8shserver/tree/master/scripts)
Ready
stateThe text was updated successfully, but these errors were encountered: