kubectl proxy 反向代理使用kube-api-server
[root@k8s-master1 ~]# kubectl proxy --port=8011 Starting to serve on 127.0.0.1:8011
[root@k8s-master1 ~]# curl http://127.0.0.1:8011/apis/ { "kind": "APIGroupList", "apiVersion": "v1", "groups": [ { "name": "apiregistration.k8s.io", "versions": [ { "groupVersion": "apiregistration.k8s.io/v1", "version": "v1" }, { "groupVersion": "apiregistration.k8s.io/v1beta1", "version": "v1beta1" }