Rename vapp property;Configure node for private registry
This commit is contained in:
@ -69,7 +69,7 @@
|
||||
defaultReplicaCount: 1
|
||||
ingress:
|
||||
enabled: true
|
||||
host: storage.{{ vapp['guestinfo.fqdn'] }}
|
||||
host: storage.{{ vapp['metacluster.fqdn'] }}
|
||||
persistence:
|
||||
defaultClassReplicaCount: 1
|
||||
|
||||
@ -85,8 +85,8 @@
|
||||
expose:
|
||||
ingress:
|
||||
hosts:
|
||||
core: registry.{{ vapp['guestinfo.fqdn'] }}
|
||||
externalURL: https://registry.{{ vapp['guestinfo.fqdn'] }}
|
||||
core: registry.{{ vapp['metacluster.fqdn'] }}
|
||||
externalURL: https://registry.{{ vapp['metacluster.fqdn'] }}
|
||||
harborAdminPassword: "{{ vapp['guestinfo.rootpw'] }}"
|
||||
notary:
|
||||
enabled: false
|
||||
@ -98,7 +98,7 @@
|
||||
--dest-tls-verify=false \
|
||||
--dest-creds admin:{{ vapp['guestinfo.rootpw'] }} \
|
||||
docker-archive:./{{ item }} \
|
||||
docker://registry.{{ vapp['guestinfo.fqdn'] }}/library/$( \
|
||||
docker://registry.{{ vapp['metacluster.fqdn'] }}/library/$( \
|
||||
k3s ctr run \
|
||||
--rm \
|
||||
--mount type=bind,src=$PWD,dst=/data,options=rbind:ro \
|
||||
@ -118,6 +118,11 @@
|
||||
path: /opt/metacluster/container-images
|
||||
state: absent
|
||||
|
||||
- name: Configure K3s node for private registry
|
||||
ansible.builtin.template:
|
||||
dest: /etc/rancher/k3s/registries.yaml
|
||||
src: registries.j2
|
||||
|
||||
- name: Cleanup tempfile
|
||||
ansible.builtin.file:
|
||||
path: "{{ kubeconfig.path }}"
|
||||
|
Reference in New Issue
Block a user