prole/infrastructure/roles/k3s/templates/registries.yaml.j2
chrisfu fdc1582bd0 Fix DB image build and k3s registry/CNPG robustness
- update Percona Dockerfiles for compatible extension/tooling install flow\n- add HTTP/HTTPS-aware k3s registry configuration path across scripts/Ansible\n- harden CNPG TLS bootstrap CN handling for long namespaces and add regression test\n- improve namespace reset pod-deletion wait behavior

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-29 19:35:37 -07:00

18 lines
773 B
Django/Jinja

{% set _scheme = (k3s_registry_endpoint_scheme_resolved | default(k3s_registry_endpoint_scheme | default('http')) | lower) %}
mirrors:
'{{ k3s_registry_host_resolved }}:{{ k3s_registry_port }}':
endpoint:
- "{{ _scheme }}://{{ k3s_registry_host_resolved }}:{{ k3s_registry_port }}"
'registry.{{ k3s_registry_namespace_resolved }}.svc.cluster.local:{{ k3s_registry_port }}':
endpoint:
- "{{ _scheme }}://{{ k3s_registry_host_resolved }}:{{ k3s_registry_port }}"
{% if _scheme != 'http' %}
configs:
'{{ k3s_registry_host_resolved }}:{{ k3s_registry_port }}':
tls:
insecure_skip_verify: true
'registry.{{ k3s_registry_namespace_resolved }}.svc.cluster.local:{{ k3s_registry_port }}':
tls:
insecure_skip_verify: true
{% endif %}