Skip to content

K8S Cluster

K8S Cluster provides tools for creating, listing, retrieving, updating, and deleting resources in F5 Distributed Cloud.

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-updateUpdate Configuration Specification.
f5xc-api-sites-k8s-cluster-deleteDelete K8s Cluster.
ParameterDescriptionExample
namespaceNamespace This defines the workspace within which each the configuration object is to be created.system
nameName The name of the configuration object to be fetched.example-resource
ParameterDescriptionExample
response_formatThe format in which the configuration object is to be fetched. This could be for example - in GetSpec form for the contents of object…GET_RSP_FORMAT_DEFAULT
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_listCluster wide app list
spec.no_cluster_wide_appsNo cluster wide apps
OptionDescriptionRecommended
spec.use_custom_cluster_role_bindingsUse custom cluster role bindings
spec.use_default_cluster_role_bindingsUse default cluster role bindings
OptionDescriptionRecommended
spec.use_custom_cluster_role_listUse custom cluster role list
spec.use_default_cluster_rolesUse default cluster roles
OptionDescriptionRecommended
spec.cluster_scoped_access_denyCluster scoped access deny
spec.cluster_scoped_access_permitCluster scoped access permit
OptionDescriptionRecommended
spec.global_access_enableGlobal access enable
spec.no_global_accessNo global access
OptionDescriptionRecommended
spec.insecure_registry_listInsecure registry list
spec.no_insecure_registriesNo insecure registries
OptionDescriptionRecommended
spec.local_access_configLocal access config
spec.no_local_accessNo local access
OptionDescriptionRecommended
spec.use_custom_pod_security_admissionUse custom pod security admission
spec.use_default_pod_security_admissionUse default pod security admission
OptionDescriptionRecommended
spec.use_custom_psp_listUse custom psp list
spec.use_default_pspUse default psp
OptionDescriptionRecommended
spec.vk8s_namespace_access_denyVk8s namespace access deny
spec.vk8s_namespace_access_permitVk8s namespace access permit

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/$${PARAM}/k8s_clusters" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}"
# Get specific resource
curl -X GET "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/$${PARAM}/k8s_clusters/$${PARAM}" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}"
# Create resource
curl -X POST "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/$${PARAM}/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/$${PARAM}/k8s_clusters/$${PARAM}" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}"