Table: digitalocean_kubernetes_cluster - Query DigitalOcean Kubernetes Clusters using SQL
DigitalOcean Kubernetes (DOKS) is a managed Kubernetes service that lets you deploy, manage, and scale containerized applications using Kubernetes. It provides developers with the flexibility to ship and scale applications without the overhead of managing the underlying infrastructure. DOKS is integrated with the DigitalOcean developer cloud stack, offering seamless management of Kubernetes clusters.
Table Usage Guide
The digitalocean_kubernetes_cluster
table provides insights into Kubernetes clusters within the DigitalOcean cloud platform. As a DevOps engineer, explore cluster-specific details through this table, including cluster version, status, and associated metadata. Utilize it to uncover information about your Kubernetes deployments, such as the clusters' current version, their location, and their current running status.
Examples
Basic info
Explore which DigitalOcean Kubernetes clusters are currently active, along with their associated subnet and IP address details. This can be useful for managing and monitoring your cloud resources effectively.
select id, name, cluster_subnet, ipv4from digitalocean_kubernetes_cluster;
select id, name, cluster_subnet, ipv4from digitalocean_kubernetes_cluster;
List clusters that are not running
Explore which DigitalOcean Kubernetes clusters are not currently running. This can be useful for identifying potential issues or managing resource allocation.
select id, name, cluster_subnet, ipv4from digitalocean_kubernetes_clusterwhere status <> 'running';
select id, name, cluster_subnet, ipv4from digitalocean_kubernetes_clusterwhere status <> 'running';
List clusters with auto-upgrade not enabled
Analyze the settings to understand which Kubernetes clusters on DigitalOcean have not enabled the auto-upgrade feature. This can help in ensuring that your systems are always up-to-date with the latest features and security patches.
select id, name, cluster_subnet, ipv4from digitalocean_kubernetes_clusterwhere not auto_upgrade;
select id, name, cluster_subnet, ipv4from digitalocean_kubernetes_clusterwhere auto_upgrade = 0;
Query examples
- database_clusters_for_kubernetes_cluster
- kubernetes_cluster_1_year_count
- kubernetes_cluster_24_hours_count
- kubernetes_cluster_30_90_days_count
- kubernetes_cluster_30_days_count
- kubernetes_cluster_90_365_days_count
- kubernetes_cluster_auto_upgrade_count
- kubernetes_cluster_by_region
- kubernetes_cluster_count
- kubernetes_cluster_creation_month
- kubernetes_cluster_input
- kubernetes_cluster_network_vpc_details
- kubernetes_cluster_nodes_for_kubernetes_cluster
- kubernetes_cluster_overview
- kubernetes_cluster_registry_enabled
- kubernetes_cluster_surge_upgrade_count
- kubernetes_cluster_tags
- kubernetes_clusters_for_database_cluster
- kubernetes_clusters_for_network_vpc
- kubernetes_node_pools_for_kubernetes_cluster
- network_vpcs_for_kubernetes_cluster
Schema for digitalocean_kubernetes_cluster
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
akas | jsonb | Array of globally unique identifier strings (also known as) for the resource. | |
auto_upgrade | boolean | A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window. | |
cluster_subnet | text | The range of IP addresses in the overlay network of the Kubernetes cluster. | |
created_at | timestamp with time zone | The date and time when the Kubernetes cluster was created. | |
endpoint | text | The base URL of the API server on the Kubernetes master node. | |
id | text | = | The unique universal identifier of this cluster. |
ipv4 | text | The public IPv4 address of the Kubernetes master node. | |
maintenance_policy | jsonb | A block representing the cluster's maintenance window. | |
name | text | The globally unique human-readable name for the cluster. | |
node_pools | jsonb | The cluster's default node pool. | |
region_slug | text | The slug identifier for the region where the Kubernetes cluster will be created. | |
registry_enabled | boolean | A boolean value indicating whether cluster integrated with container registry. | |
service_subnet | text | The range of assignable IP addresses for services running in the Kubernetes cluster. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
status | text | A string indicating the current status of the cluster. Potential values include running, provisioning, and errored. | |
surge_upgrade | boolean | Enable/disable surge upgrades for a cluster. | |
tags | jsonb | A map of tags for the resource. | |
title | text | Title of the resource. | |
updated_at | timestamp with time zone | The date and time when the Kubernetes cluster was last updated. | |
urn | text | The uniform resource name (URN) for the cluster. | |
version_slug | text | The slug identifier for the version of Kubernetes used for the cluster. | |
vpc_uuid | text | The ID of the VPC where the Kubernetes cluster will be located. |