Add cert to k3s to pull from local registry
This commit is contained in:
parent
56358bec46
commit
e22d2d167b
2 changed files with 20 additions and 0 deletions
4
ansible/roles/k3s/files/registries.yaml
Normal file
4
ansible/roles/k3s/files/registries.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
configs:
|
||||||
|
"docker-repo.service.masked.name:5000":
|
||||||
|
tls:
|
||||||
|
cert_file: /etc/pki/certs/MaskedName_Root_CA.crt
|
|
@ -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
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue