Compare commits
2 Commits
95dea97382
...
9541942c23
| Author | SHA1 | Date | |
|---|---|---|---|
| 9541942c23 | |||
| 2f937aded7 |
@@ -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,34 @@
|
||||
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: Install gitea chart
|
||||
kubernetes.core.helm:
|
||||
name: gitea
|
||||
chart_ref: /opt/metacluster/helm-charts/gitea
|
||||
release_namespace: gitea
|
||||
create_namespace: yes
|
||||
wait: yes
|
||||
kubeconfig: "{{ kubeconfig.path }}"
|
||||
values:
|
||||
gitea:
|
||||
admin:
|
||||
username: admin
|
||||
password: "{{ vapp['guestinfo.rootpw'] }}"
|
||||
email: admin@{{ vapp['metacluster.fqdn'] }}
|
||||
image:
|
||||
pullPolicy: IfNotPresent
|
||||
ingress:
|
||||
hosts:
|
||||
- host: git.{{ vapp['metacluster.fqdn'] }}
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
|
||||
- name: Cleanup tempfile
|
||||
ansible.builtin.file:
|
||||
path: "{{ kubeconfig.path }}"
|
||||
|
||||
6
ansible/roles/firstboot/templates/registries.j2
Normal file
6
ansible/roles/firstboot/templates/registries.j2
Normal file
@@ -0,0 +1,6 @@
|
||||
mirrors:
|
||||
docker.io:
|
||||
endpoint:
|
||||
- "https://registry.{{ vapp['metacluster.fqdn'] }}
|
||||
rewrite:
|
||||
"(.*)": "library/docker.io/$1"
|
||||
@@ -51,6 +51,8 @@ dependencies:
|
||||
- quay.io/skopeo/stable:v1.8.0
|
||||
|
||||
static_binaries:
|
||||
- filename: tea
|
||||
url: https://dl.gitea.io/tea/0.8.0/tea-0.8.0-linux-amd64
|
||||
- filename: helm
|
||||
url: https://get.helm.sh/helm-v3.9.0-linux-amd64.tar.gz
|
||||
archive: compressed
|
||||
|
||||
@@ -35,7 +35,7 @@ PropertyCategories:
|
||||
|
||||
- Name: 1) Kubernetes
|
||||
ProductProperties:
|
||||
- Key: guestinfo.fqdn
|
||||
- Key: metacluster.fqdn
|
||||
Type: string(1..)
|
||||
Label: Appliance FQDN*
|
||||
Description: 'Respective subdomains will be available for each component (e.g. storage.example.org); this address should already be configured as a wildcard record within your DNS zone.'
|
||||
|
||||
Reference in New Issue
Block a user