Compare commits
8 Commits
main
...
odoo-rewor
| Author | SHA1 | Date | |
|---|---|---|---|
| 27a5aacffd | |||
| f26304e5b8 | |||
| cf39626324 | |||
| 42d2bdbf4a | |||
| 6b9f1792a6 | |||
| 98e4812a3e | |||
| 88fd35d2fd | |||
| b6c96025d0 |
@@ -28,4 +28,4 @@ spec:
|
||||
syncOptions:
|
||||
- ApplyOutOfSyncOnly=true
|
||||
- ServerSideApply=true
|
||||
- CreateNamespace=true
|
||||
- CreateNamespace=true
|
||||
@@ -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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: odoo-chart
|
||||
name: {{ .Values.argocd.prefix }}odoo-chart
|
||||
namespace: {{ .Values.argocd.namespace }}
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "0"
|
||||
@@ -13,8 +13,9 @@ spec:
|
||||
chart: odoo
|
||||
targetRevision: 28.x
|
||||
helm:
|
||||
releaseName: odoo
|
||||
releaseName: {{ .Values.argocd.prefix }}odoo
|
||||
valuesObject:
|
||||
image.debug: {{ .Values.odoo.image.debug }}
|
||||
odooEmail: {{ .Values.odoo.odooEmail }}
|
||||
replicaCount: {{ .Values.odoo.replicaCount }}
|
||||
resourcesPreset: {{ .Values.odoo.resourcesPreset }}
|
||||
@@ -23,13 +24,15 @@ 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 }}
|
||||
sslmode: require
|
||||
extraOptions: sslrootcert=/opt/ssl/root.crt sslcert=/opt/ssl/postgresql.crt sslkey=/opt/ssl/postgresql.key
|
||||
destination:
|
||||
server: {{ .Values.destination.server }}
|
||||
namespace: {{ .Values.destination.namespace }}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: odoo-postinstall
|
||||
name: {{ .Values.argocd.prefix }}odoo-postinstall
|
||||
namespace: {{ .Values.argocd.namespace }}
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
@@ -15,6 +15,7 @@ spec:
|
||||
helm:
|
||||
releaseName: odoo-postinstall
|
||||
valuesObject:
|
||||
prefix: {{ .Values.argocd.prefix }}
|
||||
tailscaleIngresses:
|
||||
odooHostname: {{ .Values.tailscaleIngresses.odooHostname }}
|
||||
destination:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: odoo-requirements
|
||||
name: {{ .Values.argocd.prefix }}odoo-requirements
|
||||
namespace: {{ .Values.argocd.namespace }}
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "-1"
|
||||
@@ -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,17 @@ 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
|
||||
image:
|
||||
debug: false
|
||||
|
||||
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 }}
|
||||
size: {{ .Values.odoo.dbCluster.size }}
|
||||
{{- end }}
|
||||
@@ -1,5 +1,7 @@
|
||||
prefix: null
|
||||
odoo:
|
||||
dbCluster:
|
||||
enable: true
|
||||
numInstances: 3
|
||||
size: 10Gi
|
||||
dataPvc:
|
||||
|
||||
Reference in New Issue
Block a user