8 Commits

Author SHA1 Message Date
27a5aacffd trying chatgpt trick 2024-12-29 18:10:09 +01:00
f26304e5b8 disabling ssl 2024-12-29 17:52:11 +01:00
cf39626324 same 2024-12-29 16:21:00 +01:00
42d2bdbf4a trying bypassing ssl verification 2024-12-29 15:55:45 +01:00
6b9f1792a6 adding debug mode 2024-12-29 00:36:34 +01:00
98e4812a3e removed superfluous prefix 2024-12-29 00:01:16 +01:00
88fd35d2fd added prefix 2024-12-28 23:52:17 +01:00
b6c96025d0 adding prefix and non cnpg database 2024-12-28 21:06:47 +01:00
12 changed files with 44 additions and 20 deletions

View File

@@ -28,4 +28,4 @@ spec:
syncOptions: syncOptions:
- ApplyOutOfSyncOnly=true - ApplyOutOfSyncOnly=true
- ServerSideApply=true - ServerSideApply=true
- CreateNamespace=true - CreateNamespace=true

View File

@@ -2,4 +2,4 @@ apiVersion: v2
name: odoo-argocd-apps name: odoo-argocd-apps
description: A Helm chart for deploying the requirements, main charts and postinstall as ArgoCD apps for Odoo description: A Helm chart for deploying the requirements, main charts and postinstall as ArgoCD apps for Odoo
type: application type: application
version: 0.1.0 version: 0.1.1

View File

@@ -1,7 +1,7 @@
apiVersion: argoproj.io/v1alpha1 apiVersion: argoproj.io/v1alpha1
kind: Application kind: Application
metadata: metadata:
name: odoo-chart name: {{ .Values.argocd.prefix }}odoo-chart
namespace: {{ .Values.argocd.namespace }} namespace: {{ .Values.argocd.namespace }}
annotations: annotations:
argocd.argoproj.io/sync-wave: "0" argocd.argoproj.io/sync-wave: "0"
@@ -13,8 +13,9 @@ spec:
chart: odoo chart: odoo
targetRevision: 28.x targetRevision: 28.x
helm: helm:
releaseName: odoo releaseName: {{ .Values.argocd.prefix }}odoo
valuesObject: valuesObject:
image.debug: {{ .Values.odoo.image.debug }}
odooEmail: {{ .Values.odoo.odooEmail }} odooEmail: {{ .Values.odoo.odooEmail }}
replicaCount: {{ .Values.odoo.replicaCount }} replicaCount: {{ .Values.odoo.replicaCount }}
resourcesPreset: {{ .Values.odoo.resourcesPreset }} resourcesPreset: {{ .Values.odoo.resourcesPreset }}
@@ -23,13 +24,15 @@ spec:
postgresql: postgresql:
enabled: false enabled: false
externalDatabase: externalDatabase:
host: odoo-db-rw host: {{ .Values.odoo.externalDatabase.host }}
port: 5432 port: {{ .Values.odoo.externalDatabase.port }}
user: app user: {{ .Values.odoo.externalDatabase.user }}
database: app database: {{ .Values.odoo.externalDatabase.database }}
create: false create: {{ .Values.odoo.externalDatabase.create }}
existingSecret: odoo-db-app existingSecret: {{ .Values.odoo.externalDatabase.passwordSecret.name }}
existingSecretPasswordKey: password 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: destination:
server: {{ .Values.destination.server }} server: {{ .Values.destination.server }}
namespace: {{ .Values.destination.namespace }} namespace: {{ .Values.destination.namespace }}

View File

@@ -1,7 +1,7 @@
apiVersion: argoproj.io/v1alpha1 apiVersion: argoproj.io/v1alpha1
kind: Application kind: Application
metadata: metadata:
name: odoo-postinstall name: {{ .Values.argocd.prefix }}odoo-postinstall
namespace: {{ .Values.argocd.namespace }} namespace: {{ .Values.argocd.namespace }}
annotations: annotations:
argocd.argoproj.io/sync-wave: "1" argocd.argoproj.io/sync-wave: "1"
@@ -15,6 +15,7 @@ spec:
helm: helm:
releaseName: odoo-postinstall releaseName: odoo-postinstall
valuesObject: valuesObject:
prefix: {{ .Values.argocd.prefix }}
tailscaleIngresses: tailscaleIngresses:
odooHostname: {{ .Values.tailscaleIngresses.odooHostname }} odooHostname: {{ .Values.tailscaleIngresses.odooHostname }}
destination: destination:

