Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .hazyforge/clusters/anvil-primaris/namespace/chat2db/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
helmChartPath: charts/chat2db

image:
repository: ghcr.io/hazyforge/chat2db
tag: sha-ffc6a41
digest: sha256:1f7d6beeddbb3a25cb463ce507f1c13f2fb6aeb821239032e0efa66678b13a57
pullPolicy: IfNotPresent

imagePullSecrets:
- name: ghcr-creds

persistence:
storageClassName: observability-local
accessModes:
- ReadWriteOnce
size: 10Gi

encryptionKey:
existingSecret: chat2db-encryption-key
secretKey: encryption.key
mountPath: /run/secrets/chat2db-community-encryption.key

cors:
allowedOrigin: https://chat2db.hazyforge.io

resources:
requests:
cpu: 500m
memory: 1Gi
limits:
cpu: "2"
memory: 4Gi

nodeSelector:
kubernetes.io/hostname: z400

networkPolicy:
enabled: true
allowedIngress:
namespace: oauth2-proxy
podLabels:
app.kubernetes.io/name: oauth2-proxy
app.kubernetes.io/instance: chat2db
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: chat2db-encryption-key
namespace: chat2db
spec:
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: azurekv-cluster-secret-store
target:
name: chat2db-encryption-key
creationPolicy: Owner
deletionPolicy: Retain
template:
type: Opaque
data:
encryption.key: "{{ .encryptionKey }}"
data:
- secretKey: encryptionKey
remoteRef:
key: secret/chat2db-community-encryption-key
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: ghcr-creds
namespace: chat2db
spec:
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: azurekv-cluster-secret-store
target:
name: ghcr-creds
creationPolicy: Owner
template:
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: '{"auths":{"ghcr.io":{"username":"hazyforge","password":"{{ .pat }}","auth":"{{ printf "%s:%s" "hazyforge" .pat | b64enc }}"}}}'
data:
- secretKey: pat
remoteRef:
key: secret/anvil-primaris-ghcr-read-pat
Loading