使用traefik Ingress控制器后,未在GKE集群上生成负载均衡器IP /外部IP

时间:2018-05-07 06:02:56

标签: google-kubernetes-engine kubernetes-ingress

当我尝试在GKE上设置traefik ingress控制器时,没有在GCP上创建loadBalancer IP以便从外部访问应用程序,但是通过查看traefik仪表板,内部traefik IP已成功分配。请找到traefik ingress YAML文件供您参考: -

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
   kubernetes.io/ingress.class: traefik
   traefik.frontend.passHostHeader: "false"
   traefik.frontend.rule.type: PathPrefixStrip
creationTimestamp: 2018-05-03T10:51:44Z
generation: 3
name: cheese
namespace: traefik-poc
resourceVersion: "1120714"
selfLink: /apis/extensions/v1beta1/namespaces/traefik- 
poc/ingresses/cheese
uid: f831bbee-4ebf-11e8-9163-42010a8401fe
spec:
  rules:
  - host: traefik-poc.example.com
  http:
  paths:
  - backend:
      serviceName: stilton
      servicePort: http
    path: /stilton
  - backend:
      serviceName: cheddar
      servicePort: http
    path: /cheddar
  - backend:
      serviceName: wensleydale
      servicePort: http
    path: /wensleydale
status:
   loadBalancer: {}

如果可能,任何人都可以帮助我,如果您需要任何进一步的细节来调试此问题,请告诉我。

0 个答案:

没有答案