主页

索引

模块索引

搜索页面

3.2.21. kubectl proxy

$ kubectl proxy

http://localhost:8001/

{
  "paths": [
    "/api",
    "/api/v1",
    "/apis",
    "/apis/",
    "/apis/admissionregistration.k8s.io",
    "/apis/admissionregistration.k8s.io/v1alpha1",
    "/apis/admissionregistration.k8s.io/v1beta1",
    "/apis/alicloud.com",
    "/apis/alicloud.com/v1beta1",
    "/apis/apiextensions.k8s.io",
    "/apis/apiextensions.k8s.io/v1beta1",
    "/apis/apiregistration.k8s.io",
    "/apis/apiregistration.k8s.io/v1",
    "/apis/apiregistration.k8s.io/v1beta1",
    "/apis/apps",
    "/apis/apps/v1",
    "/apis/apps/v1beta1",
    "/apis/apps/v1beta2",
    "/apis/authentication.k8s.io",
    "/apis/authentication.k8s.io/v1",
    "/apis/authentication.k8s.io/v1beta1",
    "/apis/authorization.k8s.io",
    "/apis/authorization.k8s.io/v1",
    "/apis/authorization.k8s.io/v1beta1",
    "/apis/autoscaling",
    "/apis/autoscaling/v1",
    "/apis/autoscaling/v2beta1",
    "/apis/autoscaling/v2beta2",
    "/apis/batch",
    "/apis/batch/v1",
    "/apis/batch/v1beta1",
    "/apis/certificates.k8s.io",
    "/apis/certificates.k8s.io/v1beta1",
    "/apis/coordination.k8s.io",
    "/apis/coordination.k8s.io/v1beta1",
    "/apis/crd.projectcalico.org",
    "/apis/crd.projectcalico.org/v1",
    "/apis/events.k8s.io",
    "/apis/events.k8s.io/v1beta1",
    "/apis/extensions",
    "/apis/extensions/v1beta1",
    "/apis/jobs.aliyun.com",
    "/apis/jobs.aliyun.com/v1alpha1",
    "/apis/log.alibabacloud.com",
    "/apis/log.alibabacloud.com/v1alpha1",
    "/apis/monitoring.coreos.com",
    "/apis/monitoring.coreos.com/v1",
    "/apis/networking.k8s.io",
    "/apis/networking.k8s.io/v1",
    "/apis/policy",
    "/apis/policy/v1beta1",
    "/apis/rbac.authorization.k8s.io",
    "/apis/rbac.authorization.k8s.io/v1",
    "/apis/rbac.authorization.k8s.io/v1beta1",
    "/apis/scheduling.k8s.io",
    "/apis/scheduling.k8s.io/v1beta1",
    "/apis/storage.k8s.io",
    "/apis/storage.k8s.io/v1",
    "/apis/storage.k8s.io/v1beta1",
    "/healthz",
    "/healthz/autoregister-completion",
    "/healthz/etcd",
    "/healthz/log",
    "/healthz/ping",
    "/healthz/poststarthook/apiservice-openapi-controller",
    "/healthz/poststarthook/apiservice-registration-controller",
    "/healthz/poststarthook/apiservice-status-available-controller",
    "/healthz/poststarthook/bootstrap-controller",
    "/healthz/poststarthook/ca-registration",
    "/healthz/poststarthook/generic-apiserver-start-informers",
    "/healthz/poststarthook/kube-apiserver-autoregistration",
    "/healthz/poststarthook/rbac/bootstrap-roles",
    "/healthz/poststarthook/scheduling/bootstrap-system-priority-classes",
    "/healthz/poststarthook/start-apiextensions-controllers",
    "/healthz/poststarthook/start-apiextensions-informers",
    "/healthz/poststarthook/start-kube-aggregator-informers",
    "/healthz/poststarthook/start-kube-apiserver-admission-initializer",
    "/healthz/poststarthook/start-kube-apiserver-informers",
    "/logs",
    "/metrics",
    "/openapi/v2",
    "/swagger-2.0.0.json",
    "/swagger-2.0.0.pb-v1",
    "/swagger-2.0.0.pb-v1.gz",
    "/swagger.json",
    "/swaggerapi",
    "/version"
  ]
}

http://localhost:8001/apis/batch

{
  "kind": "APIGroup",
  "apiVersion": "v1",
  "name": "batch",
  "versions": [{
      "groupVersion": "batch/v1",
      "version": "v1"
    },
    {
      "groupVersion": "batch/v1beta1",
      "version": "v1beta1"
    }
  ],
  "preferredVersion": {
    "groupVersion": "batch/v1",
    "version": "v1"
  }
}

http://localhost:8001/apis/batch/v1

