ves-io-schema-cluster-API-Get

Examples of getting cluster

Usecase:

Get productpage-cluster from current namespace

Request using vesctl:

vesctl configuration get cluster productpage-cluster --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: productpage-cluster
  namespace: documentation
referringObjects: []
resourceVersion: "168"
spec:
  defaultSubset: {}
  endpointSubsets: []
  endpoints:
  - kind: endpoint
    name: productpage-endpoint
    namespace: documentation
    tenant: acmecorp
  healthChecks:
  - kind: healthcheck
    name: productpage-healthcheck
    namespace: documentation
    tenant: acmecorp
  loadbalancerAlgorithm: RANDOM
  tlsParameters:
    commonParams:
      cipherSuites: []
      tlsCertificates:
      - certificateUrl: string:///<Base64>
        privateKey:
          blindfoldSecretInfo:
            location: string:///<Base64>
    sni: productpage.internal.bookinfo.com
status: []
systemMetadata:
  creationTimestamp: "2021-05-12T11:17:38.480606420Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: c2d9a661-a715-429a-83f4-9c2dae11adcf

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/clusters/productpage-cluster?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 12 May 2021 11:17:38 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "168",
  "metadata": {
    "name": "productpage-cluster",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "c2d9a661-a715-429a-83f4-9c2dae11adcf",
    "creation_timestamp": "2021-05-12T11:17:38.480606420Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "endpoints": [
      {
        "kind": "endpoint",
        "uid": "",
        "tenant": "acmecorp",
        "namespace": "documentation",
        "name": "productpage-endpoint"
      }
    ],
    "health_checks": [
      {
        "kind": "healthcheck",
        "uid": "",
        "tenant": "acmecorp",
        "namespace": "documentation",
        "name": "productpage-healthcheck"
      }
    ],
    "loadbalancer_algorithm": "RANDOM",
    "circuit_breaker": null,
    "endpoint_subsets": [
    ],
    "default_subset": {
    },
    "fallback_policy": "NO_FALLBACK",
    "tls_parameters": {
      "common_params": {
        "minimum_protocol_version": "TLS_AUTO",
        "maximum_protocol_version": "TLS_AUTO",
        "cipher_suites": [
        ],
        "tls_certificates": [
          {
            "certificate_url": "string:///\u003cBase64\u003e",
            "private_key": {
              "blindfold_secret_info": {
                "decryption_provider": "",
                "store_provider": "",
                "location": "string:///\u003cBase64\u003e"
              },
              "blindfold_secret_info_internal": null,
              "secret_encoding_type": "EncodingNone"
            },
            "description": ""
          }
        ],
        "trusted_ca_url": "",
        "validation_params": null
      },
      "sni": "productpage.internal.bookinfo.com"
    },
    "connection_timeout": 0,
    "http_idle_timeout": 0,
    "outlier_detection": null,
    "endpoint_selection": "DISTRIBUTED",
    "http2_options": null
  },
  "status": [
  ],
  "referring_objects": [
  ]
}