Refine templating #4;Update sizing
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cb97703406
commit
2be42989e5
@ -24,7 +24,7 @@
|
|||||||
- name: Inject chart values into ansible var files
|
- name: Inject chart values into ansible var files
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /opt/firstboot/ansible/vars/metacluster.yml
|
path: /opt/firstboot/ansible/vars/metacluster.yml
|
||||||
block: >2
|
block: |
|
||||||
{{ item.key }}:
|
{{ item.key }}:
|
||||||
{{ item.value.helm.chart_values | default(omit) }}
|
{{ item.value.helm.chart_values | default(omit) }}
|
||||||
marker: "# {mark} ANSIBLE MANAGED BLOCK -- {{ item.key }}"
|
marker: "# {mark} ANSIBLE MANAGED BLOCK -- {{ item.key }}"
|
||||||
|
@ -20,51 +20,51 @@ components:
|
|||||||
version: 1.3.0
|
version: 1.3.0
|
||||||
chart: longhorn/longhorn
|
chart: longhorn/longhorn
|
||||||
parse_logic: cat values.yaml | yq eval '.. | select(has("repository")) | .repository + ":" + .tag'
|
parse_logic: cat values.yaml | yq eval '.. | select(has("repository")) | .repository + ":" + .tag'
|
||||||
chart_values: |2
|
chart_values: |4
|
||||||
defaultSettings:
|
defaultSettings:
|
||||||
defaultDataPath: /mnt/blockstorage
|
defaultDataPath: /mnt/blockstorage
|
||||||
defaultReplicaCount: 1
|
defaultReplicaCount: 1
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
host: storage.[% vapp['metacluster.fqdn'] %]
|
host: storage.[% vapp['metacluster.fqdn'] %]
|
||||||
persistence:
|
persistence:
|
||||||
defaultClassReplicaCount: 1
|
defaultClassReplicaCount: 1
|
||||||
|
|
||||||
harbor:
|
harbor:
|
||||||
helm:
|
helm:
|
||||||
version: 1.9.1 # (= Harbor v2.5.1)
|
version: 1.9.1 # (= Harbor v2.5.1)
|
||||||
chart: harbor/harbor
|
chart: harbor/harbor
|
||||||
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | awk '!/ /'
|
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | awk '!/ /'
|
||||||
chart_values: |2
|
chart_values: |4
|
||||||
expose:
|
expose:
|
||||||
ingress:
|
ingress:
|
||||||
hosts:
|
hosts:
|
||||||
core: registry.[% vapp['metacluster.fqdn'] %]
|
core: registry.[% vapp['metacluster.fqdn'] %]
|
||||||
externalURL: https://registry.[% vapp['metacluster.fqdn'] %]
|
externalURL: https://registry.[% vapp['metacluster.fqdn'] %]
|
||||||
harborAdminPassword: "[% vapp['guestinfo.rootpw'] %]"
|
harborAdminPassword: "[% vapp['guestinfo.rootpw'] %]"
|
||||||
notary:
|
notary:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
gitea:
|
gitea:
|
||||||
helm:
|
helm:
|
||||||
version: v5.0.9 # (= Gitea v1.16.8)
|
version: v5.0.9 # (= Gitea v1.16.8)
|
||||||
chart: gitea-charts/gitea
|
chart: gitea-charts/gitea
|
||||||
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | sed '/:/!s/$/:latest/'
|
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | sed '/:/!s/$/:latest/'
|
||||||
chart_values: |2
|
chart_values: |4
|
||||||
gitea:
|
gitea:
|
||||||
admin:
|
admin:
|
||||||
username: administrator
|
username: administrator
|
||||||
password: "[% vapp['guestinfo.rootpw'] %]"
|
password: "[% vapp['guestinfo.rootpw'] %]"
|
||||||
email: admin@[% vapp['metacluster.fqdn'] %]
|
email: admin@[% vapp['metacluster.fqdn'] %]
|
||||||
image:
|
image:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
hosts:
|
hosts:
|
||||||
- host: git.[% vapp['metacluster.fqdn'] %]
|
- host: git.[% vapp['metacluster.fqdn'] %]
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
|
||||||
argo-cd:
|
argo-cd:
|
||||||
helm:
|
helm:
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
DeploymentConfigurations:
|
DeploymentConfigurations:
|
||||||
|
|
||||||
- Id: small
|
|
||||||
Label: 'Ubuntu Server 22.04 [SMALL: 1 vCPU/2GB RAM]'
|
|
||||||
Description: Ubuntu Server 22.04.x
|
|
||||||
Size:
|
|
||||||
CPU: 1
|
|
||||||
Memory: 2048
|
|
||||||
|
|
||||||
- Id: medium
|
- Id: medium
|
||||||
Label: 'Ubuntu Server 22.04 [MEDIUM: 2 vCPU/4GB RAM]'
|
Label: 'Ubuntu Server 22.04 [MEDIUM: 2 vCPU/4GB RAM]'
|
||||||
Description: Ubuntu Server 22.04.x
|
Description: Ubuntu Server 22.04.x
|
||||||
@ -14,6 +7,13 @@ DeploymentConfigurations:
|
|||||||
CPU: 2
|
CPU: 2
|
||||||
Memory: 4096
|
Memory: 4096
|
||||||
|
|
||||||
|
- Id: large
|
||||||
|
Label: 'Ubuntu Server 22.04 [LARGE: 2 vCPU/8GB RAM]'
|
||||||
|
Description: Ubuntu Server 22.04.x
|
||||||
|
Size:
|
||||||
|
CPU: 2
|
||||||
|
Memory: 8192
|
||||||
|
|
||||||
DynamicDisks:
|
DynamicDisks:
|
||||||
|
|
||||||
- Description: Longhorn persistent storage
|
- Description: Longhorn persistent storage
|
||||||
@ -29,8 +29,8 @@ PropertyCategories:
|
|||||||
# - Key: deployment.type
|
# - Key: deployment.type
|
||||||
# Type: string
|
# Type: string
|
||||||
# Value:
|
# Value:
|
||||||
# - small
|
|
||||||
# - medium
|
# - medium
|
||||||
|
# - large
|
||||||
# UserConfigurable: false
|
# UserConfigurable: false
|
||||||
|
|
||||||
- Name: 1) Kubernetes
|
- Name: 1) Kubernetes
|
||||||
|
Loading…
Reference in New Issue
Block a user