This repository has been archived by the owner on Jun 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathservice.cache.yml
91 lines (91 loc) · 2.04 KB
/
service.cache.yml
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
87
88
89
90
91
apiVersion: v1
kind: List
items:
- apiVersion: apps/v1
kind: Deployment
metadata:
name: cache-server
labels:
app: cache-server
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: cache-server
template:
metadata:
labels:
app: cache-server
spec:
containers:
- name: cache-server
image: registry.access.redhat.com/jboss-datagrid-7/datagrid73-openshift:1.6
livenessProbe:
exec:
command:
- "/bin/bash"
- "-c"
- "/opt/datagrid/bin/livenessProbe.sh"
readinessProbe:
exec:
command:
- "/bin/bash"
- "-c"
- "/opt/datagrid/bin/readinessProbe.sh"
env:
- name: DEFAULT_CACHE_EXPIRATION_LIFESPAN
value: "10000"
- name: INFINISPAN_CONNECTORS
value: hotrod
ports:
- containerPort: 8778
protocol: TCP
- containerPort: 11211
protocol: TCP
- containerPort: 11222
protocol: TCP
- containerPort: 11333
protocol: TCP
- containerPort: 8080
protocol: TCP
- containerPort: 9990
protocol: TCP
- containerPort: 8443
protocol: TCP
- apiVersion: v1
kind: Service
metadata:
name: cache-server
labels:
app: cache-server
spec:
type: ClusterIP
selector:
app: cache-server
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080
- name: 8443-tcp
port: 8443
protocol: TCP
targetPort: 8443
- name: 8778-tcp
port: 8778
protocol: TCP
targetPort: 8778
- name: 11211-tcp
port: 11211
protocol: TCP
targetPort: 11211
- name: 11222-tcp
port: 11222
protocol: TCP
targetPort: 11222
- name: 11333-tcp
port: 11333
protocol: TCP
targetPort: 11333