Description
Set Ansible’s network_profile.network_policy to an engine supported by the installed azure.azcollection and the AKS network plugin. Workload NetworkPolicy resources define which Pod connections are allowed.
Potential impact
An unsupported engine can prevent cluster creation or updates. Pods outside an enforced policy can retain unnecessary connectivity.
Remediation
Check whether the existing cluster supports the change and assess possible disruption. Select the target Pods and deploy ingress and egress rules. Verify DNS, a required connection and a connection the rules should block.
Examples
Select the collection in the play to use the short module name shown. Supply a supported aks_kubernetes_version and complete the cluster authentication, node and network settings.
Before
- name: AKS 클러스터 생성
azure_rm_aks:
name: myAKS
location: eastus
resource_group: myResourceGroup
dns_prefix: akstest
kubernetes_version: "{{ aks_kubernetes_version }}"
network_profile:
network_policy: istio
agent_pool_profiles:
- name: default
count: 5
vm_size: Standard_D2_v2
After
- name: AKS 클러스터 생성
azure_rm_aks:
name: myAKS
location: eastus
resource_group: myResourceGroup
dns_prefix: akstest
kubernetes_version: "{{ aks_kubernetes_version }}"
network_profile:
network_policy: calico
agent_pool_profiles:
- name: default
count: 5
vm_size: Standard_D2_v2
istio is invalid for this field. The module accepts calico in the second example. Check that the target cluster supports that combination.