adding prefix and non cnpg database
This commit is contained in:
@@ -2,4 +2,4 @@ apiVersion: v2
|
||||
name: odoo-argocd-apps
|
||||
description: A Helm chart for deploying the requirements, main charts and postinstall as ArgoCD apps for Odoo
|
||||
type: application
|
||||
version: 0.1.0
|
||||
version: 0.1.1
|
||||
|
||||
@@ -13,7 +13,7 @@ spec:
|
||||
chart: odoo
|
||||
targetRevision: 28.x
|
||||
helm:
|
||||
releaseName: odoo
|
||||
releaseName: {{ .Values.argocd.prefix }}odoo
|
||||
valuesObject:
|
||||
odooEmail: {{ .Values.odoo.odooEmail }}
|
||||
replicaCount: {{ .Values.odoo.replicaCount }}
|
||||
@@ -23,13 +23,13 @@ spec:
|
||||
postgresql:
|
||||
enabled: false
|
||||
externalDatabase:
|
||||
host: odoo-db-rw
|
||||
port: 5432
|
||||
user: app
|
||||
database: app
|
||||
create: false
|
||||
existingSecret: odoo-db-app
|
||||
existingSecretPasswordKey: password
|
||||
host: {{ .Values.odoo.externalDatabase.host }}
|
||||
port: {{ .Values.odoo.externalDatabase.port }}
|
||||
user: {{ .Values.odoo.externalDatabase.user }}
|
||||
database: {{ .Values.odoo.externalDatabase.database }}
|
||||
create: {{ .Values.odoo.externalDatabase.create }}
|
||||
existingSecret: {{ .Values.odoo.externalDatabase.passwordSecret.name }}
|
||||
existingSecretPasswordKey: {{ .Values.odoo.externalDatabase.passwordSecret.key }}
|
||||
destination:
|
||||
server: {{ .Values.destination.server }}
|
||||
namespace: {{ .Values.destination.namespace }}
|
||||
|
||||
@@ -15,6 +15,7 @@ spec:
|
||||
helm:
|
||||
releaseName: odoo-postinstall
|
||||
valuesObject:
|
||||
prefix: {{ .Values.argocd.prefix }}
|
||||
tailscaleIngresses:
|
||||
odooHostname: {{ .Values.tailscaleIngresses.odooHostname }}
|
||||
destination:
|
||||
|
||||
@@ -15,8 +15,10 @@ spec:
|
||||
helm:
|
||||
releaseName: odoo-requirements
|
||||
valuesObject:
|
||||
prefix: {{ .Values.argocd.prefix }}
|
||||
odoo:
|
||||
dbCluster:
|
||||
enable: {{ .Values.odoo.dbCluster.enable }}
|
||||
numInstances: {{ .Values.odoo.dbCluster.numInstances }}
|
||||
size: {{ .Values.odoo.dbCluster.size }}
|
||||
dataPvc:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
argocd:
|
||||
namespace: argocd
|
||||
project: default
|
||||
prefix: null
|
||||
requirements:
|
||||
repoURL: "https://git.blarre.net/thomas/helm-charts.git"
|
||||
targetRevision: HEAD
|
||||
@@ -16,6 +17,7 @@ destination:
|
||||
|
||||
odoo:
|
||||
dbCluster:
|
||||
enable: true
|
||||
numInstances: 3
|
||||
size: 10Gi
|
||||
dataPvc:
|
||||
@@ -25,6 +27,15 @@ odoo:
|
||||
odooEmail: "admin@domain.net"
|
||||
resourcesPreset: "large"
|
||||
replicaCount: 1
|
||||
externalDatabase:
|
||||
host: odoo-db-rw
|
||||
port: 5432
|
||||
user: app
|
||||
database: app
|
||||
create: false
|
||||
passwordSecret:
|
||||
name: odoo-db-secret
|
||||
key: password
|
||||
|
||||
tailscaleIngresses:
|
||||
odooHostname: odoo
|
||||
@@ -2,4 +2,4 @@ apiVersion: v2
|
||||
name: odoo-postinstall
|
||||
description: A Helm chart for deploying the postinall stuff for odoo, mainly the ingress
|
||||
type: application
|
||||
version: 0.1.0
|
||||
version: 0.1.1
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: ts-odoo
|
||||
name: {{ .Values.prefix}}ts-odoo
|
||||
annotations:
|
||||
tailscale.com/funnel: "true"
|
||||
spec:
|
||||
defaultBackend:
|
||||
service:
|
||||
name: odoo
|
||||
name: {{ .Values.prefix }}odoo
|
||||
port:
|
||||
name: http
|
||||
ingressClassName: tailscale
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
prefix: null
|
||||
tailcaleIngresses:
|
||||
odooHostname: odoo
|
||||
@@ -2,4 +2,4 @@ apiVersion: v2
|
||||
name: odoo-requirements
|
||||
description: A Helm chart for the requirements for Odoo
|
||||
type: application
|
||||
version: 0.1.0
|
||||
version: 0.1.1
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
{{- if .Values.odoo.dbCluster.enabled -}}
|
||||
: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: odoo-db
|
||||
name: {{ .Values.prefix }}odoo-db
|
||||
spec:
|
||||
instances: {{ .Values.odoo.dbCluster.numInstances }}
|
||||
storage:
|
||||
size: {{ .Values.odoo.dbCluster.size }}
|
||||
{{- end }}
|
||||
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ .Values.odoo.dataPvc.name }}
|
||||
name: {{ .Values.prefix }}{{ .Values.odoo.dataPvc.name }}
|
||||
spec:
|
||||
storageClassName: {{ .Values.odoo.dataPvc.storageClassName }}
|
||||
accessModes:
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
prefix: null
|
||||
odoo:
|
||||
dbCluster:
|
||||
enable: true
|
||||
numInstances: 3
|
||||
size: 10Gi
|
||||
dataPvc:
|
||||
|
||||
Reference in New Issue
Block a user