-
Notifications
You must be signed in to change notification settings - Fork 9
/
helmrelease.yaml
96 lines (96 loc) · 2.38 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
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: &app redis
spec:
interval: 15m
chart:
spec:
chart: app-template
version: 3.0.4
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
interval: 15m
install:
createNamespace: true
remediation:
retries: 5
upgrade:
remediation:
strategy: rollback
retries: 5
values:
controllers:
redis:
type: statefulset
containers:
app:
image:
repository: redis
tag: 7.2.4-alpine
command:
- sh
args:
- -c
- >-
redis-server
probes:
liveness:
enabled: true
custom: true
spec:
exec:
command:
- sh
- -c
- /health/ping_liveness.sh 5
initialDelaySeconds: 5
timeoutSeconds: 6
periodSeconds: 5
successThreshold: 1
failureThreshold: 5
readiness:
enabled: true
custom: true
spec:
exec:
command:
- sh
- -c
- /health/ping_readiness.sh 1
initialDelaySeconds: 5
timeoutSeconds: 2
periodSeconds: 5
successThreshold: 1
failureThreshold: 5
resources:
requests:
cpu: 34m
memory: 204Mi
limits:
memory: 241Mi
env:
REDIS_PORT: "6379"
service:
app:
controller: *app
ports:
http:
port: 6379
persistence:
data:
enabled: true
existingClaim: redis
globalMounts:
- path: /data
healthcheck:
enabled: true
type: configMap
name: redis-healthcheck
defaultMode: 0755
globalMounts:
- path: /health