我正在尝试为我的 Traefik 入口负载均衡器分配一个静态 IP 地址,但在 Google Cloud 上总是得到相同的响应:
Error creating load balancer (will retry): failed to ensure load balancer for service default/traefik-service: requested ip "35.185.139.44" is neither static nor assigned to the LB
coffee:gke Steven$ glcoud compute addresses list
我确实注意到所有静态都在保留中,而不是在使用中
# Declare Traefik ingress service
kind: Service
apiVersion: v1
metadata:
name: traefik-service
spec:
selector:
app: traefik-gke-demo
tier: reverse-proxy
ports:
- port: 80
name: http
- port: 443
name: https
- port: 8080
name: admin
type: LoadBalancer
loadBalancerIP: 35.185.xx.xx