feat: support haproxy

This commit is contained in:
Janik von Rotz committed 2025-04-17 18:52:57 +02:00
1 parent 753493168d
commit 76bcd2c2ec
7 files changed
+22 -11

No files matched your search

+2 -1
View File
@@ -5,4 +5,5 @@ tmp
manifest.yaml
.obsidian/appearance.json
.obsidian/graph.json
.obsidian/workspace.json
.obsidian/workspace.json
odoo/charts
+7 -1
View File
@@ -58,7 +58,7 @@ psotgres:
enabled: false
```
Confirm with *Create*
Confirm with *Create*.
## Develop
@@ -95,6 +95,12 @@ task start-minikube
Ensure you have `kubectl` installed and can access the cluster.
Add this repo for Chart dependencies.
```bash
task add-repo
```
The following command applies the Odoo chart:
```bash
Binary file not shown.
+10 -2
View File
@@ -1,3 +1,13 @@
{{- if eq .Values.ingress.className "haproxy" }}
---
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
name: haproxy
spec:
controller: haproxy-ingress.github.io/controller
{{- end }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
@@ -8,9 +18,7 @@ metadata:
nginx.ingress.kubernetes.io/rewrite-target: /
{{- end }}
spec:
{{- if eq .Values.ingress.className "nginx" }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
rules:
- host: {{ .Values.ingress.host }}
http:
+1 -1
View File
@@ -10,7 +10,7 @@ data:
PGHOST: {{ .Values.postgres.host | b64enc | quote }}
PGUSER: {{ .Values.postgres.user | b64enc | quote }}
PGPASSWORD: {{ .Values.postgres.password | b64enc | quote }}
ODOO_DATABASE: {{ .Values.odoo.database | quote }}
ODOO_DATABASE: {{ .Values.odoo.database | b64enc | quote }}
{{- end }}
{{- if .Values.vshnpostgresql.enabled }}
PGHOST: '{{ (lookup "v1" "Secret" .Release.Namespace "postgresql-credentials").data.POSTGRESQL_HOST | b64dec }}'
+1 -4
View File
@@ -1,21 +1,18 @@
ingress:
className: haproxy
host: odoo.cloud.local
vshnpostgresql:
enabled: false
postgres:
enabled: true
host: postgres
user: odoo
password: odoo
odoo:
image: mintsystem/odoo:18.0.20250401
host: odoo
proxyMode: True
addonsGitRepos: "https://github.com/Mint-System/Odoo-Apps-Server-Tools.git#18.0,https://github.com/OCA/Server-Tools.git#18.0"
database: "odoo"
database: odoo
initLang: de_CH
listDB: False
+1 -2
View File
@@ -178,7 +178,6 @@ function test-k8s() {
delete-kind
else
start-kind
install-chart postgres
install-chart odoo
fi
}
@@ -224,7 +223,7 @@ function list() {
helm list
}
function package-repo() {
function pacage-repo() {
echo "Package Helm Charts."
helm package postgres
helm package odoo