{% for artifact in artifacts %} apiVersion: v1 kind: Service metadata: name: {{ artifact.service_name }} namespace: {{ namespace }} {% if artifact.virtual_host %} annotations: traefik.ingress.kubernetes.io/service.passhostheader: "false" {% endif %} spec: type: ExternalName externalName: {{ artifact.external_name }} ports: - port: 80 targetPort: 80 {% if not loop.last %}--- {% endif %} {% endfor %}