provisioning/templates/services/k8s-deploy/prxy-virtual-srvc-deploy.yaml.j2
Jesús Pérez 44648e3206
chore: complete nickel migration and consolidate legacy configs
- Remove KCL ecosystem (~220 files deleted)
- Migrate all infrastructure to Nickel schema system
- Consolidate documentation: legacy docs → provisioning/docs/src/
- Add CI/CD workflows (.github/) and Rust build config (.cargo/)
- Update core system for Nickel schema parsing
- Update README.md and CHANGES.md for v5.0.0 release
- Fix pre-commit hooks: end-of-file, trailing-whitespace
- Breaking changes: KCL workspaces require migration
- Migration bridge available in docs/src/development/
2026-01-08 09:55:37 +00:00

38 lines
927 B
Django/Jinja

---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: {{k8s_deploy.name}}-{{k8s_deploy.namespace}}
namespace: istio-system
spec:
hosts:
{%- for host in k8s_deploy.prxyVirtualService.hosts %}
- "{{host}}"
{%- endfor %}
gateways:
- "{{k8s_deploy.namespace}}-gwy"
{%- if k8s_deploy.prxyVirtualService.matches %}
{%- for item in k8s_deploy.prxyVirtualService.matches %}
{{item.typ}}:
- match:
{%- for loc in item.location %}
- port: {{loc.port}}
{%- if loc.sniHosts %}
sniHosts:
{%- for sni_host in loc.sniHosts %}
- "{{sni_host}}"
{%- endfor %}
{%- endif %}
{%- endfor %}
{%- if item.route_destination %}
route:
- destination:
{%- for dest in item.route_destination %}
port:
number: {{dest.port_number}}
host: "{{dest.host}}"
{%- endfor %}
{%- endif %}
{%- endfor %}
{%- endif %}