Skip to content

K8S Cluster

Replacing an k8s_cluster object will update the object by replacing the existing spec with the provided one. For read-then-write operations a resourceVersion mismatch will occur if the object was modified between the read and write.

ToolDescription
f5xc-api-sites-k8s-cluster-createCreate Configuration Specification.
f5xc-api-sites-k8s-cluster-getGET Configuration Specification.
f5xc-api-sites-k8s-cluster-listList K8s Cluster.
f5xc-api-sites-k8s-cluster-updateReplace Configuration Specification.
f5xc-api-sites-k8s-cluster-deleteDELETE K8s Cluster.
ParameterDescriptionExample
metadata.namespaceNamespace-
nameName-
namespaceNamespace-
metadata.nameName-
ParameterDescriptionExample
response_formatThe format in which the configuration object is to be fetched. This could be for example-
label_filterA LabelSelectorType expression that every item in list response will satisfy.-
report_fieldsThe report_fields parameter-
report_status_fieldsThe report_status_fields parameter-

This resource includes mutually exclusive configuration options:

OptionDescriptionRecommended
spec.cluster_wide_app_list-
spec.no_cluster_wide_apps-
OptionDescriptionRecommended
spec.use_custom_cluster_role_bindings-
spec.use_default_cluster_role_bindings-
OptionDescriptionRecommended
spec.use_custom_cluster_role_list-
spec.use_default_cluster_roles-
OptionDescriptionRecommended
spec.cluster_scoped_access_deny-
spec.cluster_scoped_access_permit-
OptionDescriptionRecommended
spec.global_access_enable-
spec.no_global_access-
OptionDescriptionRecommended
spec.insecure_registry_list-
spec.no_insecure_registries-
OptionDescriptionRecommended
spec.local_access_config-
spec.no_local_access-
OptionDescriptionRecommended
spec.use_custom_pod_security_admission-
spec.use_default_pod_security_admission-
OptionDescriptionRecommended
spec.use_custom_psp_list-
spec.use_default_psp-
OptionDescriptionRecommended
spec.vk8s_namespace_access_deny-
spec.vk8s_namespace_access_permit-
OptionDescriptionRecommended
spec.cluster_wide_app_list.cluster_wide_apps[].argo_cd-
spec.cluster_wide_app_list.cluster_wide_apps[].dashboard-
spec.cluster_wide_app_list.cluster_wide_apps[].metrics_server-
spec.cluster_wide_app_list.cluster_wide_apps[].prometheus-
OptionDescriptionRecommended
spec.cluster_wide_app_list.cluster_wide_apps[].argo_cd.local_domain.default_port-
spec.cluster_wide_app_list.cluster_wide_apps[].argo_cd.local_domain.port-
OptionDescriptionRecommended
spec.cluster_wide_app_list.cluster_wide_apps[].argo_cd.local_domain.password.blindfold_secret_info-
spec.cluster_wide_app_list.cluster_wide_apps[].argo_cd.local_domain.password.clear_secret_info-

Ask Claude to help you work with K8S Cluster resources:

“Create a k8s-cluster named ‘example’ in the ‘production’ namespace”

“List all k8s-clusters in the ‘production’ namespace”

“Get details of the k8s-cluster named ‘example’ in namespace ‘production‘“

Terminal window
# List resources
curl -X GET "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/k8s_clusters" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json"
# Get specific resource
curl -X GET "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/k8s_clusters/<name>" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json"
# Create resource
curl -X POST "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/k8s_clusters" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json" \
-d @k8s_cluster.json
# Delete resource
curl -X DELETE "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/k8s_clusters/<name>" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}"