-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathredis-commander.yml.j2
86 lines (85 loc) · 1.95 KB
/
redis-commander.yml.j2
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
# Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: redis-commander
{% if managed_platform %}
labels:
app-code: "{{ appcode }}"
service-phase: "{{ servicephase }}"
cost-center: "{{ costcenter }}"
{% endif %}
spec:
selector:
matchLabels:
component: redis-commander
template:
metadata:
labels:
component: redis-commander
{% if managed_platform %}
paas.redhat.com/appcode: {{ appcode }}
{% endif %}
spec:
containers:
- name: redis-commander
image: rediscommander/redis-commander
env:
- name: REDIS_HOST
value: {{ redis_hostname }}
- name: REDIS_PORT
value: "6379"
- name: HTTP_USER
valueFrom:
secretKeyRef:
key: redis-commander-user
name: redis-commander-secret
- name: HTTP_PASSWORD
valueFrom:
secretKeyRef:
key: redis-commander-password
name: redis-commander-secret
ports:
- containerPort: 8081
resources:
# requests and limits have to be the same to have Guaranteed QoS
requests:
memory: "32Mi"
cpu: "10m"
limits:
memory: "32Mi"
cpu: "10m"
replicas: 1
strategy:
type: Recreate
---
apiVersion: v1
kind: Service
metadata:
name: redis-commander
spec:
ports:
- name: "8081"
port: 8081
targetPort: 8081
selector:
component: redis-commander
---
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: redis-commander
{% if managed_platform %}
labels:
paas.redhat.com/appcode: {{ appcode }}
shard: external
{% endif %}
spec:
to:
kind: Service
name: redis-commander
tls:
termination: edge
insecureEdgeTerminationPolicy: None