{% for vlan in pillar['network']['vlan'] %} --- apiVersion: k8s.cni.cncf.io/v1 kind: NetworkAttachmentDefinition metadata: name: {{ vlan['zone'] }}-{{ vlan['id'] }} namespace: default spec: config: '{"cniVersion":"0.3.1","name":"{{ vlan['zone'] }}-{{ vlan['id'] }}","type":"bridge","bridge":"harvester-br0","promiscMode":true,"vlan":{{ vlan['id'] }},"ipam":{}}' {% endfor %}