我在同一个GKE集群上部署了nifi和gloo网关。作为LoadBalancer公开的外部IP运行良好(在Web浏览器或telnet上打开)。但是,当我使用telnet连接GKE cloud shell上的Gateway时,我的连接被拒绝了。
根据相关原因和解决方案,我允许流量通过创建防火墙规则流入集群:
gcloud compute firewall-rules create my-rule --allow=all我该怎么做呢?
kubectl获得-n全球系统服务/网关-代理-v2 -o yaml
apiVersion: v1
kind: Service
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app":"gloo","gateway-proxy-id":"gateway-proxy-v2","gloo":"gateway-proxy"},"name":"gateway-proxy-v2","namespace":"gloo-system"},"spec":{"ports":[{"name":"http","port":80,"protocol":"TCP","targetPort":8080},{"name":"https","port":443,"protocol":"TCP","targetPort":8443}],"selector":{"gateway-proxy":"live","gateway-proxy-id":"gateway-proxy-v2"},"type":"LoadBalancer"}}
labels:
app: gloo
gateway-proxy-id: gateway-proxy-v2
gloo: gateway-proxy
name: gateway-proxy-v2
namespace: gloo-system
spec:
clusterIP: 10.122.10.215
externalTrafficPolicy: Cluster
ports:
- name: http
nodePort: 30189
port: 80
protocol: TCP
targetPort: 8080
- name: https
nodePort: 30741
port: 443
protocol: TCP
targetPort: 8443
selector:
gateway-proxy: live
gateway-proxy-id: gateway-proxy-v2
sessionAffinity: None
type: LoadBalancer
status:
loadBalancer:
ingress:
- ip: 34.xx.xx.xxkubectl获得svc -n全球系统
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
gateway-proxy-v2 LoadBalancer 10.122.10.215 34.xx.xx.xx 80:30189/TCP,443:30741/TCP 63m
gloo ClusterIP 10.122.5.253 <none> 9977/TCP 63m发布于 2020-02-20 18:13:10
您可以尝试使用Gloo版本的1.3.6。
请查看https://docs.solo.io/gloo/latest/upgrading/1.0.0/以跟踪任何可能的破坏更改。
https://stackoverflow.com/questions/59597952
复制相似问题