-
Notifications
You must be signed in to change notification settings - Fork 1
/
helmrelease.yaml
107 lines (100 loc) · 2.7 KB
/
helmrelease.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: obsidian-couchdb
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.0.4
interval: 30m
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
values:
controllers:
main:
annotations:
reloader.stakater.com/auto: "true"
pod:
securityContext:
runAsUser: ${APP_UID}
runAsGroup: ${APP_GID}
fsGroup: ${APP_GID}
fsGroupChangePolicy: "OnRootMismatch"
initContainers:
init-config:
image:
repository: public.ecr.aws/docker/library/busybox
tag: latest@sha256:5eef5ed34e1e1ff0a4ae850395cbf665c4de6b4b83a32a0bc7bcb998e24e7bbb
pullPolicy: IfNotPresent
command:
- "/bin/sh"
- "-c"
- "cp /tmp/config/*.ini /opt/couchdb/etc/default.d/; ls -lrt /opt/couchdb/etc/default.d;"
containers:
main:
image:
repository: public.ecr.aws/docker/library/couchdb
tag: 3.3.3
env:
COUCHDB_USER:
valueFrom:
secretKeyRef:
name: obsidian-couchdb-secret
key: COUCHDB_USER
COUCHDB_PASSWORD:
valueFrom:
secretKeyRef:
name: obsidian-couchdb-secret
key: COUCHDB_PASSWORD
resources:
requests:
cpu: 48m
memory: 146M
limits:
memory: 146M
service:
main:
ports:
http:
port: 5984
ingress:
main:
enabled: true
className: "external-nginx"
hosts:
- host: "${HOSTNAME}"
paths:
- path: /
service:
name: main
port: http
tls:
- hosts:
- "${HOSTNAME}"
persistence:
config:
enabled: true
type: configMap
name: obsidian-couchdb-configmap
advancedMounts:
main:
init-config:
- path: /tmp/config
data:
enabled: true
existingClaim: "${VOLSYNC_CLAIM}"
advancedMounts:
main:
main:
- path: /opt/couchdb/data
config-storage:
enabled: true
type: emptyDir
globalMounts:
- path: /opt/couchdb/etc/default.d