Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/api/v2/k8scluster/?namespaces #197

Open
snowch opened this issue Jul 23, 2020 · 0 comments
Open

/api/v2/k8scluster/?namespaces #197

snowch opened this issue Jul 23, 2020 · 0 comments

Comments

@snowch
Copy link
Member

snowch commented Jul 23, 2020

GET /api/v2/k8scluster/?namespaces HTTP/1.1
Host: 127.0.0.1:8080
Accept-Encoding: gzip, deflate
REMOTE_ADDR: 86.138.132.112
Accept: */*
User-Agent: python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-1127.13.1.el7.x86_64
Connection: keep-alive
X-BDS-SESSION: /api/v2/session/7ab6afb4-ac96-4adc-a422-7aeef8ab82fe
Authorization: /api/v2/session/7ab6afb4-ac96-4adc-a422-7aeef8ab82fe

HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Length: 7989
Content-Type: application/json
Date: Thu, 23 Jul 2020 22:37:20 GMT
Server: HPE Ezmeral Container Platform 5.1

{
  "_links": {
    "self": {
      "href": "/api/v2/k8scluster"
    }
  },
  "_embedded": {
    "k8sclusters": [
      {
        "_links": {
          "self": {
            "href": "/api/v2/k8scluster/2"
          }
        },
        "label": {
          "name": "c1",
          "description": ""
        },
        "k8s_version": "1.17.5",
        "pod_dns_domain": "cluster.local",
        "created_by_user_id": "/api/v1/user/6",
        "created_by_user_name": "admin",
        "created_time": 1595414021,
        "k8shosts_config": [
          {
            "node": "/api/v2/worker/k8shost/4",
            "role": "master"
          },
          {
            "node": "/api/v2/worker/k8shost/5",
            "role": "worker"
          }
        ],
        "imported": false,
        "status": "ready",
        "status_message": "",
        "api_endpoint_access": "https://ip-10-1-0-68.us-west-2.compute.internal:10000",
        "dashboard_endpoint_access": "https://ip-10-1-0-68.us-west-2.compute.internal:10002",
        "admin_kube_config": "apiVersion: v1\nclusters:\n- cluster:\n    certificate-authority-data: xxx=\n    server: https://ip-10-1-0-68.us-west-2.compute.internal:10000\n  name: k8s-2\ncontexts:\n- context:\n    cluster: k8s-2\n    user: kubernetes-admin\n  name: kubernetes-admin@k8s-2\ncurrent-context: kubernetes-admin@k8s-2\nkind: Config\npreferences: {}\nusers:\n- name: kubernetes-admin\n  user:\n    client-certificate-data: xxx=\n    client-key-data: xxx=",
        "dashboard_token": "xxx==",
        "addons": [
          "picasso"
        ],
        "namespace_info": {
          "tenant_associated": [
            {
              "namespace": "t1",
              "tenant": "/api/v2/tenant/8"
            }
          ],
          "system": [
            "default",
            "hpe-csi",
            "hpe-externalclusterinfo",
            "hpe-ldap",
            "hpe-nodesvc",
            "hpe-secure",
            "hpe-system",
            "hpe-templates-compute",
            "hpecp",
            "hpecp-bootstrap",
            "kd-apps",
            "kd-mlops",
            "kube-node-lease",
            "kube-public",
            "kube-system",
            "kubeflow-operator",
            "kubernetes-dashboard",
            "spark-operator"
          ],
          "other": []
        },
        "type": "local",
        "pod_network_range": "10.192.0.0/12",
        "service_network_range": "10.96.0.0/12"
      }
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant