-
我有GKE集群,并创建了一个内部负载均衡器,如以下文档中所述。https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balance-ingress
-
使用了与文档中指定的示例相同的示例。
-
入口卡在创建模式中。以下是入口的描述。
kubectl -n test describe ing
Name: ilb-demo-ingress
Namespace: test
Address:
Default backend: hostname:80 (10.12.3.20:9376)
Rules:
Host Path Backends
---- ---- --------
* * hostname:80 (10.12.3.20:9376)
Annotations:
kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"networking.k8s.io/v1beta1","kind":"Ingress","metadata":{"annotations":{"kubernetes.io/ingress.class":"gce-internal"},"name":"ilb-demo-ingress","namespace":"test"},"spec":{"backend":{"serviceName":"hostname","servicePort":80}}}
kubernetes.io/ingress.class: gce-internal
Events: <none>
- 如何调试和解决问题
确保在gcp中为集群打开了L7负载平衡加载项。