Add cert to k3s to pull from local registry

This commit is contained in:
Amarpreet Minhas 2022-08-06 15:43:00 -04:00
parent 56358bec46
commit e22d2d167b
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,4 @@
configs:
"docker-repo.service.masked.name:5000":
tls:
cert_file: /etc/pki/certs/MaskedName_Root_CA.crt

View file

@ -29,4 +29,20 @@
src: /usr/local/bin/k3s src: /usr/local/bin/k3s
dest: /usr/local/bin/kubernetes dest: /usr/local/bin/kubernetes
state: link state: link
- name: ensure k3s directory
file:
path: /etc/rancher/k3s
state: directory
owner: root
group: root
mode: 0755
- name: copy registries file
copy:
src: files/registries.yaml
dest: /etc/rancher/k3s/registries.yaml
owner: root
group: root
mode: 0644
... ...