forked from sourcegraph/deploy-sourcegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redis-cache.Deployment.yaml
70 lines (70 loc) · 1.83 KB
/
redis-cache.Deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
description: Redis for storing short-lived caches.
labels:
deploy: sourcegraph
sourcegraph-resource-requires: no-cluster-admin
app.kubernetes.io/component: redis
name: redis-cache
spec:
minReadySeconds: 10
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: redis-cache
strategy:
type: Recreate
template:
metadata:
labels:
deploy: sourcegraph
app: redis-cache
spec:
containers:
- env:
image: index.docker.io/sourcegraph/redis-cache:3.21.1@sha256:7820219195ab3e8fdae5875cd690fed1b2a01fd1063bd94210c0e9d529c38e56
terminationMessagePolicy: FallbackToLogsOnError
livenessProbe:
initialDelaySeconds: 30
tcpSocket:
port: redis
name: redis-cache
ports:
- containerPort: 6379
name: redis
readinessProbe:
initialDelaySeconds: 5
tcpSocket:
port: redis
resources:
limits:
cpu: "1"
memory: 6Gi
requests:
cpu: "1"
memory: 6Gi
volumeMounts:
- mountPath: /redis-data
name: redis-data
- image: index.docker.io/sourcegraph/redis_exporter:18-02-07_bb60087_v0.15.0@sha256:282d59b2692cca68da128a4e28d368ced3d17945cd1d273d3ee7ba719d77b753
terminationMessagePolicy: FallbackToLogsOnError
name: redis-exporter
ports:
- containerPort: 9121
name: redisexp
resources:
limits:
cpu: 10m
memory: 100Mi
requests:
cpu: 10m
memory: 100Mi
securityContext:
runAsUser: 0
volumes:
- name: redis-data
persistentVolumeClaim:
claimName: redis-cache