Closed aaron-armada closed 5 months ago
@aaron-armada Do you want to add a node agent pool as follows?
- name: Create a kubernet service with minimal parameters
azure_rm_aks:
name: "min{{ rpfx }}"
location: eastus
resource_group: "{{ resource_group }}"
kubernetes_version: "{{ versions.azure_aks_versions[0] }}"
dns_prefix: "aks{{ rpfx }}"
enable_rbac: true
aad_profile:
managed: true
agent_pool_profiles:
- name: default
count: 1
vm_size: Standard_B2s
mode: System
api_server_access_profile:
authorized_ip_ranges:
- "192.0.2.0"
- "198.51.100.0"
- "203.0.113.0"
enable_private_cluster: false
network_profile:
load_balancer_sku: standard
outbound_type: loadBalancer
register: output
- name: Add node agent pool
azure_rm_aksagentpool:
resource_group: "{{ resource_group }}"
cluster_name: "min{{ rpfx }}"
name: default03
count: 1
vm_size: Standard_B2s
type_properties_type: VirtualMachineScaleSets
mode: System
node_labels: {"release":"stable"}
max_pods: 42
enable_auto_scaling: true
min_count: 1
max_count: 10
orchestrator_version: "{{ agentpool_version.azure_orchestrator_version[0] }}"
availability_zones:
- 1
- 2
register: output
@aaron-armada Do you want to add a node agent pool as follows?
- name: Create a kubernet service with minimal parameters azure_rm_aks: name: "min{{ rpfx }}" location: eastus resource_group: "{{ resource_group }}" kubernetes_version: "{{ versions.azure_aks_versions[0] }}" dns_prefix: "aks{{ rpfx }}" enable_rbac: true aad_profile: managed: true agent_pool_profiles: - name: default count: 1 vm_size: Standard_B2s mode: System api_server_access_profile: authorized_ip_ranges: - "192.0.2.0" - "198.51.100.0" - "203.0.113.0" enable_private_cluster: false network_profile: load_balancer_sku: standard outbound_type: loadBalancer register: output - name: Add node agent pool azure_rm_aksagentpool: resource_group: "{{ resource_group }}" cluster_name: "min{{ rpfx }}" name: default03 count: 1 vm_size: Standard_B2s type_properties_type: VirtualMachineScaleSets mode: System node_labels: {"release":"stable"} max_pods: 42 enable_auto_scaling: true min_count: 1 max_count: 10 orchestrator_version: "{{ agentpool_version.azure_orchestrator_version[0] }}" availability_zones: - 1 - 2 register: output
No I would like to be able to do something like this:
- name: Add node agent pool
azure_rm_aksagentpool:
resource_group: "{{ resource_group }}"
cluster_name: "min{{ rpfx }}"
name: default03
count: 1
vm_size: Standard_B2s
type_properties_type: VirtualMachineScaleSets
mode: System
node_labels: {"release":"stable"}
max_pods: 42
enable_auto_scaling: true
min_count: 1
max_count: 10
orchestrator_version: "{{ agentpool_version.azure_orchestrator_version[0] }}"
availability_zones:
- 1
- 2
os_config:
- {"transparentHugePageEnabled": "madvise"}
- {"transparentHugePageDefrag": "defer+madvise"}
- {"swapFileSizeMB": 1500}
register: output
Added in #1477
SUMMARY
Azure documentation describes how to add a node pool with custom configuration files: https://learn.microsoft.com/en-us/azure/aks/custom-node-configuration?tabs=linux-node-pools#add-a-node-pool-using-custom-configuration-files
I do not see how to do this in either the documentation or source for the azure.azcollection.azure_rm_aksagentpool module.
ISSUE TYPE
COMPONENT NAME
azure_rm_aksagentpool
ANSIBLE VERSION