-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlogger-redis-deployment.yaml
More file actions
45 lines (45 loc) · 1.16 KB
/
logger-redis-deployment.yaml
File metadata and controls
45 lines (45 loc) · 1.16 KB
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
{{- if eq .Values.global.logger_redis_location "on-cluster" }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: drycc-logger-redis
labels:
heritage: drycc
annotations:
component.drycc.cc/version: {{ .Values.docker_tag }}
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: drycc-logger-redis
template:
metadata:
labels:
app: drycc-logger-redis
spec:
containers:
- name: drycc-logger-redis
image: {{.Values.docker_registry}}{{ .Values.org }}/redis:{{ .Values.docker_tag }}
imagePullPolicy: {{ .Values.pull_policy }}
{{- if or (.Values.limits_cpu) (.Values.limits_memory)}}
resources:
limits:
{{- if (.Values.limits_cpu) }}
cpu: {{.Values.limits_cpu}}
{{- end}}
{{- if (.Values.limits_memory) }}
memory: {{.Values.limits_memory}}
{{- end}}
{{- end}}
ports:
- containerPort: 6379
volumeMounts:
- name: logger-redis-creds
mountPath: /var/run/secrets/drycc/redis/creds
volumes:
- name: logger-redis-creds
secret:
secretName: logger-redis-creds
{{- end }}