Get information on a IonosCloud K8s Node Pool
The k8s node pool data source can be used to search for and return existing k8s node pools.
name
- (Optional) Name of an existing node pool that you want to search for.
id
- (Optional) ID of the node pool you want to search for.
Either name
or id
must be provided. If none, or both are provided, the datasource will return an error.
The following attributes are returned by the datasource:
id
- id of the node pool
name
- name of the node pool
k8s_cluster_id
- ID of the cluster this node pool is part of
datacenter_id
- The UUID of the VDC
node_count
- The number of nodes in this node pool
cpu_family
- CPU Family
cores_count
- CPU cores count
ram_size
- The amount of RAM in MB
availability_zone
- The compute availability zone in which the nodes should exist
storage_type
- HDD or SDD
storage_size
- Size of storage
k8s_version
- The kubernetes version
maintenance_window
- A maintenance window comprise of a day of the week and a time for maintenance to be allowed
time
- A clock time in the day when maintenance is allowed
day_of_the_week
- Day of the week when maintenance is allowed
auto_scaling
- The range defining the minimum and maximum number of worker nodes that the managed node group can scale in
min_node_count
- The minimum number of worker nodes the node pool can scale down to
max_node_count
- The maximum number of worker nodes that the node pool can scale to
lans
- A list of Local Area Networks the node pool is a part of
labels
- A map of labels in the form of key -> value
annotations
- A map of annotations in the form of key -> value
available_upgrade_versions
- A list of kubernetes versions available for upgrade
public_ips
- The list of fixed IPs associated with this node pool
state
- one of "AVAILABLE", "INACTIVE", "BUSY", "DEPLOYING", "ACTIVE", "FAILED", "SUSPENDED", "FAILED_SUSPENDED", "UPDATING", "FAILED_UPDATING", "DESTROYING", "FAILED_DESTROYING", "TERMINATED"
Get information on a IonosCloud K8s Cluster
The k8s cluster data source can be used to search for and return existing k8s clusters.
name
- (Optional) Name or an existing cluster that you want to search for.
id
- (Optional) ID of the cluster you want to search for.
Either name
or id
must be provided. If none, or both are provided, the datasource will return an error.
The following attributes are returned by the datasource:
id
- id of the cluster
name
- name of the cluster
maintenance_window
- A maintenance window comprise of a day of the week and a time for maintenance to be allowed
time
- A clock time in the day when maintenance is allowed
day_of_the_week
- Day of the week when maintenance is allowed
state
- one of "AVAILABLE", "INACTIVE", "BUSY", "DEPLOYING", "ACTIVE", "FAILED", "SUSPENDED", "FAILED_SUSPENDED", "UPDATING", "FAILED_UPDATING", "DESTROYING", "FAILED_DESTROYING", "TERMINATED"
k8s_version
- Kubernetes version. The provider will ignore changes of patch level.
available_upgrade_versions
- list of available versions for upgrading the cluster
viable_node_pool_versions
- list of versions that may be used for node pools under this cluster
node_pools
- list of the IDs of the node pools in this cluster
kube_config
- Raw Kubernetes configuration; use yamlencode
or jsonencode
when dumping this to a file
api_subnet_allow_list
- access to the K8s API server is restricted to these CIDRs
s3_buckets
- list of S3 bucket configured for K8s usage
config
- structured kubernetes config consisting of a list with 1 item with the following fields:
api_version - Kubernetes API Version
kind - "Config"
current-context - string
clusters - list of
name - name of cluster
cluster - map of
certificate-authority-data - base64 decoded cluster CA data
server - server address in the form https://host:port
contexts - list of
name - context name
context - map of
cluster - cluster name
user - cluster user
users - list of
name - user name
user - map of
token - user token used for authentication
user_tokens
- a convenience map to search the token of a specific user
key - is the user name
value - is the token
server
- cluster server (same as config[0].clusters[0].cluster.server
but provided as an attribute for ease of use)
ca_crt
- base64 decoded cluster certificate authority data (provided as an attribute for direct use)
NOTE: The whole config
node is marked as sensitive.
NOTE: Dumping kube_config
data into files poses a security risk.