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"
        }

 

posted @ 2020-08-07 17:03  caonw  阅读(1499)  评论(0编辑  收藏  举报