agent_pools
Creates, updates, deletes, gets or lists a agent_pools
resource.
Overview
Name | agent_pools |
Type | Resource |
Id | azure.hybrid_aks.agent_pools |
Fields
- vw_agent_pools
- agent_pools
Name | Datatype | Description |
---|---|---|
agentPoolName | text | field from the properties object |
connectedClusterResourceUri | text | field from the properties object |
count | text | field from the properties object |
enable_auto_scaling | text | field from the properties object |
extended_location | text | field from the properties object |
kubernetes_version | text | field from the properties object |
max_count | text | field from the properties object |
max_pods | text | field from the properties object |
min_count | text | field from the properties object |
node_labels | text | field from the properties object |
node_taints | text | field from the properties object |
os_sku | text | field from the properties object |
os_type | text | field from the properties object |
provisioning_state | text | field from the properties object |
status | text | field from the properties object |
tags | text | Resource tags |
vm_size | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
extendedLocation | object | Extended location pointing to the underlying infrastructure |
properties | object | Properties of the agent pool resource |
tags | object | Resource tags |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | agentPoolName, connectedClusterResourceUri | Gets the specified agent pool in the provisioned cluster |
list_by_provisioned_cluster | SELECT | connectedClusterResourceUri | Gets the list of agent pools in the specified provisioned cluster |
create_or_update | INSERT | agentPoolName, connectedClusterResourceUri | Creates or updates the agent pool in the provisioned cluster |
delete | DELETE | agentPoolName, connectedClusterResourceUri | Deletes the specified agent pool in the provisioned cluster |
SELECT
examples
Gets the list of agent pools in the specified provisioned cluster
- vw_agent_pools
- agent_pools
SELECT
agentPoolName,
connectedClusterResourceUri,
count,
enable_auto_scaling,
extended_location,
kubernetes_version,
max_count,
max_pods,
min_count,
node_labels,
node_taints,
os_sku,
os_type,
provisioning_state,
status,
tags,
vm_size
FROM azure.hybrid_aks.vw_agent_pools
WHERE connectedClusterResourceUri = '{{ connectedClusterResourceUri }}';
SELECT
extendedLocation,
properties,
tags
FROM azure.hybrid_aks.agent_pools
WHERE connectedClusterResourceUri = '{{ connectedClusterResourceUri }}';
INSERT
example
Use the following StackQL query and manifest file to create a new agent_pools
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.hybrid_aks.agent_pools (
agentPoolName,
connectedClusterResourceUri,
properties,
tags,
extendedLocation
)
SELECT
'{{ agentPoolName }}',
'{{ connectedClusterResourceUri }}',
'{{ properties }}',
'{{ tags }}',
'{{ extendedLocation }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: osType
value: []
- name: osSKU
value: []
- name: nodeLabels
value: object
- name: nodeTaints
value:
- string
- name: maxCount
value: integer
- name: minCount
value: integer
- name: enableAutoScaling
value: boolean
- name: maxPods
value: integer
- name: count
value: integer
- name: vmSize
value: string
- name: kubernetesVersion
value: string
- name: provisioningState
value: []
- name: status
value:
- name: errorMessage
value: string
- name: readyReplicas
value:
- - name: count
value: integer
- name: vmSize
value: string
- name: kubernetesVersion
value: string
- name: tags
value: object
- name: extendedLocation
value:
- name: type
value: string
- name: name
value: string
DELETE
example
Deletes the specified agent_pools
resource.
/*+ delete */
DELETE FROM azure.hybrid_aks.agent_pools
WHERE agentPoolName = '{{ agentPoolName }}'
AND connectedClusterResourceUri = '{{ connectedClusterResourceUri }}';