GKE: secured access to services from outside the cluster

前端 未结 3 410
伪装坚强ぢ
伪装坚强ぢ 2021-01-13 10:37

Is there any way to access the \'internal\' services (those not exposed outside) of the cluster in a secure way from the outside.

The goal is simple: I need to debug

3条回答
  •  执笔经年
    2021-01-13 11:03

    You can also try using kubectl port-forward:

    http://kubernetes.io/docs/user-guide/connecting-to-applications-port-forward/

    http://kubernetes.io/docs/user-guide/kubectl/kubectl_port-forward/

    Example:

    kubectl port-forward POD_NAME LOCAL_PORT:REMOTE_PORT

    kubectl port-forward redis-master 6379:6379

提交回复
热议问题