View File

@@ -1,7 +1,7 @@
apiVersion: argoproj.io/v1alpha1 apiVersion: argoproj.io/v1alpha1
kind: Application kind: Application
metadata: metadata:
name: odoo-requirements name: {{ .Values.argocd.prefix }}odoo-requirements
namespace: {{ .Values.argocd.namespace }} namespace: {{ .Values.argocd.namespace }}
annotations: annotations:
argocd.argoproj.io/sync-wave: "-1" argocd.argoproj.io/sync-wave: "-1"
@@ -15,8 +15,10 @@ spec:
helm: helm:
releaseName: odoo-requirements releaseName: odoo-requirements
valuesObject: valuesObject:
prefix: {{ .Values.argocd.prefix }}
odoo: odoo:
dbCluster: dbCluster:
enable: {{ .Values.odoo.dbCluster.enable }}
numInstances: {{ .Values.odoo.dbCluster.numInstances }} numInstances: {{ .Values.odoo.dbCluster.numInstances }}
size: {{ .Values.odoo.dbCluster.size }} size: {{ .Values.odoo.dbCluster.size }}
dataPvc: dataPvc:

View File

@@ -1,6 +1,7 @@
argocd: argocd:
namespace: argocd namespace: argocd
project: default project: default
prefix: null
requirements: requirements:
repoURL: "https://git.blarre.net/thomas/helm-charts.git" repoURL: "https://git.blarre.net/thomas/helm-charts.git"
targetRevision: HEAD targetRevision: HEAD
@@ -16,6 +17,7 @@ destination:
odoo: odoo:
dbCluster: dbCluster:
enable: true
numInstances: 3 numInstances: 3
size: 10Gi size: 10Gi
dataPvc: dataPvc:
@@ -25,6 +27,17 @@ odoo:
odooEmail: "admin@domain.net" odooEmail: "admin@domain.net"
resourcesPreset: "large" resourcesPreset: "large"
replicaCount: 1 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: tailscaleIngresses:
odooHostname: odoo odooHostname: odoo

View File

@@ -2,4 +2,4 @@ apiVersion: v2
name: odoo-postinstall name: odoo-postinstall
description: A Helm chart for deploying the postinall stuff for odoo, mainly the ingress description: A Helm chart for deploying the postinall stuff for odoo, mainly the ingress
type: application type: application
version: 0.1.0 version: 0.1.1

View File

@@ -1,13 +1,13 @@
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: ts-odoo name: {{ .Values.prefix}}ts-odoo
annotations: annotations:
tailscale.com/funnel: "true" tailscale.com/funnel: "true"
spec: spec:
defaultBackend: defaultBackend:
service: service:
name: odoo name: {{ .Values.prefix }}odoo
port: port:
name: http name: http
ingressClassName: tailscale ingressClassName: tailscale

View File

@@ -1,2 +1,3 @@
prefix: null
tailcaleIngresses: tailcaleIngresses:
odooHostname: odoo odooHostname: odoo

View File

@@ -2,4 +2,4 @@ apiVersion: v2
name: odoo-requirements name: odoo-requirements
description: A Helm chart for the requirements for Odoo description: A Helm chart for the requirements for Odoo
type: application type: application
version: 0.1.0 version: 0.1.1

View File

@@ -1,8 +1,10 @@
apiVersion: postgresql.cnpg.io/v1 {{- if .Values.odoo.dbCluster.enabled -}}
: postgresql.cnpg.io/v1
kind: Cluster kind: Cluster
metadata: metadata:
name: odoo-db name: {{ .Values.prefix }}odoo-db
spec: spec:
instances: {{ .Values.odoo.dbCluster.numInstances }} instances: {{ .Values.odoo.dbCluster.numInstances }}
storage: storage:
size: {{ .Values.odoo.dbCluster.size }} size: {{ .Values.odoo.dbCluster.size }}
{{- end }}

View File

@@ -1,5 +1,7 @@
prefix: null
odoo: odoo:
dbCluster: dbCluster:
enable: true
numInstances: 3 numInstances: 3
size: 10Gi size: 10Gi
dataPvc: dataPvc: