-
Notifications
You must be signed in to change notification settings - Fork 10
/
secondary-cluster.yaml
66 lines (66 loc) · 1.56 KB
/
secondary-cluster.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
apiVersion: coherence.oracle.com/v1
kind: Coherence
metadata:
name: secondary-cluster-storage
spec:
cluster: secondary-cluster
role: storage
jvm:
memory:
heapSize: 512m
args:
- "-Dwith.http=false"
- "-Dwith.data=false"
- "-Dprimary.cluster=primary-cluster"
- "-Dprimary.cluster.port=40000"
- "-Dprimary.cluster.host=primary-cluster-storage-wka"
- "-Dsecondary.cluster=secondary-cluster"
- "-Dsecondary.cluster.port=40000"
- "-Dsecondary.cluster.host=secondary-cluster-storage-wka"
ports:
- name: federation
port: 40000
- name: metrics
port: 9612
serviceMonitor:
enabled: true
coherence:
cacheConfig: cache-config.xml
metrics:
enabled: true
port: 9612
image: coherence-demo:8.0.0-SNAPSHOT
imagePullPolicy: Always
replicas: 3
---
apiVersion: coherence.oracle.com/v1
kind: Coherence
metadata:
name: secondary-cluster-http
spec:
cluster: secondary-cluster
role: http
jvm:
memory:
heapSize: 512m
args:
- "-Dprimary.cluster=primary-cluster"
- "-Dprimary.cluster.host=primary-cluster-storage-wka"
- "-Dsecondary.cluster=secondary-cluster"
- "-Dsecondary.cluster.host=secondary-cluster-storage-wka"
ports:
- name: http
port: 8080
- name: metrics
port: 9612
serviceMonitor:
enabled: true
coherence:
cacheConfig: cache-config.xml
storageEnabled: false
metrics:
enabled: true
port: 9612
image: coherence-demo:8.0.0-SNAPSHOT
imagePullPolicy: Always
replicas: 1