-
Notifications
You must be signed in to change notification settings - Fork 231
/
Copy pathservice-discovery.yml
59 lines (58 loc) · 1.07 KB
/
service-discovery.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
apiVersion: v1
kind: Service
metadata:
name: couchbase-service
spec:
selector:
app: couchbase-rs-pod
ports:
- name: admin
port: 8091
- name: views
port: 8092
- name: query
port: 8093
- name: memcached
port: 11210
---
apiVersion: extensions/v1beta1
kind: ReplicaSet
metadata:
name: couchbase-rs
spec:
replicas: 1
template:
metadata:
labels:
app: couchbase-rs-pod
spec:
containers:
- name: couchbase
image: arungupta/couchbase:travel
ports:
- containerPort: 8091
- containerPort: 8092
- containerPort: 8093
- containerPort: 11210
---
apiVersion: extensions/v1beta1
kind: ReplicaSet
metadata:
name: wildfly-rs
labels:
name: wildfly
spec:
replicas: 1
template:
metadata:
labels:
name: wildfly
spec:
containers:
- name: wildfly-rs-pod
image: arungupta/wildfly-couchbase-javaee:travel
env:
- name: COUCHBASE_URI
value: couchbase-service
ports:
- containerPort: 8080