{
  "kind": "APIResourceList",
  "apiVersion": "v1",
  "groupVersion": "batch/v1",
  "resources": [{
      "name": "jobs",
      "singularName": "",
      "namespaced": true,
      "kind": "Job",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "update",
        "watch"
      ],
      "categories": [
        "all"
      ]
    },
    {
      "name": "jobs/status",
      "singularName": "",
      "namespaced": true,
      "kind": "Job",
      "verbs": [
        "get",
        "patch",
        "update"
      ]
    }
  ]
}

http://localhost:8001/apis/batch/v1/jobs

{
  "kind": "JobList",
  "apiVersion": "batch/v1",
  "metadata": {
    "selfLink": "/apis/batch/v1/jobs",
    "resourceVersion": "3609120349"
  },
  "items": [
    {
      "metadata": {
        "name": "redpoint",
        "namespace": "api",
        "selfLink": "/apis/batch/v1/namespaces/api/jobs/redpoint",
        "uid": "7abfe57c-2d2e-11ea-aeef-ca2587d57292",
        "resourceVersion": "3233870995",
        "creationTimestamp": "2020-01-02T07:07:03Z",
        "labels": {
          "app": "redpoint"
        },
        "annotations": {
          "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"batch/v1\",\"kind\":\"Job\",\"metadata\":{\"annotations\":{},\"labels\":{\"app\":\"redpoint\"},\"name\":\"redpoint\",\"namespace\":\"api\"},\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"app\":\"redpoint\"},\"name\":\"redpoint\"},\"spec\":{\"containers\":[{\"command\":[\"/redpoint\"],\"env\":[{\"name\":\"aliyun_logs_service-redpoint-api\",\"value\":\"stdout\"}],\"image\":\"registry.cn-beijing.aliyuncs.com/xxxx-tool/redpoint:27\",\"imagePullPolicy\":\"IfNotPresent\",\"name\":\"redpoint\"}],\"imagePullSecrets\":[{\"name\":\"ali-image-key\"}],\"restartPolicy\":\"OnFailure\"}}}}\n"
        }
      },
      "spec": {
        "parallelism": 1,
        "completions": 1,
        "backoffLimit": 6,
        "selector": {
          "matchLabels": {
            "controller-uid": "7abfe57c-2d2e-11ea-aeef-ca2587d57292"
          }
        },
        "template": {
          "metadata": {
            "name": "redpoint",
            "creationTimestamp": null,
            "labels": {
              "app": "redpoint",
              "controller-uid": "7abfe57c-2d2e-11ea-aeef-ca2587d57292",
              "job-name": "redpoint"
            }
          },
          "spec": {
            "containers": [{
              "name": "redpoint",
              "image": "registry.cn-beijing.aliyuncs.com/xxxx-tool/redpoint:27",
              "command": [
                "/redpoint"
              ],
              "env": [{
                "name": "aliyun_logs_service-redpoint-api",
                "value": "stdout"
              }],
              "resources": {},
              "terminationMessagePath": "/dev/termination-log",
              "terminationMessagePolicy": "File",
              "imagePullPolicy": "IfNotPresent"
            }],
            "restartPolicy": "OnFailure",
            "terminationGracePeriodSeconds": 30,
            "dnsPolicy": "ClusterFirst",
            "securityContext": {},
            "imagePullSecrets": [{
              "name": "ali-image-key"
            }],
            "schedulerName": "default-scheduler"
          }
        }
      },
      "status": {
        "startTime": "2020-01-02T07:07:03Z",
        "active": 1
      }
    },
    {
      "metadata": {
        "name": "redpoint",
        "namespace": "pvt",
        "selfLink": "/apis/batch/v1/namespaces/pvt/jobs/redpoint",
        "uid": "cf7abc4f-20a5-11ea-8aa4-763cdcd22cf4",
        "resourceVersion": "3086597696",
        "creationTimestamp": "2019-12-17T08:18:31Z",
        "labels": {
          "app": "redpoint"
        },
        "annotations": {
          "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"batch/v1\",\"kind\":\"Job\",\"metadata\":{\"annotations\":{},\"labels\":{\"app\":\"redpoint\"},\"name\":\"redpoint\",\"namespace\":\"pvt\"},\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"app\":\"redpoint\"},\"name\":\"redpoint\"},\"spec\":{\"containers\":[{\"command\":[\"/redpoint\"],\"env\":[{\"name\":\"aliyun_logs_service-redpoint-pvt\",\"value\":\"stdout\"}],\"image\":\"registry.cn-beijing.aliyuncs.com/xxxx-tool/redpoint:25\",\"imagePullPolicy\":\"IfNotPresent\",\"name\":\"redpoint\"}],\"imagePullSecrets\":[{\"name\":\"ali-image-key\"}],\"restartPolicy\":\"OnFailure\"}}}}\n"
        }
      },
      "spec": {
        "parallelism": 1,
        "completions": 1,
        "backoffLimit": 6,
        "selector": {
          "matchLabels": {
            "controller-uid": "cf7abc4f-20a5-11ea-8aa4-763cdcd22cf4"
          }
        },
        "template": {
          "metadata": {
            "name": "redpoint",
            "creationTimestamp": null,
            "labels": {
              "app": "redpoint",
              "controller-uid": "cf7abc4f-20a5-11ea-8aa4-763cdcd22cf4",
              "job-name": "redpoint"
            }
          },
          "spec": {
            "containers": [{
              "name": "redpoint",
              "image": "registry.cn-beijing.aliyuncs.com/xxxxxx-tool/redpoint:25",
              "command": [
                "/redpoint"
              ],
              "env": [{
                "name": "aliyun_logs_service-redpoint-pvt",
                "value": "stdout"
              }],
              "resources": {},
              "terminationMessagePath": "/dev/termination-log",
              "terminationMessagePolicy": "File",
              "imagePullPolicy": "IfNotPresent"
            }],
            "restartPolicy": "OnFailure",
            "terminationGracePeriodSeconds": 30,
            "dnsPolicy": "ClusterFirst",
            "securityContext": {},
            "imagePullSecrets": [{
              "name": "ali-image-key"
            }],
            "schedulerName": "default-scheduler"
          }
        }
      },
      "status": {
        "startTime": "2019-12-17T08:18:31Z",
        "active": 1
      }
    }
  ]
}

