prole/infrastructure/roles/k3s/templates/registries.yaml.j2
chrisfu 598eae4633 Enable TLS for k3s registry and deploy SSL certs
- Add ssl_hosts group and prole_ssl role to deploy registry cert/key to /etc/ssl/certs/prole

- Configure k8s registry deployment to serve HTTPS using mounted host certs

- Switch k3s/containerd registry mirror config to https:// and prefer HTTPS checks with HTTP fallback

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-10 00:58:08 -07:00

15 lines
592 B
Django/Jinja

mirrors:
'{{ k3s_registry_host_resolved }}:{{ k3s_registry_port }}':
endpoint:
- "https://{{ k3s_registry_host_resolved }}:{{ k3s_registry_port }}"
'registry.{{ k3s_registry_namespace_resolved }}.svc.cluster.local:{{ k3s_registry_port }}':
endpoint:
- "https://{{ k3s_registry_host_resolved }}:{{ k3s_registry_port }}"
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