forked from pittar/gitlab-ce-openshift
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitlab-redis-dc.yaml
68 lines (68 loc) · 1.56 KB
/
gitlab-redis-dc.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
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: gitlab-ce
name: gitlab-ce-redis
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
app: gitlab-ce
deploymentconfig: gitlab-ce-redis
strategy:
activeDeadlineSeconds: 21600
recreateParams:
timeoutSeconds: 600
resources: {}
type: Recreate
template:
metadata:
labels:
app: gitlab-ce
deploymentconfig: gitlab-ce-redis
spec:
containers:
- args:
- exec redis-server
command:
- /bin/sh
- -ec
imagePullPolicy: IfNotPresent
name: gitlab-ce-redis
ports:
- containerPort: 6379
protocol: TCP
resources:
limits:
cpu: "1"
memory: 512Mi
requests:
cpu: 100m
memory: 300Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data
name: gitlab-ce-volume-4
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: gitlab-ce-volume-4
persistentVolumeClaim:
claimName: gitlab-ce-redis-data
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- gitlab-ce-redis
from:
kind: ImageStreamTag
name: gitlab-ce-redis:5.0.4
namespace: gitlab
type: ImageChange