forked from navikt/narmesteleder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redis.yaml
71 lines (70 loc) · 1.54 KB
/
redis.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
---
apiVersion: "nais.io/v1alpha1"
kind: "Application"
metadata:
labels:
team: teamsykmelding
name: narmesteleder-redis
namespace: teamsykmelding
annotations:
nais.io/run-as-group: "0" # Fix permissions for bitnami/redis
nais.io/read-only-file-system: "false" # Fix permissions for bitnami/redis
spec:
image: bitnami/redis:latest # or a custom Redis-image
port: 6379
replicas: # A single Redis-app doesn't scale
min: 1
max: 1 # More replicas doesn't sync
resources: # you need to monitor the resource usage yourself
limits:
cpu: 250m
memory: 1Gi
requests:
cpu: 250m
memory: 1Gi
service:
port: 6379
protocol: redis
accessPolicy:
inbound:
rules:
- application: narmesteleder
- application: narmesteleder-redisexporter
envFrom:
- secret: narmesteleder-redis-password
---
apiVersion: "nais.io/v1alpha1"
kind: "Application"
metadata:
labels:
team: teamsykmelding
name: narmesteleder-redisexporter
namespace: teamsykmelding
spec:
image: oliver006/redis_exporter:latest
port: 9121
prometheus:
enabled: true
replicas:
min: 1
max: 1
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
liveness:
path: /health
accessPolicy:
outbound:
rules:
- application: narmesteleder-redis
env:
- name: REDIS_ADDR
value: narmesteleder-redis:6379
- name: REDIS_EXPORTER_LOG_FORMAT
value: json
envFrom:
- secret: narmesteleder-redis-password