kubernetes/apps/ai/hermes-matrix/app/helmrelease.yaml
1
---
2
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s-labs/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
3
apiVersion: helm.toolkit.fluxcd.io/v2
4
kind: HelmRelease
5
metadata:
6
name: hermes-matrix
7
spec:
8
chartRef:
9
kind: OCIRepository
10
name: hermes-matrix
11
interval: 1h
12
values:
13
defaultPodOptions:
14
securityContext:
15
fsGroup: 65534
16
fsGroupChangePolicy: OnRootMismatch
17
runAsGroup: 65534
18
runAsNonRoot: true
19
runAsUser: 65534
20
seccompProfile:
21
type: RuntimeDefault
22
controllers:
23
hermes-matrix:
24
annotations:
25
reloader.stakater.com/auto: "true"
26
replicas: 1
27
strategy: Recreate
28
type: deployment
29
initContainers:
30
patch-matrix:
31
image:
32
repository: registry.erwanleboucher.dev/eleboucher/hermes-matrix
33
tag: 0.15.2-33e1668
34
command:
35
- sh
36
- -c
37
- |
38
set -eu
39
python3 /run/config/patch-matrix.py \
40
/usr/local/lib/python3.12/site-packages/gateway/platforms/matrix.py \
41
/patched/matrix.py
42
cp /run/secret/config.yaml /data/config.yaml
43
chmod 600 /data/config.yaml
44
securityContext:
45
allowPrivilegeEscalation: false
46
capabilities:
47
drop:
48
- ALL
49
containers:
50
app:
51
image:
52
repository: registry.erwanleboucher.dev/eleboucher/hermes-matrix
53
tag: 0.15.2-33e1668
54
env:
55
HERMES_HOME: /data
56
MATRIX_ENCRYPTION: "true"
57
GATEWAY_PROXY_URL: http://hermes.ai.svc.cluster.local:8642
58
envFrom:
59
- secretRef:
60
name: hermes-matrix
61
resources:
62
requests:
63
cpu: 25m
64
memory: 256Mi
65
limits:
66
memory: 1Gi
67
securityContext:
68
allowPrivilegeEscalation: false
69
capabilities:
70
drop:
71
- ALL
72
persistence:
73
data:
74
existingClaim: hermes-matrix
75
advancedMounts:
76
hermes-matrix:
77
patch-matrix:
78
- path: /data
79
app:
80
- path: /data
81
patched:
82
type: emptyDir
83
advancedMounts:
84
hermes-matrix:
85
patch-matrix:
86
- path: /patched
87
app:
88
- path: /usr/local/lib/python3.12/site-packages/gateway/platforms/matrix.py
89
subPath: matrix.py
90
config:
91
type: configMap
92
name: hermes-matrix-configmap
93
advancedMounts:
94
hermes-matrix:
95
patch-matrix:
96
- path: /run/config
97
config-secret:
98
type: secret
99
name: hermes-matrix-config
100
defaultMode: 0o400
101
advancedMounts:
102
hermes-matrix:
103
patch-matrix:
104
- path: /run/secret
105
tmp:
106
type: emptyDir
107
globalMounts:
108
- path: /tmp