2 Commits

Author SHA1 Message Date
9541942c23 Install gitea chart;Add tea cli binary
Some checks failed
continuous-integration/drone/push Build is failing
2022-07-03 15:08:57 +02:00
2f937aded7 Rename vapp property;Configure node for private registry 2022-07-03 14:52:01 +02:00
4 changed files with 41 additions and 5 deletions

View File

@@ -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 }}"

View File

@@ -0,0 +1,6 @@
mirrors:
docker.io:
endpoint:
- "https://registry.{{ vapp['metacluster.fqdn'] }}
rewrite:
"(.*)": "library/docker.io/$1"

View File

@@ -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

View File

@@ -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.'