http://localhost:8001/apis/batch/v1/namespaces/pvt/jobs/redpoint

{
  "kind": "Job",
  "apiVersion": "batch/v1",
  "metadata": {
    "name": "redpoint",
    "namespace": "pvt",
    "selfLink": "/apis/batch/v1/namespaces/pvt/jobs/redpoint",
    "uid": "cf7abc4f-20a5-11ea-8aa4-763cdcd22cf4",
    "resourceVersion": "3086597696",
    "creationTimestamp": "2019-12-17T08:18:31Z",
    "labels": {
      "app": "redpoint"
    },
    "annotations": {
      "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"batch/v1\",\"kind\":\"Job\",\"metadata\":{\"annotations\":{},\"labels\":{\"app\":\"redpoint\"},\"name\":\"redpoint\",\"namespace\":\"pvt\"},\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"app\":\"redpoint\"},\"name\":\"redpoint\"},\"spec\":{\"containers\":[{\"command\":[\"/redpoint\"],\"env\":[{\"name\":\"aliyun_logs_service-redpoint-pvt\",\"value\":\"stdout\"}],\"image\":\"registry.cn-beijing.aliyuncs.com/xxxxx-tool/redpoint:25\",\"imagePullPolicy\":\"IfNotPresent\",\"name\":\"redpoint\"}],\"imagePullSecrets\":[{\"name\":\"ali-image-key\"}],\"restartPolicy\":\"OnFailure\"}}}}\n"
    }
  },
  "spec": {
    "parallelism": 1,
    "completions": 1,
    "backoffLimit": 6,
    "selector": {
      "matchLabels": {
        "controller-uid": "cf7abc4f-20a5-11ea-8aa4-763cdcd22cf4"
      }
    },
    "template": {
      "metadata": {
        "name": "redpoint",
        "creationTimestamp": null,
        "labels": {
          "app": "redpoint",
          "controller-uid": "cf7abc4f-20a5-11ea-8aa4-763cdcd22cf4",
          "job-name": "redpoint"
        }
      },
      "spec": {
        "containers": [{
          "name": "redpoint",
          "image": "registry.cn-beijing.aliyuncs.com/xxxxxx-tool/redpoint:25",
          "command": [
            "/redpoint"
          ],
          "env": [{
            "name": "aliyun_logs_service-redpoint-pvt",
            "value": "stdout"
          }],
          "resources": {},
          "terminationMessagePath": "/dev/termination-log",
          "terminationMessagePolicy": "File",
          "imagePullPolicy": "IfNotPresent"
        }],
        "restartPolicy": "OnFailure",
        "terminationGracePeriodSeconds": 30,
        "dnsPolicy": "ClusterFirst",
        "securityContext": {},
        "imagePullSecrets": [{
          "name": "ali-image-key"
        }],
        "schedulerName": "default-scheduler"
      }
    }
  },
  "status": {
    "startTime": "2019-12-17T08:18:31Z",
    "active": 1
  }
}

主页

索引

模块索引

搜索页面