1,通过指定pod实现端口转发
kubectl port-forward pods/pod-name 443:443 -n ingress-nginx
2,通过指定service实现端口转发
kubectl port-forward svc/service-name 6379:6379
3,通过指定deployment实现端口转发
kubectl port-forward deployment/deployment-name 6379:6379